Question: Using Java without using if statements. 4. Write a method named grade that accepts an integer parameter representing a student's course grade from 0 to

 Using Java without using if statements. 4. Write a method named

grade that accepts an integer parameter representing a student's course grade from

0 to 100, and returns the student's course grade on the 4.0

Using Java without using if statements.

4. Write a method named grade that accepts an integer parameter representing a student's course grade from 0 to 100, and returns the student's course grade on the 4.0 scale. Use the following mapping: (Note: This mapping is fictional and does not represent how we will assign actual grades in this course!) Score 560 61 62 63 ... 98 99 100 Grade 0.0 0.1 0.2 0.3 3.8 3.9 4.0 5. Write code to prompt a student for his/her grade using a Scanner, and use the grade method from the previous question to report the student's grade: What percent did you earn? 84 Your grade is 2.4 6. Write code to prompt the user for many integers and print the total sum and minimum of the numbers. How many integers? 5 Next integer? 2 Next integer? 9 Next integer? 17 Next integer? 4 Next integer? 6 Sum = 38 Min = 2 You may assume that the user types at least one integer and that at least one integer will be less than 100

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!