Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

haven't done Java in awhile, hoping this will be a good refresher image text in transcribed
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

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

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

=+5 Evaluate whether the CCT program was effective.

Answered: 1 week ago

Question

=+Identify the type of global assignment for which CCT is needed.

Answered: 1 week ago