Starting from:

$30

CSCI 360 Assignment 6 – Report Finishing 

CSCI 360 Assignment 6 – Report Finishing 
75 points
Copy your Assignment 5 program member and name it . Rename the program itself as .
First, if you've gotten your score and comments on your Assignment 5 program, fix any and all problems
in your new file that you had with that assignment.
Finally, change the program to produce output exactly identical to the output provided in the document in
the Assignment 6 folder on Blackboard named:
360 Assign 6 Report Finishing Su21 - Solution Output.pdf
Print 16 detail lines per page.
How to Count Lines and Print Page Headers
• Choose a register between 4 and 11 to use as a line counter and another to use as a page counter.
• Set the line counter register to a high value like 99 and the page counter register to 0 prior to the read
loop.
• Immediately above the in your Assignment 5 code where you print an employee detail line, use
a Compare instruction to determine if it is time to print page headers. You may use a literal in this
comparison.
• If it is time to print page headers, add 1 to your page counter register, it into the first page header
and print the first page header, the first column header line, the second column header line and the line
of hyphens and reset the line counter register to 0 to start counting the detail lines on the new page.
THEN the detail line. Be sure to add 1 to your line counter register immediately following the
of the detail line.
• DO NOT PRINT THE FIRST PAGE HEADERS PRIOR TO THE LOOP!!! Setting the line
counter register to 99 will print the first page headers once you get to the comparison right above the
for the detail line.
• After the loop, first print the line with hyphens under the columns for gross pay, federal withholding,
state withholding and net pay.
• Note that the line with the employee counter and totals is now all just one totals line.
• Name your page header line , your first column header line , your second column
header line , your first line of hyphens , your line of hyphens on the last page
and your one line of totals .
Note: To facilitate the use of some registers for line counter and page counter, you may declare three or
four fullwords in storage for your total gross pay, total federal withholding, total state withholding and, if
you choose, total net pay.
(continued)
CSCI 360 Assignment 6 – Report Finishing Page 2 of 2
Other
Fully document your program as instructed in the CSCI 360 Coding and Documentation Guidelines
found in Blackboard's Course Documents. Be sure every line of code has adequate line documentation.
Be sure that your ENTIRE output is included in the .txt file BEFORE you submit it for grading. If any or
all of it is missing, you will earn a 0 on the assignment.
Submit the .txt output from Marist on Blackboard as before.

More products