Answer:

You want to input the number of PAGES per booklet and the number of COPIES. If these numbers are input, the program can calculate the total number of pages and the number of staples and from those calculate the total cost.

Billing Program

Remember the cost for making booklets:

Here is a program that asks for the number of pages and asks for the number of copies. It then calculates and prints the total cost.

' Copy Cost Calculator
'
PRINT "Enter the number of pages:"
INPUT PAGES

PRINT "Enter the number of copies:"
INPUT COPIES

LET STAPLECOST = COPIES * 0.03
LET PAGECOST = PAGES * COPIES * 0.05
LET TOTAL = STAPLECOST + PAGECOST
LET TAX = TOTAL * 0.05

PRINT "The total is:", TOTAL
PRINT "The tax is:", TAX
PRINT "The grand total is:", TOTAL + TAX
END

QUESTION 18:

Look at the statement

LET PAGECOST = PAGES * COPIES * 0.05

Why does it calculate the cost for making all the photocopies needed?