The program will print:
glasses of soda = 56
This statement does four things:
PRINT "glasses of soda =", OUNCES / 8
Often part of a calculation is put in a variable and later on used in the rest of the calculation. This divides the work between several program statements.
Your Grape Soda Keg Party was a success!! However, you discover that your living room carpet is now purple. A can of carpet cleaner will clean 80 square feet. Your living room carpet is 12 feet by 17 feet. How many cans or carpet cleaner do you need?
Write a program to solve this problem using a variable
named SQUAREFEET
which will hold the number of square feet
in your carpet.