Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Java program (name it Practice_3_2) that generates a random number between 0 and 100 (representing a grade) (see program Guessing. j ava above
Write a Java program (name it Practice_3_2) that generates a random number between 0 and 100 (representing a grade) (see program Guessing. j ava above or section 3.7 on how to generate random numbers). The program then, on separate lines, prints out the generated grade followed by the corresponding letter grade (A, B, C, D, F) using the standard scale below. Label your output properly and use escape characters to lineup the outputs after the labels.
A = 90 - 100
B = 80 - 89
C = 70 - 79
D = 60 - 69
F = 00 - 59
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 Started