Question
The Fuel Friend system calculates qty. of fuel to fill Given: Pumps need customers to state the exact qty. of fuel to fill Cars display
The Fuel Friend system calculates qty. of fuel to fill
Given:
Pumps need customers to state the exact qty. of fuel to fill
Cars display tank capacity and quantity of fuel 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
Engineer the Fuel Friend system:
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
Include clear screenshots from five different runs, 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
Turn in five files: requirements, design, source code, test plan with 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 fuel to fill: one for each unit of measure
Reported qty. of fuel 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
Expected cols: you manually compute using first five cols
Reported cols: copy what the pgm. Reported
Status: Pass iff every reported col equals its expected col
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started