Exercises

August 28, 2006

  1. Write the algorithm for a program that takes as input the number of miles a car has traveled and the number of gallons of gas the car has consumed and calculates the number of miles the car can travel on one gallon of gas.
  2. Write the program for the algorithm you just generated using the tax program as a template.

Sami Rollins