Write a C++ Program To Calculate Electricity Bill Of Person using Class

By | December 31, 2016

Calculate Electricity Bill Of Person using Class


 Write a C++ Program To Calculate Electricity Bill Of Person using Class. Here’s a Simple Program To Calculate Electricity Bill Of Person using Class in C++ Programming Language.


Algorithm for Calculating Electricity Bill : :


  • To Calculate Electricity Bill Of Person using Class,first we have to create and call  get( ) function to take input details of the customer.
  • After get( ) , we create and call a new function i.e  calc_bill( ) to calculate the total bill of the customer on the behalf of units consumed by the customer .
  • At last , we call the put( ) function to print or display customer or person electricity bill on the screen.

Here are some tarrifs set per unit consumption of electricity to the customer.

Unit tarrif  :

  • 100 RS. 1.20 per unit
    200 RS. 2 per unit
    300 RS. 3 per unit

Here below is the Source code in C++ to Calculate Electricity Bill Of Person using Class.This code is succesfully compile and run(on Codeblocks) on the Windows System and produces the output below.


SOURCE CODE : :



OUTPUT : :



Above is the source code and output for C++ Program to Calculate Electricity Bill Of Person using Class which is successfully compiled and run on Windows System to produce desired output.

If you found any error or any queries related to the above program or any questions or reviews , you wanna to ask from us ,you may Contact Us through our contact Page or you can also comment below in the comment section.We will try our best to reach upto you in the short interval.


Thanks for reading the post….

Leave a Reply

Your email address will not be published. Required fields are marked *