Question: Question2) (50 p.) Define a structure for 10 employees containing names, salary and hours of work per day in a company. Write a program to

 Question2) (50 p.) Define a structure for 10 employees containing names,salary and hours of work per day in a company. Write a

Question2) (50 p.) Define a structure for 10 employees containing names, salary and hours of work per day in a company. Write a program to increase the salary depending on the number of hours of work per day as follows and then print the name of all the employees along with their final salaries both on the screen and to a file (employee.txt). Hours of work per day 8 10 >=12 Increase in salary $55 $110 $140 Test Data: (for 2 employees) ::Enter 10 Employees Details:: enter 1. emp name:CEM 2 enter 1. emp salary:3250.50 enter 1. emp hours worked:11 enter 2. emp name:MOHAMMED enter 2. emp salary:4000 enter 2. emp hours worked:20 Expected Output: (for 2 employees) ::Employees Details: Employee1==> CEM 3250.50 Employee2==> MOHAMMED 4000.00 11 20 Employee.txt employee - Notepad File Edit Format View Help Employeel-=> Employee2-=> MOHAMMED 3250.50 4000.00 11 20 Question2) (50 p.) Define a structure for 10 employees containing names, salary and hours of work per day in a company. Write a program to increase the salary depending on the number of hours of work per day as follows and then print the name of all the employees along with their final salaries both on the screen and to a file (employee.txt). Hours of work per day 8 10 >=12 Increase in salary $55 $110 $140 Test Data: (for 2 employees) ::Enter 10 Employees Details:: enter 1. emp name:CEM 2 enter 1. emp salary:3250.50 enter 1. emp hours worked:11 enter 2. emp name:MOHAMMED enter 2. emp salary:4000 enter 2. emp hours worked:20 Expected Output: (for 2 employees) ::Employees Details: Employee1==> CEM 3250.50 Employee2==> MOHAMMED 4000.00 11 20 Employee.txt employee - Notepad File Edit Format View Help Employeel-=> Employee2-=> MOHAMMED 3250.50 4000.00 11 20

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!