subject

Write the definition for a class named GasPump to be used to model a pump at an automobile service station. Before you go further with this programming exercise, write down the behavior you expect from a gas pump from the point of view of the purchaser.1. Below are listed things a gas pump might be expected to do. Implement and test the design for a gas pump class. 2. A display of the amount dispensed. A display of the amount charged for the amount dispensed. 3. A display of the cost per gallon. Before use. the gas pump must reset the amount dispensed and amount charged to zero. 4. Once started, a gas pump continues to dispense fuel, keep track of the amount dispensed, and compute the charge for the amount dispensed until stopped. 5. A stop dispensing control of some kind is needed.6. Implement the behavior of the gas pump as declarations of member functions of the gas pump class, then write implementations of these member functions. You will have to decide if there is data the gas pump has to keep track of that the user of the pump should not have access to. If so. make these private member variables.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:30
You have read about the beginnings of the internet and how it was created. what was the internet originally created to do? (select all that apply) share research. play games. communicate. share documents. sell toys
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
question
Computers and Technology, 24.06.2019 02:00
Write an expression that will cause the following code to print "equal" if the value of sensorreading is "close enough" to targetvalue. otherwise, print "not equal". ex: if targetvalue is 0.3333 and sensorreading is (1.0/3.0), output is:
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
You know the right answer?
Write the definition for a class named GasPump to be used to model a pump at an automobile service s...
Questions
question
Mathematics, 14.11.2020 06:00
question
English, 14.11.2020 06:00
question
Mathematics, 14.11.2020 06:00
Questions on the website: 13722362