Write a program that calculates a customer monthly bill

Assignment Help Programming Languages
Reference no: EM13802720

Problem Statement

Assume that the Internet Service provider, Comcast, has three different subscription packages for its customers:

Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour.

Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour

Package C: For $19.95 per month unlimited access is provided.

Write a program that calculates a customer's monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should the display the total charges. In addition, it should display the amount of money Package A customers would save if they purchased Package B or C, and the amount of money Package B customers would save if they purchased Package C. If there would be no savings, no message should be printed.

Please write a program that displays the following information:

• The amount of money a customer will pay

• The amount of money a customer will save if he or she purchase Package B or C

• The amount of money must following a '$' and have 2 decimal points, such as $2.00, $34.56, etc.

Reference no: EM13802720

Questions Cloud

Write a paper about the cowboy cultural experience : Write a paper about The Cowboy Cultural Experience.
Big five personality inventory : Take the Big 5 Personality Inventory on p. 311 in our book. Write a 250 word summary of your type, as described by the Big 5 Inventory; discuss the upsides and the downsides of your type.
Assignment on applications of graph theory : Assignment on Applications of Graph Theory
How the symptoms impact on his activities of daily living : What community assistance would be available for Mrs Barber whilst Mr Barber remains in hospital? Give an example of an allied health care worker who would make these arrangements prior to Mr Barbers discharge - What actions should you take now tha..
Write a program that calculates a customer monthly bill : Write a program that calculates a customer's monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should the display the total charges
Explain your answer and provide supporting rationale : Evaluate whether each of the following statements is true or false.  Explain your answer and provide supporting rationale. The short-run aggregate supply (SAS) curve slopes upward because households spend more as their incomes increase. The long-run ..
Analyze a work of literature not presented in class : Analyze a work of literature not presented in class in about 8 pages (2400-3200 words). The paper should focus on how this work of literature can be seen as part of the ongoing discourse.
Grouping of items for future discovery : Your Final Project for this course will be a virtual time capsule. A time capsule is a grouping of items for future discovery. For our purposes, we will imagine that our time capsule will be buried at the end of the course and opened 100 years lat..
Design an employee class : Design an Employee class that has fields for the following pieces of information: Employee Name and Employee Number

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program that asks user to enter current value

Write a program which asks the user to enter the current value of a car. For new car, it is selling price of car. The program must display number of years it takes for the car's trade-in value to be below $1000.

  Write down a program which reads an integer between 0 and

write a program that reads an integer between 0 and 10000 by selecting the integer at random then sum the digits. for

  Write program to asks user to enter temperatures

Write down the C++ program which asks the user to enter 12 temperatures for each month in year and store them in one-dimensional array called "temps".

  Prepare a program that takes the data from triangle

Prepare a program that takes the data from triangle.txt (supplied in this folder) and outputs a message indicating whether the triangle is a right triangle. The text file has data for three triangles.

  Create modular program to enter monthly costs

Create modular program which ask user to enter monthly costs for the following expenses incurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance.

  Draw diagram shows occupancy of buffer as function of time

A transmitter with rate R bps serves the buffer by sending the bits whenever available. Draw a diagram that shows the occupancy of the buffer as a function of time, for different ranges of values for R.

  Write html form that prompts user to enter value

Write an HTML form that prompts the user to enter a value. In PHP, write a script to determine whether the value contains an integer , a decimal-place number.

  Write statement that calls add to compute sum of sales

Add is a method that accepts two int arguments and returns their sum. Write a statement that calls add to compute the sum of euroSales and asiaSales and that stores this value in eurasiaSales .

  Write code to concatenate strings separated by space

Write a few lines of code (need not be a separate function) to: Concatenate strings a and b separated by space into a string f. Print it.

  Which selection technique do you think is best suited

Which selection technique do you think is best suited for such a program? Why? Do you agree that all control structures are nothing but a form of the ''Go to'' statement? Why or why not? Justify your responses with reasons

  Write a program that replies either leap or not a leap year

Write a program that replies either Leap Year or Not a Leap Year, given a year. It is a leap year if the year is divisible by 4 but not by 100 (for example, 1796 is a leap year because it is divisible by 4 but not by 100).

  Important factors in the design of your application

What do you think will be the most important factors in the design of your application and what are the most important principles that you want to include in the design of your application?

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