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 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
Get step-by-step solutions from verified subject matter experts
