Write a C++ Program (in OOP) to calculate and display a customer's electric bill. The program details are the following:
Posted: Thu May 05, 2022 1:59 pm
Write a C++ Program (in OOP) to calculate and display a customer's electric bill. The program details are the following: • A class called ElectricBill with private data members for the customer account, customer's name, address, current reading, previous reading and the unit of charge assuming a fix value of Php 0.09.00. • A public function get_customerData(), task is to get the information of the customer • A public function calculate_bill(), task is to calculate the total charge of the customer in peso • A public function display_raise(), task is to display both the information and the total electric bill to be paid by the customer Also, add feature in the program that will ask the user to repeat or not the execution of the program. Sample output: Account : 001 b Name : Richard Galvez Address Tibanga, Iligan City Current Reading : 53512 Previous Reading: 51875 Units Used: 1637 Charge per unit: .09 TOTAL CHARGE Php 147.33