Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 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

Step: 1

Here is a C program that meets the requirements of counting the number of ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Matlab An Introduction with Applications

Authors: Amos Gilat

5th edition

1118629868, 978-1118801802, 1118801806, 978-1118629864

More Books

Students also viewed these Programming questions