Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that prompts the user for two students' overall scores and that computes their letter grades based on those scores. Assume that scores

Write a program that prompts the user for two students' overall scores and that computes their letter grades based on those scores. Assume that scores are in the range of 0 to 100 and that grades are based on the following scale:

Score Grade

-------------------------

< 60 0.0

60-62 0.7

63 0.8

64 0.9

65 1.0

...

93 3.8

94 3.9

>= 95 4.0

You should also report whether or not the students passed the course (i.e., whether or not the user got a grade above 0.0) and whether the student may advance to the next course (i.e., whether or not the user got a grade of 2.0 or higher). If the student's grade percent has a decimal, round it to the nearest whole number.

Here is a sample log of execution of the program (user input underlined):

This program converts two scores into grades.

Student 1:

What score did you get? 83.7

You received a grade of 2.8

You passed the course

You may advance to the next course

Student 2:

What score did you get? 59.1

You received a grade of 0.0

You failed the course

You must take the course again

Use static methods to capture the structure and redundancy of the program. Your program should have at least two static methods other than main.

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