Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a full C++ program to do the following:- 1- define an array (employeeSal) with 5 elements and read the employeeSal array refers to the

image text in transcribed

Write a full C++ program to do the following:- 1- define an array (employeeSal) with 5 elements and read the employeeSal array refers to the salaries of 5 employees. 2-define another array(deptlds) that corresponds to employee elements {2,2,1,1,5} in it. The values in deptlds array refers to th employee works. 3-print the average of all Employee salaries working in deptlds 4-find the maximum employee salary in deptlds 1 5- print the deptlds number of the employee with minimum Sa ex:- if the employeeSal array was = {500,300,200,700,100} and deptlds = {2 2, 1, 1, 5} your output must be : the average for deptid 2 = (500+300)/2=400 the maximum employee salary in deptlds 1 = 700 the deplds number for minimum employeeSal = 5 * (10 Points) Enter your

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions

Question

4. Did you rethink your decision?

Answered: 1 week ago

Question

3. Did you seek anyones advice?

Answered: 1 week ago

Question

7. What traps should she avoid?

Answered: 1 week ago