Create a C++ console project in Visual Studio or another tool. Create an application that converts a student’s grade percentage to a letter grade following the rules below:
Grade
Percentage
A
100-90
B
89-80
C
79-70
D
69-60
F
59-0
Your code should prompt for and get the student’s percentage as input, and output an error message or a letter grade.
Note: Your code should test these cases:
Please make sure your code can handle these cases.
Tips: Use operator and ‘||’ for the conditional control statement. Use instruction ‘if’ for conditional control.
Make the following edits to the code file:
2) Declare two double variables:gradeandpercentage.
3) Assign the value ofpercentagefrom input.
4) End program ifpercentageis smaller than 0 and larger than 100.
5) Convertpercentagetograde.
6) Print the grade.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here