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

  Calculating hit ratio for program having loops

Calculate hit ratio for program that loops 10 times from locations 0 - 64.

  Creating loop to find number of items bought based on price

Make a block using a loop that will find the number of items that can be bought based on the price of the item and the total amount available to spend.

  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.

  Two-level memory cache hierarchy

Explain how you would pipeline the four following pairs of statements.

  Object-oriented analysis and design

Object-Oriented Analysis and Design,  PART B-object-oriented design involves the steps 13-18:

  Design a class-based solution to a problem

To design a class-based solution to a problem using multiple data structures.

  Program to compute unit price of items sold

Manager of a Supermarket would like to be able to calculate the unit price of items sold there. To do this the program should input the name and the price of the item.

  Write a perl program

Write perl program which will run on my system and will start another perl program on another linux system. The main program should wait for linux perl program to complete its work and send the result to my main perl program.

  Designing navigation system for point-and-click system

Design a navigation system or menu allows Access to act like point-and-click system. Write down some of the kinds of navigation.

  Applying constraints in program

You will require to set up constants in program for given: number of square feet per square yard.

  Program to return the array index having largest savings

Write down function also called from main module - this function will find out and return array index containing the largest savings.

  Program to create professor rating class

Write down program to create Professor Rating class comprising of professor ID and three ratings. Three ratings are utilized to estimate easiness.

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