Home‎ > ‎ICT Programming‎ > ‎Java‎ > ‎

Quiz Grading - Final

Click on New Class. Use QuizGrading as the name of your class. Write a program that takes as input from the keyboard an integer of type int. This integer is the score. A letter grade is assigned to the score, according to the following table.

You must create a constructor that associates the score integer  with a letter grade. 

Use the Dog, Student, and Cellphone classes as your examples.

Use the following tables to determine what integers will equal what grades.

Score

Grade

86-100

A

73-85

B

67-72

C+


  60-66

  
  C

50-59


C-

<50

I

 

Include in your program a statement to print the letter grade on the screen, together with an appropriate description.

Resource: Using "If" Statements

Comments