Pay Calculator Program

 

Overview:  You’re going to write a program that will calculate an employee’s weekly pay based on how many hours they have worked and their hourly wage. 

 

Specifics:

 

The first screen of the program should have your name, class, a program name; centered both horizontally and vertically on the screen, pausing for several seconds.

 

The second screen should tell the program purpose and give the user some basic instructions before the user needs to interact with the program.  This screen should also clear after the user has had enough time to read.

 

Next, the program should ask the user three questions:

            What is the standard hourly wage?

            How many standard hours were worked?

            How many overtime hours were worked?

 

After the user answers these three questions.  The program should pause briefly, clear the screen and provide the user with output similar to the following.

 

Payroll Report

 

Information Supplied:

Wage:              5.25

Standard Hours:    40

Overtime Hours:    10

 

Payroll Calculations:

Standard Pay       210

Overtime Pay       78.75

Total Pay          288.75

 

 

Make sure you include your information at the top of the program with 3 REM statements.

 

Make sure your program has and END after the main code.

 

When complete, save the program as Payroll1 in your qbasic folder.

 

Pay Calculator Program – Version 2

 

Overview:  You should already have payroll1 done and saved in your qbasic folder.

 

Specifics:

 

Adjust your program so that it also calculates taxes.  Assume that the federal (national government) taxes you 22% for every dollar you make.  The state government taxes you 4% for every dollar you make.  So, if your Total Pay is $200, the feds would take $44 and the state would take $8.  Total taxes would be $52, so your NET PAY (after taxes) would be $148 (200 – 52).

 

Adjust your program so that reports total pay, federal taxes, state taxes, total taxes, and net pay.