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:

  1. Number of marks entered
  2. The highest mark entered
  3. 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

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!