Question

Complete a pseudocode for the following program specifications. Be sure to declare the constants to be...

Complete a pseudocode for the following program specifications. Be sure to declare the constants to be used in the pseudocode. each pseudocode contains only one if statement (if-else)

2. You need a program that will calculate the electric bill for the month. Input will consist of customer name, old meter reading, and new meter reading. The output is to consist of the customer name, old meter reading, new meter reading, the kilowatt used, and the total bill. The company charges a base rate to $50.00. If a customer uses more than 300 kilowatts then they are charged the base rate plus $0.05 for each kilowatt over 300.

Homework Answers

Answer #1

The Pseudocode for the problem is provided below, please comment if any doubts:

//This program will calculate the electric bill for the month

//input: Customer name, Old meter reading , new meter reading

//output: Customer name, Old meter reading , new meter reading, //kilowatts used, Total bill

Start

//Read the inputs

Display(“Enter the customer name:)

CustomerName = Input()

Display(“Enter the old meter reading:)

OldMeterReading = Input()

Display(“Enter the new meter reading:)

NewMeterReading = Input()

//compute the kilowatt used

KiloWattUsed= NewMeterReading- OldMeterReading

//declare the total Bill variable

totalBill=0

//If kilowatt used is less than 300

If(KiloWattUsed<=300), then

     totalBill = 50

//if kilowatt used is greater than 300

Else

     ExtraUsed= KiloWattUsed-300

     totalBill = 50+ (0.05* ExtraUsed)

//display the ouputs

Display(CustomerName)

Display(OldMeterReading)

Display(NewMeterReading)

Display(KiloWattUsed)

Display(totalBill)

Screenshot of the Psedocode:

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Code in Java SAMPLE PROGRAM OUTPUT Because there are several different things your program might do...
Code in Java SAMPLE PROGRAM OUTPUT Because there are several different things your program might do depending upon what the user enters, please refer to the examples below to use to test your program. Run your final program one time for each scenario to make sure that you get the expected output. Be sure to format the output of your program so that it follows what is included in the examples. Remember, in all examples bold items are entered by...
You will write a program that loops until the user selects 0 to exit. In the...
You will write a program that loops until the user selects 0 to exit. In the loop the user interactively selects a menu choice to compress or decompress a file. There are three menu options: Option 0: allows the user to exit the program. Option 1: allows the user to compress the specified input file and store the result in an output file. Option 2: allows the user to decompress the specified input file and store the result in an...
      MK Restaurant: Branding of Thai-Style Hotpot The restaurant industry is one of the most...
      MK Restaurant: Branding of Thai-Style Hotpot The restaurant industry is one of the most competitive in Thailand. With a large number of players ranging from restaurants in five-star hotels, global fast-food chains to small stalls along the streets and everything in between, the Thais are spoiled for choice. In addition, as the world becomes globalized, consumers are familiar with international dishes and would not hesitate to try new offerings from the other side of the globe. As a...
After reading the following article, how would you summarize it? What conclusions can be made about...
After reading the following article, how would you summarize it? What conclusions can be made about Amazon? Case 12: Amazon.com Inc.: Retailing Giant to High-Tech Player? (Internet Companies) Overview Founded by Jeff Bezos, online giant Amazon.com, Inc. (Amazon), was incorporated in the state of Washington in July 1994, and sold its first book in July 1995. In May 1997, Amazon (AMZN) completed its initial public offering and its common stock was listed on the NASDAQ Global Select Market. Amazon quickly...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From the April 2004 Issue Save Share 8.95 In 1991, Progressive Insurance, an automobile insurer based in Mayfield Village, Ohio, had approximately $1.3 billion in sales. By 2002, that figure had grown to $9.5 billion. What fashionable strategies did Progressive employ to achieve sevenfold growth in just over a decade? Was it positioned in a high-growth industry? Hardly. Auto insurance is a mature, 100-year-old industry...
Exploring Innovation in Action Power to the People – Lifeline Energy Trevor Baylis was quite a...
Exploring Innovation in Action Power to the People – Lifeline Energy Trevor Baylis was quite a swimmer in his youth, representing Britain at the age of 15. So it wasn’t entirely surprising that he ended up working for a swimming pool firm in Surrey before setting up his own company. He continued his swimming passion – working as a part-time TV stuntman doing underwater feats – but also followed an interest in inventing things. One of the projects he began...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
Case Abstract: Company ABC, an AE, constructor and construction management firm, recently assigned Bob Ironside to...
Case Abstract: Company ABC, an AE, constructor and construction management firm, recently assigned Bob Ironside to turn a major coal fired generating station project around. Currently at 36 percent construction completion, the project is shifting from an emphasis on civil and structural work to bulk production. Cooperation of the owner, the multi-prime contractors, and strong labor unions is cach vital for performance improvement. The analysis of this project involves: 1) identification of significant external influences on the project organization, 2)...
In narrative essay format, I want you to address a business/organization case study using multiple concepts...
In narrative essay format, I want you to address a business/organization case study using multiple concepts from class. The case question and case text begin on page 5 of this document. You need to demonstrate their best understanding of management and organizational behavior theory, and the application of those ideas to improve the understanding of various issues. You need to clearly identify at least 3 distinct, substantive issues. For each issue you need to 1), identify evidence from the case...
In February 2012, the Pepsi Next product was launched into the US market. This case study...
In February 2012, the Pepsi Next product was launched into the US market. This case study provides students with an interesting insight into PepsiCo’s new product process and some of the challenging decisions that they faced along the way. Pepsi Next Case Study Introduction Pepsi Next was launched by PepsiCo into the US market in February 2012, and has since been rolled out to various international markets (for instance, it was launched in Australia in September 2012). The new product...