Question: Write a complete program to determine the status of a test result (whether a student pass or fail). The program will receive a test mark
Write a complete program to determine the status of a test result (whether a student pass or fail). The program will receive a test mark and then, the status fail or passed will be displayed on the screen. If the mark is more or equal to 50, the student will pass the test. The program will also calculate how many times students marks are being entered to the system. Finally, the program will display the following report:
- Number of marks entered
- The highest mark entered
- The lowest mark entered
Sample Output:
HELLO USER :1
PLEASE ENTER YOUR MARK :70
CONGRATULATIONS! YOU HAVE PASSED THE TEST!
NEXT?(Y OR N) : Y
HELLO USER :2
PLEASE ENTER YOUR MARK :40
I AM SORRY. YOU HAVE FAILED!
NEXT?(Y OR N) : N
NUMBER OF DATA ENTERED : 2
HIGHEST MARKS ENTERED : 70
LOWEST MARKS ENTERED : 40
answer in C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
