Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer in Java CSC 222 Program 3: Grade Calculator Due: Topics: if statement, for loop, arithmetic and relational operators Program Description: In this project, you

Answer in Javaimage text in transcribed

CSC 222 Program 3: Grade Calculator Due: Topics: if statement, for loop, arithmetic and relational operators Program Description: In this project, you will write a program called GradeCalculator that will calculate the grading statistics of a desired number of students. Your program should start out by prompting the user to enter the number of students in the classroom, and the number of exam scores. Your program then prompts for each student's name and the scores for each exam. The exam scores should be entered as a sequence of numbers separated by a blank space. Your program will also check for negative scores. If any score is negative, it will prompt the user to reenter the scores. You do not have to deal with inputs that are not numbers. For each student, calculate the student's the average score, lowest score, highest score, letter grade, and the number of stars to give the student. Once the letter grade has been calculated, use it to calculate an appropriate number of stars the student will received. The letter grade is computed as followed: 90100 is A, 80-89 is B, 7079 is C, 60-69 is D, 59 and below is F. The number of stars is assigned as followed: A is 4 stars, B is 3 stars, C is 2 stars, D is 1 star, and F is 0 stars (no star). Your program must print the stars using a loop. The program then displays the statistics about the student as shown in the sample run. Before the program terminates, it prints the class statistics: average grade, lowest grade, highest. See sample output for format. CSC 222 Program 3: Grade Calculator Due: Topics: if statement, for loop, arithmetic and relational operators Program Description: In this project, you will write a program called GradeCalculator that will calculate the grading statistics of a desired number of students. Your program should start out by prompting the user to enter the number of students in the classroom, and the number of exam scores. Your program then prompts for each student's name and the scores for each exam. The exam scores should be entered as a sequence of numbers separated by a blank space. Your program will also check for negative scores. If any score is negative, it will prompt the user to reenter the scores. You do not have to deal with inputs that are not numbers. For each student, calculate the student's the average score, lowest score, highest score, letter grade, and the number of stars to give the student. Once the letter grade has been calculated, use it to calculate an appropriate number of stars the student will received. The letter grade is computed as followed: 90100 is A, 80-89 is B, 7079 is C, 60-69 is D, 59 and below is F. The number of stars is assigned as followed: A is 4 stars, B is 3 stars, C is 2 stars, D is 1 star, and F is 0 stars (no star). Your program must print the stars using a loop. The program then displays the statistics about the student as shown in the sample run. Before the program terminates, it prints the class statistics: average grade, lowest grade, highest. See sample output for format

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

Students also viewed these Databases questions

Question

What is media access control, and why is it important?

Answered: 1 week ago

Question

What is the relationship between humans and nature?

Answered: 1 week ago