Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedC++ 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions