Question: haven't done Java in awhile, hoping this will be a good refresher 7. Please write down a correct JAVA source code for the following problem.
7. Please write down a correct JAVA source code for the following problem. (You can first write down the basic procedure, then work on the computer, and finally copy the source code from your computer.) One day, a math instructor came to you and requested you to write a small piece of code to achieve the following requirements. The program should allow the instructor to input the score through the keyboard After the instructor input a number between 0 and 100 (inclusive) and hit the return key, the program will store it into an array, named scores with the initial size 100 which is the maximum number of students s/he may have If the instructor inputs any number outside the range (0-100) or the total number of scores is greater than 100, the program will stop asking the instructor to input the next number You are then required to write a code to calculate the average score and transfer the input score to the letter grade and stored in another character array named letterScore with the size 100 Iyou may improve the size to save the memory). The transfer is based on the following rule: [90, 100) -A [80, 90) - B [70, 80) -C [60, 70) -D [0, 60) - F Sample Input/Output on the screen (The line begins with ">>" is the output of the program to ask for the next score. The line begins with ">" is the output of the program) >>New Score? >>New Score? 80 >>New Score? >>New Score? >The average score is 80 >The Letter Grade is >A >B >D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
