Question: 1. Write a C++ program that asks the user to input employee's ages (int), use negative value to indicate the end of data The

 1. Write a C++ program that asks the user to input employee's  

1. Write a C++ program that asks the user to input employee's ages (int), use negative value to indicate the end of data The program should count and print the number of employees with ages in each of the following groups: Age Groups Under 30 30 - 40 41 - 50 51 and above Your program RUN (Input/Output) should be as follows: Enter an employee age Enter an employee age Enter an employee age Enter an employee age Enter an employee age Enter an employee age (use negative to stop):45 (use negative to stop):32 (use negative to stop):59 (use negative to stop):21 (use negative to stop):24 (use negative to stop):-5 Age Groups Number of Employees: Under 30 2 30-40 1 41-50 1 Above 50 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a C program that meets the requirements of counting the number of ... View full answer

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 Programming Questions!