Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For a company of 50 employees, you are in the technical department, your boss asked you to write a full program code with the following

image text in transcribed

For a company of 50 employees, you are in the technical department, your boss asked you to write a full program code with the following parts: 1-An array of 50 employees. 2- Each component in the array is A struct (records) that holds the following employee information: a. First name. b. Last name. c. Employee ID. d. Employee Salary 3- Create a return value user-defined function to calculate the TOTAL monthly salary for an employee, use the nested if...else statements to implement the following information based on the over-time working hours. a. Base salary= 2000$. b. If the over-time working hours= 10, the salary bonus= base salary * (0.05). cIf the over-time working hours greater than 10 and less than or equal to 30, the salary bonus = base salary * (0.1). d. If the over-time working hours greater than 30, the salary bonus= base salary (0.3). e. Total salary = Base salary + salary bonus. 4- In the main function a. Prompt the user to enter the overtime working hours. b. Call the created user-defined function to calculate the total salary of employee number 20 if you know that his overtime working hours = 40. C. Save the returned total salary value of the function call to the Employee Salary member value of employee number 20. d. Output the Employee Salary member value of employee number 20 to the screen

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

More Books

Students also viewed these Databases questions

Question

=+country competitive advantages? Why? Support your point of view.

Answered: 1 week ago