Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 3 The Salary Strategy A company requires a program that will read an employees TRN Number, pay rate and the number of hours worked

QUESTION 3 The Salary Strategy A company requires a program that will read an employees TRN Number, pay rate and the number of hours worked for the week. The program should then validate the pay rate and the hours worked and if valid, it should then compute and display the employees weekly pay and TRN Number. An appropriate error message is be displayed if the data entered is invalid. Each employee is constrained to work a maximum of 60 hours each week with the maximum hourly rate being $1500 per hour and the minimum hourly rate being $650 per hour. Also, employees cannot work hours which are less than zero. Your solution should continue to run until a TRN number of zero or less is entered and should make use of the concept of modularization. Write the solution using PSEUDOCODE. Create modules that will do the following: A. read the employee input data B. validate the employee data C. calculate the employee pay D. print the employee pay Create a main program that will solve the problem by making use of the modules which have been created.

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions