Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java language Implement the class StudentGrade that generates a random number between 50 and 100 for a student grade and determines the letter grade. Student

image text in transcribed

java language

Implement the class "StudentGrade" that generates a random number between 50 and 100 for a student grade and determines the letter grade. Student grade is determined based on the following criteria: 90-100 80-89 70-79 60-69 Less than 60 You can use the following statement to generate a random number between 50 and 100 int grade - (int)(Math.random() 50) + 50; Use a loop to to generate 5 random grades and output the letter grade for each. The output of your program should be similar to: Student grade is 73 which is C. Student grade is 52 which is F. Student grade is 90 which is A. Student grade is 88 which is B. Student grade is 82 which is B

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

Compute the derivative f(x)=1/ax+bx

Answered: 1 week ago

Question

What is job enlargement ?

Answered: 1 week ago

Question

what is the most common cause of preterm birth in twin pregnancies?

Answered: 1 week ago