Learn to Program Step-by-Step

MPG Program

Gas Mileage Program

After writing pseudo-code it should be fairly easy to write the program from it. When you write the program, you will decide:

  • a name and type to declare each variable
  • an appropriate (user friendly) prompt for each input so that the user will know what to enter
  • how to display the result
Like us on Facebook:

OER: Open Educational Resource
Creative Commons License Author: Janet E. Joy; Publisher: Zebra0.com
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
Creative Commons Attribution-NonCommercial 4.0 International License
Last modified: January 08 2016 10:54:06.