Preview

Electric Billing System

Good Essays
Open Document
Open Document
435 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Electric Billing System
RATELESS 0.218 /* rate of charge first 200 unit */
RATEMORE 0.334 /* rate of charge following unit */
PEN 0.015 /* penalty for unpaid balance */

Inputs int unit /* unit of electricity used */ float UnpaidBal /* unpaid balance */

Outputs float Penalty /* charge of penalty */ float UseCharge /* charge for the current electricity use */ float TotalBill /* total charge */

PROGRAM ALGORITHM (FLOW OF PROGRAM)
1. Display user instructions
2. Get data: unpaid balance and electricity unit used
3. Determine electricity unit used and compute use charge
4. Determine unpaid balance and compute penalty
5. Compute total charge
6. Display the total bill amount

DESIGN OF COMPUTATION OF USE CHARGE
The data required to compute the use charge are listed. We separate the involved data categories into Input, Process and Output.

Input Data int unit /* unit of electricity used */

Process Data
RATELESS 0.218 /* rate of charge first 200 unit */
RATEMORE 0.334 /* rate of charge following unit */

Output Data float UseCharge /* charge for the current electricity use */

Algorithm for Computation of Use Charge
We know that different rate will be used if the electricity unit used is more than 200. Thus we use if else selection to design the algorithm. if unit > 200 compute use charge for more than 200 unit else compute use charge for less than 200 unit

Formula for Use Charge
UseCharge=(unit-200)*RATEMORE+200*RATELESS /* more than 200 */
UseCharge=unit*RATELESS /* less than 200 */

DESIGN OF COMPUTATION OF PENALTY
The data required to compute the penalty are listed. We separate the involved data categories into Input, Process and Output.

Input Data float UnpaidBal /* unpaid balance */

Process Data
PEN 0.015 /* penalty for unpaid balance */

Output Data float Penalty /* charge of penalty */

Algorithm for Computation of Penalty
Penalty is dealt when there is an unpaid balance. We use if selection to design the algorithm.
if

You May Also Find These Documents Helpful

  • Powerful Essays

    Canadian Tax Principles

    • 4923 Words
    • 20 Pages

    There is a penalty on large amounts of late or deficient instalments. This penalty is specified in…

    • 4923 Words
    • 20 Pages
    Powerful Essays
  • Powerful Essays

    Fiserv, formed in July of 1984, became the leading United States Internet banking services provider and leader in electronic bill payment and presentment services upon acquiring CheckFree in 2007. In 2009 only a small portion of the company’s e-commerce revenue came from e-billing, whereas the majority came from electronic bill payment. E-billing, also called paperless billing, is a method in which financial intermediaries or other billers can send bills to their customers over the internet, and electronic bill payment would be offering customers to pay those bills online.…

    • 1743 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    DB Billing

    • 743 Words
    • 3 Pages

    Discuss why it is important for billers and coders to be familiar with software programs.…

    • 743 Words
    • 3 Pages
    Good Essays
  • Better Essays

    The lease agreement includes a provision requiring a penalty payment if Big Bear’s bank declares it in default under its primary credit arrangement. This potential cost should be included in calculating minimum lease payments since a lack of predetermined criteria exists to determine default.…

    • 1281 Words
    • 6 Pages
    Better Essays
  • Good Essays

    Billing Process

    • 719 Words
    • 2 Pages

    The Medical Billing Process is composed of ten different steps, each as equally important as the next. These ten steps are pre-register patients, establish financial responsibility, check in patients, review coding compliance, review billing compliance, check out patients, prepare and transmit claims, monitor payer adjudication, generate patient statements, and follow up payments and collections. When you bill a patient you want to be sure that you are not only doing it correctly but that you are charging or sending the bill to the right person whether it be the patient or the patients’ insurance company. With the ten steps to the medical billing process you want to make sure that you are doing it in the correct order. First you want to make sure that you are pre-registering the correct patient and that you are inputting their information as well as their insurance information in the system correctly. After this has been completed you are now able to schedule appointments for this patient. The next step in the process is to establish financial responsibility (who is paying for the medical bills), whether it be the patient or the insurance company. If the insurance company is assuming financial responsibility you want clarify what insurance plan the patient is falling under as well as what procedures are not covered and what financial responsibilities the patient may have (copayment). After all of this is complete, then comes checking in the patient. When checking in new patients, they need to fill out a detailed medical information sheet that will be kept on file and if they are not a new patient all they will do is review this sheet to see if anything has changed or needs to be updated. You also what to obtain a copy of their insurance card, both front and back and keep this on record as well. All medical diagnosis and procedures are given a medical code, these codes are extremely important when it comes to step four of the process, review coding compliance.…

    • 719 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    4. What is the benefit to Ideal Manufacturing of applying activity-based costing to its R&D activity for both in-house and outside charging…

    • 393 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Direct to Home

    • 1307 Words
    • 6 Pages

    compared, ideal and realised load curves, terms and factors. Effect of variable load on power plan…

    • 1307 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Ratio of cost to charges method’s use “as a cost driver for allocating costs from…

    • 817 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Credit Card 2009

    • 753 Words
    • 4 Pages

    • Requires payments in excess of the minimum to be applied first to the credit card balance with…

    • 753 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Dental Billing System

    • 590 Words
    • 3 Pages

    Due to common calamities, many records, such as patient’s information, payment billing, patient’s account balances and receipt, store on papers are easily destroyed because of its vulnerability to fire and to water. Papers are also easy to be tear apart and most of the times being misplaced. Furthermore, when looking for a certain file or data in a bundles of records, it always takes time finding for the right piece.…

    • 590 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    DuPontDisQues

    • 262 Words
    • 2 Pages

    Based on the data provided in the case, we may derive the following cost function:…

    • 262 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    penalty punishes them not for what they may or may not do in the future but what…

    • 622 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Power System

    • 1497 Words
    • 6 Pages

    • To provide an introduction to the main features of computer aided design and analysis of power systems and the use of ERACS software package for diagram building and Load Flow analysis.…

    • 1497 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    This study was delimited to the analysis of the efficiency of the system and identification of the advantages and disadvantages of using Web Development System.…

    • 271 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Syllabus for Mba

    • 17789 Words
    • 72 Pages

    5. Cost Analysis- - Various concepts of costs - cost output relationship - Application of marginal…

    • 17789 Words
    • 72 Pages
    Satisfactory Essays

Related Topics