|
1.
|
The following program computes the total price, tax and final cost of items
on a billing invoice. Rewrite the program and insert ALPHA strings and
PROMPT for the quantity, unit price and tax. In
Addition, insert an ALPHA string to label the output of the final amount
from the X-register into the ALPHA register using
ARCL · X.
Run the program for 26 ruby rings that cost $72.90 with a tax of 7.25%; for
11 shovels that cost $7.15 with a 5% tax.
|
|
|
|
|
Insert these strings into the program to prompt for data:
QUANT? (quantity),
PRICE? (unit price),
TAX? (tax rate). Store
this string in storage register R10 (with
ASTO ) and recall it (with
ARCL ) in the program to label the output:
TOT=$ . If you have trouble
with this problem, you might wish to review
this section before you
continue.
|
|
(Answers: TOT=$ 2032.82;
TOT=$ 82.58.)
|
|
|
|
|