Write a program for Horizon Phones, a provider of cellular phone service. Prompt a user for maximum
Question:
Write a program for Horizon Phones, a provider of cellular phone service. Prompt a user for maximum monthly values for talk minutes used, text messages sent, and gigabytes of data used, and then recommend the best plan for the customer’s needs. A customer who needs fewer than 500 minutes of talk and no text or data should accept Plan A at $49 per month. A customer who needs fewer than 500 minutes of talk and any text messages should accept Plan B at $55 per month. A customer who needs 500 or more minutes of talk and no data should accept either Plan C for up to 100 text messages at $61 per month or Plan D for 100 text messages or more at $70 per month. A customer who needs any data should accept Plan E for up to 2 gigabytes at $79 or Plan F for 2 gigabytes or more at $87. Save the file as CellPhoneService.java.
Step by Step Answer:
entry JOptionPaneshowInputDialognull Enter talk minutes needed tal...View the full answer
Students also viewed these Computer science questions
-
Write a program for your graphing utility that graphs two vectors and their difference given the vectors in component form.
-
GPA Calculator (gpa_calculator.py) You've decided to build a program to track your Grade Point Average (GPA). Your program will prompt the user to enter information for each course attempted (eg....
-
Cas Experiment Graphing Write a program for graphing partial sums of the following series. Guess from the graph what f(x) the series may represent. Confirm or disprove your guess by using the...
-
(1) Choose all of the following statements that are correct about the time evolution of a general wave function: (I) The time evolution of a general wave function is governed by the Hamiltonian...
-
Suppose that a gas pipeline averages 1 blemish per 40 km. Find the following probabilities for a section of the pipeline. More than 60 km between successive blemishes if there is at least 40 km...
-
Record the following transactions on the books of Keyser Co. (a) On July 1,Keyser Co. sold merchandise on account to Maxfield Inc. for $15,200, terms 2/10, n/30. (b) On July 8, Maxfield Inc. returned...
-
Question: An aunt saw her eight-year-old nephew enter the room, remarked what a nice boy he was, and said, "I would like to take care of him now." She promptly wrote a note, promising to pay the boy...
-
Relevant-cost approach to short-run pricing decisions. The San Carles Company is an electronics business with eight product lines. Income data for one of the products (XT-107) for June 2009 are:...
-
Findif the problem converges or diverges by the ratio test (5) \( \sum_{n=1}^{\infty} \frac{(-1)^{n} n !}{(n+1)^{2}} \). 2 answers
-
The stem-and-leaf display given here shows the final examination scores of students in a sociology course. (Leaf unit = 1.0) (a) Find the median score. (b) Find the quartiles Q1 and Q3. (c) What...
-
Caitlyns Crafty Creations computes a retail price for each product as the cost of materials plus $12 multiplied by the number of hours of work required to create the product, plus $7 shipping and...
-
What is the output of the following code segment? t = 10; if(t > 7) { System.out.print("AAA"); System.out.print("BBB"); } a. AAA b. BBB c. AAABBB d. Nothing
-
Do you think that the funds flow statement is more factual and less interpretative than the income statement and balance sheet?
-
How can digital technology transform financial reporting from static information provision to active engagement?
-
What are the different ways digital technology advancements disrupt the business partnering or advisory function of accounting?
-
What are the different ways digital technology advancements disrupt the AIS function?
-
Could an accountant work at a more mature digital business like Google or Amazon without digital technology / digital transformation / digital business competencies?
-
How do digital technology / digital transformation / digital business competencies enhance the performance of all other accounting roles and activities?
-
What is the bookkeeping entry for an increase in revenue?
-
H.J. Heinzs annual dividends were as follows: 1990 ..............$0.540 1991.............. 0.620 1992 .............. 0.700 1993.............. 0.780 1994 .............. 0.860 1995 .............. 0.940...
-
Which of the following elements is not required in a variable declaration? a. A type b. An identifier c. An assigned value d. A semicolon
-
The assignment operator in Java is _____________. a. = b. == c. := d. ::
-
Assuming you have declared shoeSize to be a variable of type int, which of the following is a valid assignment statement in Java? a. shoeSize = 9; b. shoeSize = 9.5; c. shoeSize = nine; d. Two of the...
-
PROBLEM 1 The link lengths, coupler point location, and the values of 02, 002, and 02 for the same four bar linkages as used for position and velocity analysis in Chapters 4 and 6 are redefined in...
-
Chapter 32 Problem 4. (Build Cycle Time in Stereolithography) The square cup-shaped part shown is fabricated using stereolithography. The base of the cup is 35 mm on each side and 4 mm thick. The...
-
Cut-Extrude Parametric Modeling Fundamentals 2-35 From Sketch Plane Direction 1 Up To Next End Condition: Up To Next 8. Set the Extents option to Up To Next face/body as shown. The Up To Next option...
Study smarter with the SolutionInn App