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, 22.06.2019 05:00
Lisa has a section of her document that she would like to include in the index. which option should lisa choose? mark index mark entry insert endnote add text
Answers: 3
question
Computers and Technology, 22.06.2019 21:00
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
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, 11.05.2020 15:57
question
Mathematics, 11.05.2020 15:57
question
Biology, 11.05.2020 15:57
question
Chemistry, 11.05.2020 15:57
question
Mathematics, 11.05.2020 15:57
Questions on the website: 13722363