Question: Using a sentinel-controlled loop,write the code fragment that execute the following tasks: a)Read the student id and mark of Mathematics test several times until the
Using a sentinel-controlled loop,write the code fragment that execute the following tasks:
a)Read the student id and mark of Mathematics 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 pf student mark
EXEROISE 3: REPETITION CONTROL STRUCTURE 1 Write appropriate Ct+ statement(s) for each of the following a Input 10 integer numbers using a whi le loop, check if the number is positive, add the number to a variable posNum, otherwise, add the number to a variable b Sum the even integers from 0 1o 100 using a for statement c. Print the integers from 1 to 30 using a do..while loop and the counter variable x Print only 5 integers per line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
