Question: 3. Write a C++ program based on following pseudocode. Set total to zero Set counter to zero Input the score While score is NOT
3. Write a C++ program based on following pseudocode. Set total to zero Set counter to zero Input the score While score is NOT equal to -1 Add the score into the total Add one to counter Input the next score Calculate the average Print the average 4. Answer the following question. Write a C++ program segment to accept the age and status (M=Married / S=Single) of employees by using sentinel-controlled loop. The program will count and display the total number of single employees who are more than 35 years old. The program will stop when the user enters -1 for the age.
Step by Step Solution
3.44 Rating (160 Votes )
There are 3 Steps involved in it
Here is a C program segment based on the provided pseudocode for calculating the average of scores i... View full answer
Get step-by-step solutions from verified subject matter experts
