Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need the code for this program please. Class Exercise on Functions Chapter 6 Write a program, which accepts name and number of hours worked

I need the code for this program please.

image text in transcribedimage text in transcribed

Class Exercise on Functions Chapter 6 Write a program, which accepts name and number of hours worked per week of an employee and computes weekly salary of the employee. The program, also calculates income tax (15%) and net wage of the employee. The rate per hour over 40 is one and half times the normal rate ($10hour. The program will display the highest and lowest salary holder's record. Five functions can be used read data,mcompute salary, find max, find min, show result. read data will accept name and hours worked compute salary computes weekly salary, income tax paid. and net wage, show result will display name, hours, salary, tax paid, and net wage of the employee in a table The program willuse a data file as shownbebw Ronnie Zamora 45 Andy Smith 35 Nancy Lopez 25 Rudy Miller 15 Abel Gonzalez 20 John Doe 42 Mary Doe 18 Sample output of the program is NAME HOURS SALARY TAX NET PAY Ronnie Zamora 45.00 4103-75 475.00 Andy Smith 35.00 350.00 52.50 297.50 Nancy Lopez 25.00 250.00 37.50 212.50 Ruud Miller 15.00 150.00 22.50 127.50 Abe Gonzalez 20.00 200.00 30.00 170.00 John Doe 42 00 430.00 64-50 365.50 Mary Doe 18.00 180.00 27.00 153.00 Ronnie Zamora is holding the largest salary of 403-75 Rudy Miller is holding the lowest salary of 127.50 Press any key to continue The functions are the following -read data This function will read name and hoursfrom data file and bringthem back to in program function must have two parametersname as string and hours as float. Both parametersmust be call by reference type.)

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

U11 Informing Industry: Publicizing Contract Actions 317

Answered: 1 week ago