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...


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:



  1. Percentages less than 0 – error message.

  2. Percentages greater than 100 – error message.

  3. Percentages in the range 0-100 – letter grade.


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:



  • Complete the header comment.


          2) Declare two double variables:
grade
and
percentage.


          3) Assign the value of
percentage
from input.


          4) End program if
percentage
is smaller than 0 and larger than 100.


          5) Convert
percentage
to
grade
.


          6) Print the grade.



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here