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

  Create a cost model for higher-level operations in c++

Exercise 7-7 involved writing a program to measure the cost of various operations in C++. Use the ideas of this section to create another version of the program.

  Understanding and knowledge gained about session

Demonstrate your understanding and knowledge gained about session's material. Complete with a short discussion (one paragraph) for each question on a Word document and upload through the courseware.

  Construct foam or clay models of primitive solid shapes

How would the pieces have to change if none of the sides of the prism were parallel to the base of the cone? Try intersecting the prism with the cylinder and then the cube, at both normal and skew angles.

  Pseudo code for a program that calculates the gown size

Draw the output and write pseudo code for a program that calculates the gown size that student need for graduation ceremony. The program accepts as input a student's height in feet and inches and weight in pounds and does so continuously until the..

  Determine the curvature term that arises from the noise

Assume that π(v) is a smooth function of the noise v in the model of Fig. 9.6. Using a Taylor expansion of the distortion measure of Eq. (9.19), determine the curvature term that arises from the noise model π(v)

  Describe the qualities of valuable information

1. Describe the qualities of valuable information. 2. Describe the different data types used in the fields of a database. Describe and explain how the different methods of validating data are used in a database.

  What are key factors to keep in mind when creating a lan

1) What are key factors to keep in mind when creating a LAN plan? What are the benefits of a standardized architecture? Why should a customer use products based on a protocol architecture standard in preference to products based on a proprietary arch..

  Find the centerline velocity and the volumetric flow rate

Water flows through a 6-in.-diameter horizontal pipe at a rate of 2.0 ft3 /s and a pressure drop of 4.2 psi per 100 ft of pipe. Determine the friction factor.

  What file sharing protocol do you recommend

What file sharing protocol do you recommend and why? Should you configure this network as a peer-to-peer network or as a client/server network?

  Explain how each of the first four drivers

Consider a case where you have a new company and you need to source for new IT equipment and use it to build a proper IT infrastructure. Explain HOW each of the first four drivers will become a reality in your company.

  Write a program in c++ for a server

Write a program in C++ for a server (called math solver) which solves three math problems: factorial (i.e. n!), exponent with base 2 (i.e. 2n), and cube (i.e. n3).

  Prints its volume and surface area

Write an application that reads the radius of a sphere and prints its volume and surface area. Use the following formulas, in which r represents the sphere's radius. Print the output to four decimal places

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