Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

20 --Write a full C++ program to do the following define an array (employeeSal) with 5 elements and read them from user. The values in

image text in transcribed

20 --Write a full C++ program to do the following define an array (employeeSal) with 5 elements and read them from user. The values in -1 .employeeSal array refers to the salaries of 5 employees define another array(deptlds) that corresponds to employeeSal array and store the -2 elements {2,2,1,1,5} in it. The values in deptlds array refers to the department ID where each .employee works print the average of all Employee salaries working in deptlds 2-3 find the maximum employee salary in deptlds 1-4 .print the deptlds number of the employee with minimum Salary -5 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 deptld 2 = (500+300)/2=400 the maximum employee salary in deptlds 1= 700 15 * the deplds number for minimum employeesal =5

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

How project success is usually assessed?

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago