Bill for a cellular telephone company

Assignment Help Business Management
Reference no: EM131540209

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: EM131540209

Questions Cloud

Explore ethical perspectives in film : This assignment gives you the opportunity to explore ethical perspectives in film
Primary and secondary socialization : 1. What is socialization? 2. What is the difference between primary and secondary socialization?
Explain concept of tying performance to organizational goals : Strategic purpose for a well-blended compensation program, one that includes various types of direct compensation, is gaining employee commitment.
What is the equipment after-tax net salvage value : What is the equipment's after-tax net salvage value?
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.
Big ideas from the concepts : Lots and lots of information in this lab set. I'd like for you to select three BIG IDEAS from the concepts and elaborate on them for your peers.
What motivates you at work : In no more than 500 words and by supporting your answer with your own research, identify the factors in your current job that makes it motivating.
What classes are in the english department : Provide a list of all students without a biography. What classes are in the English department?
Daily workout information to internal storage and not sql : Create a mobile application using AndroidTM Studio that saves daily workout information to internal storage and not SQL Lite.

Reviews

Write a Review

Business Management Questions & Answers

  Apply the formula for the area of a triangle

The price at point f is $48 per bag. The price at point g is $13 per bag. Apply the formula for the area of a triangle (Area = ½ × Base × Height) to answer the following questions.

  Important step in detecting and preventing such practice

Analyzing why and how insider fraud occurs is an important step in detecting and preventing such practice. Describe fraud risk management.

  How a person''s mood may affect decision making

Do you believe mood affects decision making? Do you feel that you make better decisions when you are in a good mood? Or do you feel you make better decisions when you are in a bad mood?

  Papers not submitted to both turn

Papers not submitted to both turn it in also in hard-copy will receive a zero grade. Additionally, papers submitted after midnight of the due date will receive a zero grade.

  Why you care about the other partys disagreement payoff

Suppose that you must bargain with another party over how to realize a large joint value. - Explain why you care about the other party's disagreement payoff?

  If you do not believe you would do so, explain why not?

do you believe you would bring forth such an allegation and, if so, under what circumstances? If you do not believe you would do so, explain why not?

  How does your body paragraph directly support your statement

Have you ever needed just the facts? How does your body paragraph directly support your thesis statement? Did you use rich, relevant examples or statistics?

  What is the optimal solution

What is the optimal solution?

  Describe a four or higher dimensional array

Describe a four or higher dimensional array, listing what each dimension represents and what kind of problem can be analyzed or solved using such an array.

  What should a firm do to promote voice in organizations

What should a firm do to promote voice in organizations also why is this important in promoting organizational justice.

  International and cross-cultural negotiations differ

Discuss in what way international and cross-cultural negotiations differ.

  Consumer surplus in a market for gasoline

If there is a consumer surplus in a market for gasoline and the government sets a price ceiling below the market equilibrium price, what will happen to the quantity of gasoline supplied in the short-run, the number of gasoline stations in the long..

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