Practice 6 : System in (Scanner) (Basic Java Programming 27)

Veröffentlicht am: 27 November 2020
auf dem Kanal: Basic Java Programming for Beginners
16
0

【Basic Java Programming 27】
Let's code! I am talking about the "System in" and a "Scanner" class in Java.

====================================
[Practice]
Write a program that judges a user's score after reading the below specification and grade.

[Specification]
・Display the user's grade after checking the user's score.
・A user inputs the user's score on the prompt after running the practice program.
・The score range is more than 0 and 1000.
・Display the error message as the "Please input your correct score." when inputting the data except for the score range.
・Display the error message as the "Please input a number, not a character." when inputting the data except for a number.
・Make sure you use the "try-catch" statement in this practice.

(Grade)
・Grade A: more than score 900
・Grade B: more than score 800 and less than score 899
・Grade C: more than score 700 and less than score 799
・Grade D: more than score 600 and less than score 699
・Grade E: more than score 500 and less than score 599
・Grade F: less than score 499
====================================


◆ Practice 6 : System in (Scanner) - answer
https://note.com/mac_makoto/n/n0d2cc4...

◆ Makoto Official Site
https://sabay-sabay.asia/


Auf dieser Seite können Sie das Online-Video Practice 6 : System in (Scanner) (Basic Java Programming 27) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Basic Java Programming for Beginners 27 November 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 16 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!