Question: JAVA: Scenario: Lets say you are a college student that comes from a low-income family, so you inherited your grandparent's 1985 Chevy whose Gas Gauge
JAVA: Scenario: Lets say you are a college student that comes from a low-income family, so you inherited your grandparent's 1985 Chevy whose Gas Gauge doesn't work properly. Write a program that lets you know when its time to fill up your gas tank based on your commute. Lets say you know the accurate mpg of the vehicle and you use it as a daily (school, to get lunch, to go to Walmart for groceries, to go to the gas station)
MPG of the 1985 Chevy is: 12MPG
Full tank can fill 8 Gallons of gas.
Gas has a fixed price of $2.50 per gallon.
MUST: You go to school 4 times a week, and school is 10 miles away. (remember you must calculate round trip).
MUST: You go to walmart twice a week to buy groceries and its 8 miles way from HOME. (round trip).
MUST : Your nearest Gas station is 2 miles away from HOME.
Optional: Your nearest Chik-Fil-A is 7 miles away from HOME, and you go AFTER getting HOME from school.
Approximately calculate how many times can you go to chik-fil-A without running out of gas if you have a budget of $30 a week for gas.
Please use the most basic and simple approaches for this problem. We still on the beggining of the Java N I dont want my professor thinking Im a java god haha thanks!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
