Friday, October 27, 2006

Second Homework Assignment

Second Homework:
Students are to create a program that asks users for the distance they are traveling and store it in a variable. Then you are to ask the user for the miles per gallon of their car. Store this in a variable also. Lastly ask the user how much gas they have and store this in a variable. With this information calculate whether or not they can make the journey with the amount of gas they have. If not suggest they fill up.


Print this and your homework from yesterday and turn it in on Monday October 29th 2006. Leave your name in a comment. Do not email this assignment to me, you need to print it out!

No comments: