🔒 Closed Challenge yourself with this

Status
Not open for further replies.
Good day ka PHC... Sana po may makatulong po sa problema ko.. hanggang bukas nalng po ito ma susubmit ;(

Write a program that displays random ID numbers and 5 random scores 1 - 20 for each randomly generated ID numbers and sums up the score of every ID numbers. Print the ID number of the highest scorer and the lowest scorer..

Example:

ID NUMBER....Score1...Score2..Score3..Score4...Score5....Total
1111111...............20..........20..........20...........20.........20.........100
1111110..............20..........20...........20..........20..........20.........100
222222................1............1..............1...........1...........1.............5


Highest scorer................Score
1111111...........................100
1111110...........................100
Lowest scorer................Score
222222..............................5
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 642
    Views
  • 2
    Participants
Last reply from:
4021989 others like this

Online now

Members online
336
Guests online
1,700
Total visitors
2,036

Forum statistics

Threads
2,285,400
Posts
29,029,751
Members
1,219,428
Latest member
gh2025
Back
Top