Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOP #96

Open
bgates opened this issue Apr 25, 2017 · 0 comments
Open

OOP #96

bgates opened this issue Apr 25, 2017 · 0 comments

Comments

@bgates
Copy link
Contributor

bgates commented Apr 25, 2017

Write a constructor function for a car, which has make, model, gasTank, and mileage. Write a range method for a car, which will tell how far the car can go based on what's in the tank.

For example, a car with 5 gallons of gas which gets 31 mpg would have a range value of 155.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant