Question: Lab 4.2 Use If statement Write a C++ program that asks the user to input the points he achieved on an exam. If the number

 Lab 4.2 Use If statement Write a C++ program that asks

Lab 4.2 Use If statement Write a C++ program that asks the user to input the points he achieved on an exam. If the number of points was higher than 50 the user should be notified that he/she passed the exam use the conditional operator. The number of points which a student was able to achieve from the exam was from 0 - 100 hence, if the user inputs a number which doesn't belong to this interval the output should be an error message. eg. User inputted:30 Output: You didn't pass the exam User input:101 Output: ERROR. The number of points is invalid

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!