Answer:

The program will print:

glasses of soda =  56

Breaking a Calculation in Two

This statement does four things:

PRINT "glasses of soda =", OUNCES / 8
  1. Writes glasses of soda to the monitor.
  2. Gets the value 448 from the variable OUNCES.
  3. Divides that value by 8 (but leaves the contents of OUNCES unchanged).
  4. Writes the result, 56, to the monitor.

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.

QUESTION 14:

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.