CISY 125 - Computer Project 8 (EXTRA CREDIT)
This project can be used to replace your lowest Project grade of the
projects 1-7
This project uses files. See the files notes from the Instructor's Notes on his
Web Page. Do not use a FOR LOOP, use a DO WHILE with the EOF function
Springfield Nuclear wants a report that will show each employee's
monthly salary with their FICA tax, NJ Tax, their 401k Contribution
and their net pay. (See the report below for ALL of the columns)
The report will be generated based on data in a file
The file to be read contains the Employee Name, Annual Salary, and
their 401k% contribution as a whole number.
For this program, assume the following
- Monthly Salary = Annual Salary / 12
- all employees pay the same FICA tax rate of 28% (FICA Tax =
Monthly Salary * .28)
- all employees pay the same NJ Tax rate of 6% (NJ Tax =
Monthly Salary * .06)
- Since the 401k% is given as a whole number, you need to divide
that number by 100. (401k Contribution = Monthly Salary * 401k% / 100)
- Net Pay is the Monthly Salary - FICA Tax - NJ Tax - 401k contribution
- Assume all employees are contributiong to the 401k with after tax dollars
Use the following file as input:
SNPAY.TXT
"Homer Simpson", 50000, 5
"Wayland Smithers", 15000, 1
"Carl Carlson", 150000, 10
"Lenny Bruce", 125000, 7.5
"Montgomery Burns",500000, 20
"Chief Wiggams", 10000,0
Expected output:
Springfield Nuclear Payroll
Monthly Fica NJ 401k 401k Net
Salary Tax Tax % Contrib. Pay
Homer Simpson 4,166.67 1,166.67 250.00 5.0% 208.33 2,541.67
Wayland Smithers 1,250.00 350.00 75.00 1.0% 12.50 812.50
Carl Carlson 12,500.00 3,500.00 750.00 10.0% 1,250.00 7,000.00
Lenny Bruce 10,416.67 2,916.67 625.00 7.5% 781.25 6,093.75
Montgomery Burns 41,666.67 11,666.67 2,500.00 20.0% 8,333.33 19,166.67
Chief Wiggams 833.33 233.33 50.00 0.0% 0.00 550.00
For this problem, All I am asking for is the QBasic Program
Submitting the program
- Submit the QBasic code electronically (either hand in the In-Class Floppy, or e-mail the QBasic code)
- Submit the QBasic code on paper.
You must work alone on these Computer Projects. Cheating in any form will not be tolerated.