Question: Create a java project with the name Assignment3YourLastName in the folder COMP3110AssignmentsYourLastName Part-1 (use a nested-if-else statement) Add a static method with the name gradeLetter.

Create a java project with the name Assignment3YourLastName in the folder COMP3110AssignmentsYourLastName

Part-1 (use a nested-if-else statement)

Add a static method with the name gradeLetter. This method will ask the user to enter an integer score and display the grade letter based on the rules:

Score range

Grade letter

90100

A

8089

B

7079

C

6069

D

059

F

 

Part-2 (use a while statement)

Add a static method with the name CalculateGrade. This method will ask the user to enter 8 scores and product the output as below:
Assignment-3 Part-2:
Enter score 1: 90
Enter score 2: 92
Enter score 3: 67
Enter score 8: 98
The sum is nnnn and the average is nnnn!
The scores shown here are just examples. The user can enter any integers as scores. Make sure your method will output the sum and average of the scores which the user entered.
 
In the main method, call the above two static methods, run and see your programs output.

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!