Printing of Table Due: Wednesday, November 12
Computation Due: Friday, November 14
Problem: One organization consists of a federation of chapters, and the chapters pay dues to the central organization according to their income and based on the following table.
Income | Dues | |||
---|---|---|---|---|
Over | But not Over | Base | plus % | on income |
0 | 4000 | 0 | + 16% | over 0 |
4000 | 8000 | 640 | + 17% | over 4000 |
8000 | 12000 | 1320 | + 18% | over 8000 |
12000 | 16000 | 2040 | + 19% | over 12000 |
16000 | 20000 | 2800 | + 21% | over 16000 |
20000 | 24000 | 3640 | + 22% | over 20000 |
24000 | 28000 | 4520 | + 23% | over 24000 |
28000 | 32000 | 5440 | + 24% | over 28000 |
32000 | 36000 | 6400 | + 27% | over 32000 |
36000 | 40000 | 7480 | + 29% | over 36000 |
40000 | 44000 | 8640 | + 31% | over 40000 |
44000 | 48000 | 9880 | + 33% | over 44000 |
48000 | 52000 | 11200 | + 34% | over 48000 |
52000 | 56000 | 12560 | + 35% | over 52000 |
56000 | 60000 | 13960 | + 36% | over 56000 |
60000 | 64000 | 15400 | + 37% | over 60000 |
64000 | 68000 | 16880 | + 38% | over 64000 |
68000 | ----- | 18400 | + 29.25% | over 68000 |
Assignment: Write a program that allows users to print out the above table and that computes a chapter's dues. In the process, you will need to put together several of aspects of HP assembly language, including moving data, addressing, computation, branching, and input/output.
To get started, following these steps:
~walker/211/labs/proj-code.c
as a basic shell, write
a program that solves the above problem. Thus, beginning with the above
program, compiled to assembly, add appropriate elements (written in HP
Assembly Language) to store the table and handle all table mechanisms
(including the printing of the data table).
Extra Credit: While the entries in the above table may seem somewhat peculiar, there is some logic behind the various percentages, and this table was actually used by one organization. Explain the logic behind the significant drop in the dues rate quoted for the categories between the $64,000-$68,000 line and the over $68,000 line.
This document is available on the World Wide Web as
http://www.math.grin.edu/~walker/courses/211/assem-project.html