Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Health Care Management

Authors: Sharon B. Buchbinder, Nancy H. Shanks

3rd Edition

128408101X, 9781284081015

More Books

Students also viewed these Programming questions

Question

Why would a person fear success?

Answered: 1 week ago

Question

11. In Prob, 10,show that the first three equations are consistent.

Answered: 1 week ago

Question

4. Find the *g*-inverse of the 5 x 2 matrix *A* where

Answered: 1 week ago