Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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