15. Write a program to create a binary file "Elecdat" to store the name of the consumer,
meter number, previous meter reading and present meter reading of N number of
consumer. Open the file in appropriate mode to retrieve the records and calculate the
bill by using the following criteria:
Units consumed =Present meter reading - Previous meter reading
Units Consumed
Bill
Upto 100
2.25/ unit
101 - 200
**2.50/unit
201 300
2.75unit
301 and above
33.00/unit
Print the elements in the following format:
Electricity Bill
Name Meter No. Unit Consumed
Bill
XXX
XXX
XXX
XXX
XXX
XXX
Answers
Answered by
0
Answer:
analyse the role of cast in indian politics
in 100-150 words
Similar questions