Question: C++ programming Create a program that 1. asks user to enter his/her first name.(We assume user always enter correct name. Igno case for this step.)
C++ programming Create a program that 1. asks user to enter his/her first name.(We assume user always enter correct name. Igno case for this step.) asks user to enter a number grade that is between 0 to 100. 2. If entered number is outside the range, tells user the number is invalid. Program continues .If the grade is greater than or equal to 60, program prints "firstname, you pass the class. asking user to enter a grade, until user enters a valid number. Otherwise, program prints "firstname, you fail the class.", where firstname is the name user entered in step 1. For example: Trial 0 Trial 1 Trial 2 Output Enter your name Output: Enter your name! Input Output: Enter your grade Output Enter your grade! Input. Output Enter your name! Output: Daniel, you pass the class. Output: Yeehaw, you fail the class Output: Input. Output: Input Enter your name! Yeehaw (enter) Enter your grade! 24 (enter) Daniel (enter) Input Input (Manually close the program.) Daniel (enter) -3 (enter) 84 (enter) (Manually close the program.) (Manually close the program.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
