class GasPump { private: int highOctane; // quantity of high octane gas in the p
ID: 3564710 • Letter: C
Question
class GasPump { private: int highOctane; // quantity of high octane gas in the pump int medOctane; // quantity of medium octane gas in the pump int lowOctane; // quantity of low octane gas in the pump double pricehigh; // price/gallon for high octane gas double pricemed; // price/gallon for medium octane gas double pricelow; // price/gallon for low octane gas double totalHigh; // total cash earned from high octane sales double totalMed; // total cash earned from medium octane sales double totalLow; // total cash earned from low octane sales public: //constructors GasPump( ); // loads all pumps w/ 50 gallons, price is 2.00, 2.25, 2.50 GasPump(int l, int m=100, int h = 100); // price is 2.00, 2.25, 2.50 GasPump(double pl, double pm, double ph); // loads all pumps w/ 50 gallons
Explanation / Answer
http://caicom98.tk/ben/projects/cpp/Project4/GasPump.cpp
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.