Question: lumclons Weh appropriate comments. Embed your class in a test program that requests data for several points from the user, creats the points, then exercises
lumclons Weh appropriate comments. Embed your class in a test program that requests data for several points from the user, creats the points, then exercises the member functions 4. 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 The following are listed things a gas pump might be expected to do. If your list differs, and you think your list is as good or better than these, then consult your instructor. You and your instructor should jointly decide what behavior you are to implement. Then implement and test the agreed upon design for a gas pump dass. a. A display of the amount dispensed b. A display of the amount chdrged for the amount dispensed . A display of the cost per gallon, liter, or other unit of volume that is used w you reside Before use, the gas pump must reset the amount dispensed and amount charged to zero. Once started, a gas pump continues to dispense fuel, dispensed. and compate the charge for the amount dispensed untid stopped f. A stop dispensing control of some kind is needed Implement the behavior of the gas pump as declarations of member foncrions of the gas pump class, then write implementations of these member funcions You
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
