Question: Your project is to develop the data and logic for a program that will calculate the pay rate of an employee. This project aims to

Your project is to develop the data and logic for a program that will calculate the pay rate of an employee. This project aims to determine what data would make sense given a use case and develop a logical solution based on that data.
First, suggest a good set of test data for a program that computes gross paychecks (before any taxes or other deductions) based on hours worked and rate of pay. The program computes gross as hours times rate unless hours are over 40. If so, the program computes gross as the regular rate of pay for 40 hours, plus one and a half times the pay rate for hours over 40.
Second, develop the logic of a program by (1) writing the pseudocode or (2) developing the flow chat that allows the user to enter his or her hourly pay rate, the number of hours worked this pay period, and the percentage of gross salary that is withheld.
The program multiplies the hourly pay rate by the number of hours worked, giving the gross pay; then, it multiplies the gross pay by the withholding percentage, giving the withholding amount. Finally, it subtracts the withholding amount from the gross pay, giving the net pay after taxes. The program displays the net pay.
Additionally, you can provide some mathematical calculations for how the inputted data is manipulated to create your planned outputs.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!