Question: Question 2 The grade for a test that is marked out of 100 is set according to test score obtained as shown in the table

Question 2 The grade for a test that is marked out of 100 is set according to test score obtained as shown in the table below. Each test score can only be an integral value, that is, no fractional parts. Write Java program to prompt user to enter an integer value between 0 and 100. You may now assume that INVALID values are entered hence you must use the AND or the OR operator in Java to test for a range of values. For example, if the score is between 50 and 100 inclusive then the trade is "Pass' else if the score is between @ and 49 inclusive it is a fail else they are invalid scores. Score Grade Pass 50 to 100 e to 49 Fail Invalid scores Set the grade to a variable and then print the grade only once. Passa t and invalid teachilfen Submit source code and one greater than 10eande Question 3 The grade for a test that is marked out of 100 is set according to test score obtained as shown in the table below. Each test score can only be an integral value, that is, no fractional parts. Write Java program to prompt user to enter an integer value between @ and 100. Then set the grade according to table below. You must print the grade only once at the end. Grade Invalid -> 100 Score Greater than 100 90 to 100 80 to 89 70 to 79 60 to 69 @to 59 ess than Invalid -
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
