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

Pubblicato il: 27 novembre 2020
sul canale di: 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/


In questa pagina del sito puoi guardare il video online Practice 6 : System in (Scanner) (Basic Java Programming 27) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Basic Java Programming for Beginners 27 novembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 16 volte e gli è piaciuto 0 spettatori. Buona visione!