1027luke / thisisjava

thisisjava
0 stars 0 forks source link

[Project] Grade Evaluator #6

Closed maxpaper86 closed 5 years ago

maxpaper86 commented 5 years ago

This project should be done after Chap 4 is finished

Please code a program which follows below program description

Program discription

  1. min score is 0 and max is 100. else, print error
  2. if score is larger and equal to 90, print A
  3. if score is larger and equal to 80, print B
  4. if score is larger and equal to 70, print C
  5. if score is larger and equal to 60, print D
  6. if score is larger and equal to 50, print E
  7. if score is lesser than 50, print F

Requirement

  1. use System.out.println() to print out the strings
  2. use below code to get score from the user
    Scanner in = new Scanner(System.in);
    int score = in.nextInt();

Run Example

*** Welcome to Grade Evaluator ***
Please enter your score: 99
Your grade is A.
*** Welcome to Grade Evaluator ***
Please enter your score: -100
Invalid score has been detected. Please use score between 0 to 100 only.
maxpaper86 commented 5 years ago

good job