Using C++ and Sublime text 3 Find grade of a student using the following rubric 50 < Fail 51 - 60.99 then D 61 -
Using C++ and Sublime text 3 Find grade of a student using the following rubric 50< Fail 51 - 60.99 then D 61 - 7 0.99 then C 71 - 80.99 then B 81 - 90.99 then A 91 - 100 then A+ a) Ask the user to enter numbers for 5 courses a. Clue : i. Create 5 variables of type double ii. Perform user input for all these 5 variables (Use prompts) iii. You must put a validation to check if the user has entered a value between 1 and 100. ( hint . use if/else for eac h user input) iv. If an invalid entry was inserted, then the program should not terminate . Instead it should disregard the input and ask for a new valid entry b) Calculate average (use type double) c) Find letter grade (use if/else) d) Print both average mark and letter grade e) Once the grade is published, before terminating, the program should ask the user if s/he wants to calculate another grade or simply exit the program. Based on the users choice the action should be performed. (use while)
I cannot figure out part iii where i must put a validation check using if/else nor can i figure out part e). I know that I am supposed to use a sentinel while function on part e but I do not understand how to implement it in this program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started