Program to calculate the electricity bill

Assignment Help Programming Languages
Reference no: EM1351645

Q1) Write a program to calculate the electricity bill. The rates of electricity per unit are as follows:

1. If the units consumed are equal or less than 100, then the cost is Rs 8/- per unit.

2. If the units consumed are more than 100 and less than and equal to 300, then the cost is Rs 10/- per unit and surcharge of 5% of bill is added.

3. If the units consumed are more than 300 and less than and equal to 500, then the cost is Rs 12/- per unit and surcharge of 15% of bill is added.

4. If the units consumed are more than 500, then the cost is Rs 15/- per unit and surcharge of 25% of bill is added.

Reference no: EM1351645

Questions Cloud

Philosophical views of a school : There is a lot of research recently that talks about the different philosophical views of a junior high (i.e., subject, cognitive orientation) vs. a middle school (i.e., development based). What are your thoughts?
Investment in the proposed project : You are evaluating a proposed project. You find the DCF-NPV is -$50,000. However, by investing today, you think you might have a future growth option to expand but it would cost you an additional $100,000.
Explanation of independent contractor as oppose to employee : What are the factors the court looks at in determining whether a person is an independent contractor and are you an agent of the company? What constitutes an agent?
Explain how does his behavior look in the light of day : Explain How does his behavior look in the light of day and Aside from his legal obligations, did Ingersoll behave ethically
Program to calculate the electricity bill : Write a program to calculate the electricity bill. The rates of electricity per unit are as follows: If the units consumed are equal or less than 100, then the cost is Rs 8/- per unit.
What is the increase in temperature of the bullet : A horizontal desk surface measures 2.08 m x 1.73 m. If Earth's magnetic field has magnitude 0.495 mT and is directed 64.8° below horizontal, what is the magnetic flux through the desk surface.
Characteristics of the life-span perspective : Please describe the characteristics of the life-span perspective and help identifying all of the characteristics of the life-span perspective listed below, I have to write a paper and need as much information as possible
Description of employee benefits : Describe to management the primary strategic consideration involved in managing the proposed benefits program - Memo to upper management detailing the benefits available to employees in the position of a special education teacher
Explain oligopolies are always bad for society : Oligopolies are always bad for society. The beer industry has a few large firms and many small firms; therefore we would not call it an oligopoly.

Reviews

Write a Review

Programming Languages Questions & Answers

  Create logic for program to enter each household size

Create logic for a program that allows a user to enter each household size and find out the mean and median household size in Marengo.

  Explaining class definition of subclass of square

Write down the class definition of subclass of Square called FancySquare which has a method called getDiagonal. The getDiagonal method gets no arguments.

  Distinguishing web pages or web servers for task

Distinguish between any Web pages or Web servers you would use for this task.

  Program to inputs four numbers and graphs them as pie chart

Write down a program which inputs four numbers and graphs them as pie chart.

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Implement functions using x86 assembly

Implement a procedure that mimics a logic unit

  Program that will help user with metric conversions

Write a program that will help the user with metric conversions. Your program should allow the user to specify the names of the units as strings (e.g., centimeters, liters, grams, for the metric system and inches).

  Timer interrupt to coordinate peripherals on microcontroller

The timer interrupts to coordinate peripherals on the microcontroller. Use code from prior labs to drive the peripherals and will make minor modifications to use the interrupts.

  Program to find real solutions

Method, which determines whether value of "b squared" - 4ac is negative. If negative, code then  prints out message "no real solutions" and returns from method.

  Program a maze-type game using assembly language

Project requires you to program a maze-type game using Assembly Language, it is not acceptable to use any other programming language for this project

  Program to enter up to 20 integers in the array of long

Write down a program which asks user in order to enter up to 20 integers in the array of longs.The program must utilize the function Find_It() in order to situate the integer within the array.

  Explaining handles clause of sub procedure

You are asked to design a form with a textbox named txtQty, a label named lblStatus, and a button named btnGetStatus. What will be Handles clause at the end of sub procedure?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd