Question: Write in c++ two programs: -first program asks the type of the employee as input . if the employee was an administrator the program shows

 Write in c++ two programs: -first program asks the type of

Write in c++ two programs:

-first program asks the type of the employee as input .

if the employee was an administrator the program shows the $200 000

if the employee was a programmer or a staff member the program asks for the amount of hours worked in one day then multiplies that amount my 30 and then prints the result as their monthly paycheck

-second program asks for the employee type, then if thy were programmers or staff members the program asks them to enter the amount of hours worked on every day of the whole month ,then the program calculates and prints their paycheck for that month (only 30 days)

A software development company needs to build a program to calculate it's employees monthly paycheck; the employees are divided into three departments: -Programmers -staff -administrators For the first 6 hours, the programmers are paid $2000 for each hour, but if they work more than 6 hours in one day they are paid $3000 for each hour exceeding the first 6 hours. Example: A programmer has worked for 5 hours in one day, thy should be paid 5*$2000=$10000 for that day Another programmer worked for 8 hours in one day thy should be paid (6* $2000) + (2*$3000) =$18000 for that day. Staff are paid $4000 for each hour no matter the amount of hours worked. Administrators are paid monthly by the amount of $200000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!