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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Introduction To Health Care Management
Authors: Sharon B. Buchbinder, Nancy H. Shanks
3rd Edition
128408101X, 9781284081015
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App