*
Computer Programming I
Programming Assignment 0 - GasPrice.java *

Problem

Write a program to compute monthly gas usage.

Input / Output (as variables)

Monthly mileage  : 1000
Miles per gallon : 10
Price of gas     : 1.959

You spend $195.9 a month on gas!

Discussion

Use variables for each step of the calculations and name them appropriately.

Create a standard program header as follows:

/*
 * COURSE        : Computer Programming I
 *
 * ASSIGNMENT    : 0
 * PROGRAM       : GasPrice.java
 * PROGRAMMER    : Your Name
 *
 * DESCRIPTION   : Program description goes here.
 *
 * COMMENTS      : as needed
 *
 * LAST MODIFIED : date
*/

Comment your program for readability and ease of maintenance.

Be sure to test your program thoroughly!


Submission

Place your storyboard and source file in your H:\CP1\Java folder by the due date. There is nothing to hand in.

*

This page maintained by bobh@hesston.edu