初学者的C++练习题——(一)计分程序

来源:互联网 发布:日本战国身高知乎 编辑:程序博客网 时间:2024/03/29 14:16

Grading Program

Requires:
variables, data types, and numerical operators
basic input/output
logic (if statements, switch statements)

Write a program that allows the user to enter the grade scored in a programming class (0-100).
If the user scored a 100 then notify the user that they got a perfect score.

★ Modify the program so that if the user scored a 90-100 it informs the user that they scored an A

★★ Modify the program so that it will notify the user of their letter grade
0-59 F 60-69 D 70-79 C 80-89 B 90-100 A

 

原创粉丝点击