Question: Using sentinel-controlled loop, write the code fragment that execute the following tasks: a. Read the student id and mark of Mathematic test several times until

Using sentinel-controlled loop, write the code fragment that execute the following tasks: a. Read the student id and mark of Mathematic test several times until the user has entered the student id 9999 to stop the process. b. Count and display the number of students who passed the test (passing mark is 50 and above). c. Count and display the number of students who failed the test (49 and below is failed). d. Count and display the average of student mark.

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!