Question about Microsoft Computers & Internet

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

Please try to solve it quickly

Posted by on

• Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Mentor:

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

Governor:

An expert whose answer got voted for 20 times.

• Expert

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 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
}

×

Hi,
a 6ya Technician 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 repair professionals here in the US.
Goodluck!

Posted on Jan 02, 2017

×

my-video-file.mp4

×

## Related Questions:

### Pay My Bill ' Verizon Wireless

https://www.verizonwireless.com/PAYMYBILL/ Use this page for quick and secure payment of your Verizon Wireless Bill. Please use the 4 last digits of the account owner's SSN and the billing zip code.

### Billing and Payments ' Verizon Wireless

https://www.verizonwireless.com/support/billing-and-payments/ Manage Your Account Online. View Current and Past Bills in My Verizon · Pay Bill in My Verizon · Change Billing Address in My Verizon ...

### Pay Bill, See Offers, Check Email with My Verizon Fios

https://www.verizon.com/home/myverizon/ Review and pay your bill, sign-up to pay your bill automatically, check your email, and see the latest upgrade offers and deals. Sign-in to My Verizon today!Watch Fios · ‎Fios Internet, TV and Phone · ‎Sign In · ‎Verizon Support

### Verizon Quick & Easy Bill Payment ' Make a Payment

pay my Verizon bill Google Search

Mar 17, 2017 | Verizon Cell Phones

### I was wondering if this heater is costing a lot to run, it never shuts off! I was told I would be shocked to see how much electricity I am consuming.Thanks!

Yes, electric space heaters do use more electricity than most people would expect. And, since yours "never shuts off", your electric company is going to love you. Part of your problem may be, that the heater output is not great enough to heat the area to a temperature that would automatically turn the heater off. So. therefor it runs continually, until you turn it off. Is replacing the existing heater with one that has a greater output the answer? Maybe, but it would use more electricity to maintain a higher output. Hopefully, it would heat the area quickly and turn off quickly, saving you a minimal amount on your electric bill.

For the most part, as far as efficiency is concerned, you can't beat a vent-free gas heater, fireplace or gas logs. They're 99.9% efficient and will even work if the electricity goes off. They come in Natural Gas and Propane (LPG) models and can go just about anywhere in your home, when sized properly. Most have a built-in thermostat to maintain your comfort level. And, unlike and electric heater, the heat is warm and moist ... you feel it quicker and it's more comfortable.

Hope this gave you some insight into portable electric heaters.

Feb 27, 2011 | Black & Decker 200UH Utility Heater

### Send me error EA2

EA2 means the machine counted 2 bills as one bill. Typically, you must remove the bills and put them all back on the hopper when this happens. If you get the EA2 error often, adjust the position of the bill thickness adjuster. This can be found at the top of the counter. Adjust it to the right (+) to loosen the tension, or to the left (-) to tighten it. Test both to see which solves your issue.

Feb 26, 2011 | Royal Sovereign Electric Bill Counter...

### 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

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

#include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
long int units,charge=0;
float total;
const int rent=25;
cout << "Enter the number of units used : ";
cin>>units;
if(units>200)
charge=(units-200)*20+150*40+50*60;
else if(units>50)
charge=(units-50)*40+50*60;
else
charge=units*60;
total=0.01*charge+rent;
cout << "You have used " << units << " units." << endl;
cout << "Your total telephone bill is \$" << total;
getch();
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

### Hi,\r\nat the beginning of October, i bought a Whirlpool dryer - AWZ 3477, and use it about four times a week. i mainly use the "cupboard dry" function. i tend to put the dryer on at night, go to...

you mean the dryer required more power supply.you have to be careful with these solution cos it very hard to understand. Power could be off- - Check the voltage at the outlet with the VOM.Timer or thermostat could be bad -- Follow same tests as listed above.Terminal block could be bad -- Use the VOM to check for voltage at the terminal block. Be very careful here, as the power needs to be on for this test. If you don't feel comfortable, call an experienced electrician.Start switch could be bad -- Set the VOM to RX1 and remove one of the leads to the switch. Clip the probes to the switch's terminals. The reading should be infinity. Press the start button and the reading should change to zero. If not, the start switch is bad. please rate these solution by saying how helpful or vote.

Dec 24, 2010 | Whirlpool Dryers

### 2007 toyota sienna ce ,In dash board tiers low pressure light

sorry no quick fix ,fault with electrics ,encrypted software dealer only

Oct 24, 2009 | 2007 Toyota Sienna

### Electricity bill coding in java

First think how you would solve this problem yourself on a piece of paper. Then try programming it using the things you learned (if they've given you this assignment without teaching you to multiply, subtract and use if's, drop the course).
Well here is an idea.

Take the total kilowattage and send it to a function. What the function will do is subtract 14KW from the total Kilowattage and add the amount for the first 14KW then subtract 85KW from the total KW and add the amount for the 85KW. But once you subtract the number of KW from the total make sure to check if the total KW isn't negative, if so just break out of the function and return 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
}

Jan 05, 2009 | Computers & Internet

### High bills unable to buy fuel 'food and medicene and maintain home ramp slipper in winter[need solving] to prevent falls roof tiles nees replacing

Goverment help! contact your "Big Brother"! or go to the BIBLE where "GOD" sent Elisha to the widow woman cause she couldn't heat her home or buy food , same problem but different time! Thank-you-very much!

Aug 26, 2008 | Heating & Cooling

## Open Questions:

#### Related Topics:

517 people viewed this question

Level 3 Expert

Level 3 Expert