posted 12 years ago
Whic prints out this:
Students with grades 69 and below:
Connie 27
95 26
James 32
99 26
Susan 5
67 25
Jake 24
65 20
Phil 29
66 32
Students with grades between 70 and 79:
But should print this:
Connie has an average grade of 85%. You will receive a B in this class.
James has an average grade of 92%. You will receive a A in this class.
Susan has an average grade of 52%. You will receive a F in this class.
Jake has an average grade of 66%. You will receive a D in this class.
Karen has an average grade of 77%. You will receive a C in this class.
Overall Class Average is 74%.
The following program generates 3 random numbers, then averages them.
The average of 12 34 24 is 23