Question about Microsoft Computers & Internet

1 Answer

Write a c program ''to maintain electricity bill''

Please try to solve it quickly

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points


    An expert that got 5 achievements.


    An expert who has written 3 tips or uploaded 2 video tips.


    An expert whose answer got voted for 20 times.

  • Expert
  • 80 Answers

It sounds like a homework assignment that you are supposed to write. Get a copy of your electric bill and look at all the various charges, fees, taxes, etc. Then write the program.

Posted on Mar 13, 2009

  • Adi Sunardy
    Adi Sunardy Mar 13, 2009

    Well here is an idea.

    Take the total kilowattage and send it toa function. What the function will do is subtract 14KW from the totalKilowattage and add the amount for the first 14KW then subtract 85KWfrom the total KW and add the amount for the 85KW. But once yousubtract the number of KW from the total make sure to check if thetotal KW isn't negative, if so just break out of the function andreturn the total due.

    Or if you have formula for how much the rate grows over how many miles.

    For example lets say the rate grows by $1 every time the KW doubles you could have something like

    int rate = 1; //Begining rate
    int KW = 14; //First flat rate
    int amount; //total amount they have to pay
    while(totalKW > 0)
    totalKW -= KW; //subtract the first rate
    if(totalKW <= 0) //check if too much subtracted
    break; //if so break
    amount += rate; //add the rate to the total

    rate += 1; // Add $1 to the rate every time
    KW *= 2; // KW is doubled

    P.S.: If this information was helpful, please rate this solution.


1 Suggested Answer

  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

1 Answer

What does reference 208842298 on my bill refer to?

Please contact the company whose bill you're asking about. FixYa has no information about a bill you received from an unnamed company.

Nov 09, 2014 | Computers & Internet

1 Answer

Write a c program to print electricity bill

give more specifications

1. source of bills (who will maintain : automatic or manual feeding)
2. specs required in output(whatever data is needed in the printout)
3. format of output.

Feb 08, 2011 | Computers & Internet

1 Answer

How use the VAT

You have to print the vat number in bill books only.

1. You have to give the tin number at the places where you purchase goods.
2. You have to file returns monthly.
3. You have to keep an auditor to maintain records . Like purchase Bills and Sale Bills .

Jan 30, 2011 | Super Tutor Trigonometry (ESDTRIG) for PC

1 Answer

How to write an electricity bill in c program(9'th class)

#include <iostream.h>
#include <conio.h>
int main()
long int units,charge=0;
float total;
const int rent=25;
cout << "Enter the number of units used : ";
else if(units>50)
cout << "You have used " << units << " units." << endl;
cout << "Your total telephone bill is $" << total;
return 0;

Please accept the solution. Thanks, Lucy
This program takes in the number of units used ('units') as a screen input from the user.
It then calculates the total telephone bill for the customer on the following basis :
A compulsory fee of $25, plus
60 cents per unit for the first 50 units,
40 cents per unit for the next 150 units,
20 cents per unit for anything above 200 units.
It then outputs the bill using the 'cout' command.

Jan 12, 2011 | Microsoft Computers & Internet

1 Answer

Errors trying to run are you smarter thana fifth grader

Hello, I solved the problem by returning the software to the vendor for credit. I have book marked yourr domain for future reference. May your new year be filled with good health, safety and prosperity.
Sincerely, Bill Cross

Dec 27, 2009 | ValuSoft Are You Smarter Than A 5th...

3 Answers

Ms office word shortcut

sir you have deleted its registry..
if you have office cd. uninstall the previous one and try to install new one
don't forget to rate if this solution resolve your problem
if you have any doubt please type in comment

Jul 04, 2009 | Computers & Internet

1 Answer

Its pretty much wat she said

hmmm.... i dont know if i can help you, but try downloading catz 5 from the internet

Jun 25, 2009 | Ubi Soft Catz 5 (Windows) (680901) for PC

1 Answer

Hi i want to ask you something bout c++ programing language
The above is a link to wikipedia.It has almost all the history required and sample programs.Please do rate if the problem is solved.

Sep 10, 2008 | Computers & Internet

2 Answers

Installing "notes"

Did you try to go to the folder where the notes are stored in Quickverse program folder and put them into the new folder?

Mar 09, 2008 | Parsons QuickVerse 7 Essentials (fe11044)...

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

517 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2635 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18331 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides