Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using a structure, and creating three structure variables; write a program that will calculate the total pay for thirty (30) employees. (Ten for each structured

Using a structure, and creating three structure variables; write a program that will calculate the total pay for thirty (30) employees. (Ten for each structured variable.) Sort the list of employees by the employee ID in ascending order and display their respective information.

image text in transcribed

Excluding the main function, your program should have four additional functions that will get the hours worked, and payrate, calculate the total pay, sort the data and display your output.

Base pay should be calculated by multiplying the regular hours worked by pay rate. If a person has worked over forty (40)hours, total pay is calculated by an adding 10% of base pay for every five (5) hours over forty (40) to base pay. (ie a person working 50 hours with a total pay of $100 would have ((hours-40)/5)*(base pay*.1) + base pay.

Note: _jd represents the initials of the programmer. Your function names should be named by replacing the initials jd with your first and last initials

image text in transcribed

Description Employee IDs Hours Worked Pay Rate Total Pay DataType of INT of DOUBL of DOUBLEpayrate_jd of Double Members employees_jd hrworked_jd total_pay_jd tructure name payro administrative office field structure variable structure variable structure variable Array Size 10 10 10

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

Students also viewed these Databases questions

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago