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...
-
Consider a one-period, finite-state economy where an individual has utility from the consumption of two goods. The consumption of the first good is denoted by c, and the consumption of the second...
-
CIO.9. Whatfactors produce growth in freecashflow?
-
On January 1, 2018, Allied Industries leased a high-performance conveyer to Karrier Company for a four-year period ending December 31, 2021, at which time possession of the leased asset will revert...
-
Use formulas to calculate ordinary deduction and initial tax basis
-
1. Should Cheerios have been more sensitive to cultural issues? 2. Do you think this ad will increase sales of Cheerios? The case describes the issues surrounding a commercial for Cheerios which...
-
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
-
If the 60-mm diameter shaft is subjected to an axial force of 5 kN, determine the average shear stress developed in the shear plane where the collar A and shaft are connected. 5 kN 60 mm 100 mm 2.5...
-
Childhood leukemia, a hematological malignancy, is the most common form of childhood cancer, representing 29% of cancers in children aged 0 to 14 years in 2018. Imagine that you work in the State...
-
Question 1 Approximating functions using linear functions or higher degree polynomials is a very useful scientific tool! This concept generalizes to Taylor Polynomials, but is most simply illustrated...
-
Find the volume of the solid of revolution formed by rotating the specified region R about the x axis. Volume Formula Suppose f(x) is continuous and f(x) 0 on a x b, and let R be the region under the...
-
As machines get older, the cost of maintaining them tends to increase. Suppose for a particular machine, the rate at which the maintenance cost is increasing is approximated by the function C' (t) =...
-
At Edsel Automotive, the management team is planning to expand one of its plants by adding a new assembly line for sport utility vehicles (SUVs). The cost of setting up the new SUV assembly line is...
-
On April 15, 2023, a 10-year note dated June 15, 2018, is discounted at 10% compounded quarterly. If the face value of the note is $4000 and interest is 8% compounded quarterly, calculate the...
-
The following items were displayed in the statement of affairs for Lubbock Company: Fully secured liabilities ......... $90,000 Partially secured liabilities ....... 12,000 Unsecured liabilities...
-
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...
-
You have just been hired as a new management trainee by Earrings Unlimited, a distributor of earrings to various retail outlets located in shopping malls across the country. In the past, the company...
-
Brief Exercise 10-6 Flint Inc. purchased land, building, and equipment from Laguna Corporation for a cash payment of $327,600. The estimated fair values of the assets are land $62,400, building...
-
"faithful respresentation" is the overriding principle that should be followed in ones prepaparation of IFRS-based financial statement. what is it? explain it fully quoting IAS. how this this...
Study smarter with the SolutionInn App