Write an Assembler program to calculate payroll for a business. Each employee has an hourly pay rate, a number of hours worked in the pay period, a deduction amount for any lunches eaten in the company cafeteria during the pay period, and, if earned, a bonus amount. Of course, each employee has a name and employee identification number. A .txt document named is provided for you to begin this assignment. Copy it into IDz and save as a new member of your PDSE named to begin this assignment. Be sure to enter your KC-ID in the upper left hand corner and put your first initial, a period, and your last name in between the tick marks in the first line, the card. Input The first input record has two integers, the first representing the current federal tax withholding percentage and the second the current state tax withholding percentage. Read that record and get the percentages into registers to use in arithmetic in the body of the read loop. Each of the rest of the input record contains, from left to right across the 8

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write an Assembler program to calculate payroll for a business. Each employee has an hourly pay rate, a
number of hours worked in the pay period, a deduction amount for any lunches eaten in the company
cafeteria during the pay period, and, if earned, a bonus amount. Of course, each employee has a name and
employee identification number.
A .txt document named is provided for you to begin this
assignment. Copy it into IDz and save as a new member of your PDSE named to begin
this assignment. Be sure to enter your KC-ID in the upper left hand corner and put your first initial, a
period, and your last name in between the tick marks in the first line, the card.

Input
The first input record has two integers, the first representing the current federal tax withholding percentage
and the second the current state tax withholding percentage. Read that record and get the percentages into
registers to use in arithmetic in the body of the read loop.
Each of the rest of the input record contains, from left to right across the 80-byte record, the following data
about a single employee: employee name, employee id number, hourly pay rate, number of hours worked
in the pay period, deduction amount, and bonus amount, with the three dollar amounts rounded to the whole
dollar. Remember to use MVC to move character data (even thought it is numeric, you may consider the
employee id number character data – people do not do arithmetic with ID numbers…usually).
Calculations
Your program must calculate each employee's gross pay amount using the following formula:
And then calculate each employee's net pay amount using the following formula:
Your program also must count the number of employees processed and keep a running total of each of the
gross pay amount, federal withholding amount, state withholding amount and net pay amount.
Note: When doing division, disregard the remainder and use only the quotient of the division. Working
with decimal points will be included in a future assignment.
Be VERY smart about your register usage. For example, after you get the gross pay calculated and added
to the total gross pay amount register, you can reuse the registers that were used to hold hourly pay rate,
number of hours worked, deduction amount and bonus amount (of course, you also need to have 'd
those values into the print line and have added the deduction and bonus amount registers to their total
registers too).

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY