首页 > > 详细

CIS 331 Fuel Efficiency Information

CIS 331 – Spring 2019 HW #2: Fuel Efficiency Information Scenario: You will be writing a small Java application that displays useful fuel efficiency information for a user. Here are your instructions: Request the following information from the user: • Fuel capacity of a vehicle • Fuel remaining in the tank • Fuel efficiency of the Vehicle • Cost per gallon of Gas Then, calculate and display the following for the user: • Gallons of fuel used • Total cost of the fuel used. • How much it costs to buy fuel to drive the vehicle 100 miles. • How many miles can be driven on the fuel remaining in the tank? Example program run and output: Requirements: • Place a comment header at the top of your .java file that includes Author, Date, and Program Purpose. Do this for every homework submission this semester. • Comment your code sufficiently but not excessively. Describe what you are doing, logic wise, with your code. • Your output does not have to look exactly like mine, but similar in style and functionality. • Make sure your calculations are correct! • You do not have to worry with decimal rounding right now. We will tackle this later. • This is an individual assignment. Due: Tuesday, January 15th by 11:59 p.m. Worth: 10 Homework Points
联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!