Question: Design and implement a program that asks the user for the number of students in a class. If the number of students is greater than


 

Design and implement a program that asks the user for the number of students in a class. If the number of students is greater than 0, use a counter-controlled loop to generate a random number for Exams and Labs scores for each student. The exam and lab scores should be between 50 and 100. compute the letter grade for each student based on the following criteria:

Grade Distribution:

Exams 60%

Labs 40 %

getLetterGrade(int exams, int Labs){

fnalScore= exam*.6 + labs*.4

....

....

Return letterGrade?

}

Grade Evaluation:

90 -100 A

80 - 89 B

70 - 79 C

60 - 69 D

0 - 59 F

Then print the students name, scores for each category and the letter grade.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!