Question: Java Program Please!!!!! Fuel Friend is a system to compute qty. of gas to fill Given: Pumps need customers to state the exact qty. of

Java Program Please!!!!!

Fuel Friend is a system to compute qty. of gas to fill

Given: Pumps need customers to state the exact qty. of gas to fill Cars display tank capacity and quantity of gas still in tank Drivers like to see the qty. to fill in a unit familiar to them Drivers, cars, pumps are all free to use any unit of measure

EngineertheFuelFriendsystem:

  1. Specify a set of requirements and assumptions

  2. Design functions to meet the requirements (no OOP)

  3. Implement as a command-line pgm in C++ or Java

  4. Test that the solution meets the requirements

  • Requirements: a numbered list with 5-10 items, each item being a paragraph of about 3-5 lines

    List assumptions separately if doing so adds clarity

  • Design: assume procedural programming; no OOP Draw structure chart to show relationship among functions Draw flow chart of the logic as if all code is in one function

  • Implementation: one source file suffices

    • Develop a command-line pgm which takes no user input

    • Choose pump, car, and driver units at random. Also pick at random the tank capacity and the qty. of fuel left in tank

    • Break down the code into meaningful functions

Includeclearscreenshotsfromfivedifferentruns, each run showing a distinct permutation of units of measure

At least one screen should show the driver and pump using the same unit (say Liters) and the car using a different unit

Turninfivefiles:requirements,design,sourcecode,

test plan and results, and screenshots (all screens in

one file)

  • Test plan: a spreadsheet with 12 columns Three units of measures: values the pgm chose at random Tank capacity, qty. left: values the pgm chose at random Expected qty. of gas to fill: one for each unit of measure Reported qty. of gas to fill: one for each unit of measure Status: Data rows contains Pass or Fail. See below.

  • Add one data row for each screenshot turned in First five columns: copy what the pgm. chose at random

    Value in expected columns: you manually compute Value in reported columns: copy what the pgm. reported Status: Pass only if all reported cols match expected cols

Java Program Please!!!!! Fuel Friend is a system to compute qty. of

cs. Command Prompt Units of measure: Car: US Gallons Pump: Liters Driver: Imperial Gallons Tank details: - Capacity: 13 US Gallons Fuel remaining: 5.2 US Gallons Quantity of fuel to fill: Car units: 7.8 US Gallons Pump units: 29.53 Liters Driver units: 6.49 Imperial Gallons cs. Command Prompt Units of measure: Car: US Gallons Pump: Liters Driver: Imperial Gallons Tank details: - Capacity: 13 US Gallons Fuel remaining: 5.2 US Gallons Quantity of fuel to fill: Car units: 7.8 US Gallons Pump units: 29.53 Liters Driver units: 6.49 Imperial Gallons

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!