Question about Microsoft Educational & Reference Software

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.

×

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

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 | Educational & Reference Software

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 | Educational & Reference Software

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()
{
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 Educational & Reference Software

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

Jul 04, 2009 | Educational & Reference Software

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


http://en.wikipedia.org/wiki/History_of_programming_languages
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 | Educational & Reference Software

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?

Open Questions:

Educational & Reference Software Logo

Related Topics:

517 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Educational & Reference Software Experts

k24674

Level 3 Expert

7987 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18297 Answers

Are you a Microsoft Educational and Reference Software Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...