I need help on an assignment. Its a gas mileage calculator.
Compares two cars. You have to tank size, what kind of gas mileage do you get in city,
what kind of gas mileage you get on hwy it asks this for both cars.
how much does a gallon of gas cost now
what percentage do you travel on hwy
then it should show compared vehicles. I know i need objects and classes.Computers Programming C++?
Consider a car object. You can use it to store all the info for each car. You can even use the object to calculate the gas mileage.
The rest is displaying answers. Which you can also do with the car object.
The rest is easy math.
Shadow Wolf
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment