Question: c++ Mogel 10 2) Write a C++ program in which you create a class named Gas Pump to be used to model a pump at

c++
c++ Mogel 10 2) Write a C++ program in which you create

Mogel 10 2) Write a C++ program in which you create a class named Gas Pump to be used to model a pump at an automobile service station. Before you go further with this program, write down the behavior you expect fror gas pump from the point of view of the purchaser. (80 points) The following are listed things a gas pump might be expected to do. Then implement and test the agreed upor design for a gas pump class. a. A display of the amount dispensed. b. A display of the amount charged for the amount dispensed c. A display of the cost per gallon, liter, or other unit of volume that is used where you reside. d. Before use, the gas pump must reset the amount dispensed and amount charged to zero. e. Once started, a gas pump continues to dispense fuel, keep track of the amount dispensed, and comp the charge for the amount dispensed until stopped. f. A stop dispensing control of some kind is needed. Implement the behavior of the gas pump as declarations of member functions of the gas pump class, then wri implementations of these member functions. You will have to decide if there is data the gas pump must keep track of that the user of the pump should not have access to If so, make these private member variables. Tara All Output Auto sty

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!