Calculates the bill for a cellular telephone company

Assignment Help Basic Computer Science
Reference no: EM131544532

Java program that calculates the bill for a cellular telephone company. The company offers two types of service: regular and premium. The rates vary depending on the type of service. The rates are computed as follows:

Regular service: $10.00 plus first 50 minutes used each month are included in the $10.00 monthly service fee. Charges for minutes used over 50 minutes each month are $0.20 per minute.

Premium service: $25.00 plus:

a. For calls made from 6:00AM to 6:00PM, the first 75 minutes used each month are included in the $25.00 monthly service fee; charges for minutes used over 75 minutes each month are $0.10 per minute.

b. For calls made from 6:00PM to 6:00AM, the first 100 minutes used each month are included in the $25.00 monthly service fee; charges for minutes used over 100 minutes each month are $0.05 per minute.

Your program should prompt the user to enter an account number, a service code (type char), and the number of minutes the service was used. A service code (or R) means regular service; while code (or P) means premium service.

For the premium service (code P), the customer may be using the service during both the day and at night. Therefore, you must ask the user to input the number of minutes used during the day and the number of minutes used at night (do not prompt for total minutes).

The program should output, on separate lines and with proper labels, the account number, service type, number of minutes the service was used, and the amount due from the user.

Reference no: EM131544532

Questions Cloud

How much overlap should be built into the grade ranges : Assume you are leading a team of consultants hired by MPBS to help develop their total compensation plan. MPBS wants to implement a compensation plan.
Regular expressions in commands and scripts : Use regular expressions in commands and scripts. Read help on Windows command findstr and Linux utility grep. Use grep with option -P.
Describe how sales of individual items would be entered : Describe how sales of individual items would be entered? How the database would store the data compared to the current spreadsheet method?
What is the present value of annuity : what’s their future value if the compounding rate is 9.50 percent APR? What is the present value of this annuity?
Calculates the bill for a cellular telephone company : Java program that calculates the bill for a cellular telephone company. The company offers two types of service: regular and premium.
Charts based on the datasets in the exercise files : Create the following charts based on the datasets in the exercise files in the Lynda.com® video for this week.
Produce a sine wave of the same frequency : Construct the above algebraic equations to represent the engineering problems in matrix form - Classify stationary points of the above function.
Is medical language only used when people are sick : Identify and evaluate the way these authors apply medical language to the monastic experience? Is medical language only used when people are sick?
Discuss health care organization profile : In the role of a health care manager, for the final project you will develop and write a comprehensive marketing and communication plan for your fictitious.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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