C++ Code for creating a Electricity Bill Text File
Problem Statement:
Printing Electricity Bill Detailed Description
Write a C++ program in which you have to:
- Create a text file “Electricity_Bill”.
- Write the following data in it:
Electricity Consumer Bill:
| Reference No | Tariff | Load | Old A/C No |
| 123456789123456 | 2 | 1 | 123456789123456 |
Name and Address
XYZ Lahore Pakistan
| Reading | MF | Total Unit Consumed | Total Cost of electricity |
| 55671 | 1 | 328 | 999 |
—————————————————————————————————————————–
| Month | Units | Bill | Current Bill | 10732 |
| Jan-11 | 312 | 5000 | Arrears | 0 |
| Feb-11 | 312 | 5000 | Tariff Subsidy | N/A |
| Mar-11 | 312 | 5000 | Payable within Due date | 10732 |








