Jake problem- Jake has a car with an 8 gallon fuel tank. Jake fills his tank with gas and then drives 60 miles to a friends house. When he gets to his friends house he has 6 gallons left in tank.   I have to write a program that uses three input elements to enter values for tank size, miles traveled and gallons left   The program should calculate and display how many miles Jake can drive on a full tank of gas

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 5GZ
icon
Related questions
Question
100%

Jake problem- Jake has a car with an 8 gallon fuel tank. Jake fills his tank with gas and then drives 60 miles to a friends house. When he gets to his friends house he has 6 gallons left in tank.

 

I have to write a program that uses three input elements to enter values for tank size, miles traveled and gallons left

 

The program should calculate and display how many miles Jake can drive on a full tank of gas

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr