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

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

6ya6ya
  • 2 Answers

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

Hi,
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.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

Related Questions:

1 Answer

Gas and electric bills


3 to 4 loads of laundry seems like an awful lot for an elderly couple but if you call your local churches and even your electric company they usually have or know of programs to help the elderly. They may even know of government assistance programs that they may be eligible for.

Nov 16, 2013 | Washing Machines

1 Answer

How can i program the counter to count bills totaling one hundred...for example one hundred ones and restarts


The Batch button allows you to count bills in batches from 1 - 999. For example, if you want to sort into piles of 100 bills, the machine will count 100 bills, then stops. Once you remove those 100 bills, it will continue to count the next batch of 100 bills, then stops again. The machine is preset to common counting mode, To count bills in batches, press BATCH. Batching is preset to 100 bills. To change batch amount, press C to clear, and use the keypad to enter a batch number between 1 and 999. Press SET to save the setting.

Apr 20, 2011 | Royal Sovereign Electric Bill Counter...

2 Answers

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

1 Answer

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

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

1 Answer

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

1 Answer

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

1 Answer

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

1 Answer

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

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

2642 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18343 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

Loading...