subject
Computers and Technology, 20.10.2020 04:01 coreen9

Java Eclipse homework. I need help coding this Al’s Last Chance Gas Station sits on route 190 on the edge of Death Valley. There is no other gas station for 200 miles. You are to write a program using a if or Switch to help drivers decide if they need gas. The code should ask the user for the following:

the capacity of the gas tank in gallons
the indication of the gas gauge in percent (full = 1.00, three quarters full = .75, and so on)
the miles per gallon that the car usually gets
The program then writes out “Get Gas” or “Safe to Proceed”, depending upon if the car can cross the 200 miles with the gas remaining in the tank. Include the estimated distance in miles the car should be able to drive before running out of gas.

For a perfect score, improve on the program and make sure to comment your code appropriately.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
Answers: 2
You know the right answer?
Java Eclipse homework. I need help coding this Al’s Last Chance Gas Station sits on route 190 on th...
Questions
question
Mathematics, 01.03.2021 17:20
question
Mathematics, 01.03.2021 17:20
question
Computers and Technology, 01.03.2021 17:20
Questions on the website: 13722362