PGandE.cpp) Consider a gas and electric bill that
sets two levels of use as follows:
Gas Electric
Baseline Quantities 31 therms 238.7 kwh
Baseline price $.504 /therm $.094 /kwh
Over Baseline Price $.824 /therm $.133 /kwh
Write a program that takes starting and ending
readings for gas and electric meters and calculates
charges to the nearest cent. Use one function to
calculate charges for both gas and electric so as to
eliminate duplicate calculations.
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-46315.pdf
Comments
Leave a comment