| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
c++ Help
Write a program that reads the student id and an exam score for five students. The
program must compute the average, maximum, and minimum of the five exam scores, as well as a class performance level. The program must generate a report as shown below. The class performance level is GOOD if the average score is at least 80, POOR if the average score is less than 60, otherwise it is MEDIUM. SEQ NO ID NO SCORE ----------- ----------- ---------- 1. 123492 85.00 2. 567893 95.00 3. 901291 64.50 4. 634528 74.00 5. 859245 87.50 ------------------------------------------------------------------------------------- AVERAGE SCORE: 81.20 MAXIMUM SCORE: 95.00 MINIMUM SCORE: 64.50 CLASS LEVEL: GOOD |
|
#2
|
|||||
|
|||||
|
Looks like you're having other people do your homework for you.
And damn easy homework too: c Code:
__________________
This is my code. Is it not nifty? "The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools." ---Douglas Adams Join the Itsacon fanclub! Zero Tolerance: Spammers banned so far: 280
![]() Last edited by Itsacon : September 27th, 2005 at 10:27 AM. |
|
#3
|
|||
|
|||
|
Ehhh ... you want us to write a program for you???
Guess again :-s |
|
#4
|
||||
|
||||
|
Could've been shorter, but his teachers would never believe him
![]() |
|
#5
|
|||
|
|||
|
thanks Itsacon
i asked u to help me because i'm beginner to the world of programming did u know oman? ![]() |
|
#6
|
|||||
|
|||||
|
Here's the shorter, unreadable version
![]() c Code:
Last edited by Itsacon : September 27th, 2005 at 10:28 AM. Reason: typo... |
|
#7
|
||||
|
||||
|
Quote:
If he actually turns in that code...... ![]()
__________________
Officially a member of the Itsacon fan club. Beer blasts are every friday at Viper_SB's house. I bring the chips. ![]() |
|
#8
|
|||
|
|||
|
Quote:
Cool looping here. I guess you could make this a 'one-liner' piece of code. ![]() |
|
#10
|
||||
|