Question: write a program in Java that follows all the instructions. Write a program in Java to read a value from the keyboard for score in

write a program in Java

write a program in Java that follows all the instructions. Write a

that follows all the instructions.

program in Java to read a value from the keyboard for score

Write a program in Java to read a value from the keyboard for score in a final exam. can have a score of 10.5 as an example. Valid scores is in the range from 0 to 100. First show your high-level algorithm. Perhaps three statements that will be mapped to three methods shown below You should have the following four methods as shown below: 1. getDouble () method. - This method will accept a string to be displayed (the prompt) then read a double value then return to caller. 2. findgrade () method This method will accept the score value then figure out the grade and return the correct grade to the caller of this method. 3. printinfo () method - A void method will accept two values - the score value and the grade. Secondly, refine your high-level algorithm above with the following details requirements transformed to statement of computation in your algorithm. You should have the following four methods as shown below: 1. getDouble () method. - This method will validate if the value entered is in the range from 0 to 100 . If yes, return that value otherwise return -1. 2. findGrade () method - This method will fiqure out the grade according to this table: You should use nested if-else here. Notes : - the findGrade () method should only be called if score from the getDouble () method is valid. - Hence, if the score is valid, call the findGrade () method then followed by the printinfo () method. - Otherwise, display the invalid score entered with an appropriate description. - There will be no validation done in the findGrade () method as it will be redundant. Use /** * / for comments for your methods. Also use @param to describe the parameters and @return to describe what is returned. Must show output for two invalid scores of 110 and 4 Also valid scores for A,B,C,D and F. Hence, a total of 7 HOW to SUBMIT WORK? A Word file with a label heading for Question 1 at top followed by: a) Your high-level algorithm (2 points) b) Refinement of your algorithm. (3 points) c) Implementation in Java (22 points) d) Output showing 7 different inputs/outputs (screenshots) - 3 points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!