Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Simple salary calculator 2 5 employees Name, hourly rates, and hours worked are in a flat file in this format: Last name, first name, hourly

Simple salary calculator
25 employees
Name, hourly rates, and hours worked are in a flat file in this format: Last name, first name, hourly rate, hours worked, supervisor email account
For example, a record would look like:
Smith, Joe, 15,40, lucy_ball@company.com
Full-time is 40 hours per week.
For anything over 40 hours, the employee makes 1.5 times their hourly rate.
Overtime should not exceed 50 hours.
If the employee worked over 50 hours, an email message must go to the employees supervisor.
Write the results to another file in the following format: Last name, first name, weekly salary, and add a Y or N to the file if the supervisor was sent an email.
For example, the output record would look like:
Smith, Joe, 600, N

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

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions