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...
-
A survey of high school students is described in the report Students on STEM (changetheequation. org/students-stem, retrieved December 12, 2016). The report states that 14% of those in a sample of...
-
Phil's Pizza Parlor decides to place a thin, rectangular, plastic sign on top of its delivery van as shown in Fig. P9.73. The sign measures \(2 \mathrm{ft}\) by \(5 \mathrm{ft}\). (a) Estimate the...
-
M. Anthony, LLP, produces music in a studio in London. The cost of producing one typical song follows: Average Cost per Song: Labor, including musicians and technicians . . . . . . . . . . . . ....
-
Using the laws of Boolean algebra, convert the following expressions into simplest form: (b + c')' (w'y + z)' (b(ad + c))' ((wx + y)' (wy + z'))'
-
Suppose a distribution has Mean=20, Median=10, and SD=15. Then, the value of coefficient of skewness is, a) b) c) d) 1.50 2.00 -2.00 -3.00
-
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
-
(a) Find the heat flow into or out of the gas during each of the four steps. (b) What is the net heat flow into the gas per cycle? (c) Calculate the change in entropy of the cold reservoir (not of...
-
Solve Exercise P16.4 recursively, by calling a recursive helper method private static boolean contains(Node start, Object obj) If start is null, then it cant contain the object. Otherwise, check...
-
Given a queue with O(1) methods add, remove, and size, what is the big-Oh efficiency of moving the element at the head of the queue to the tail? Of moving the element at the tail of the queue to the...
-
Explain what the following code prints. Draw a picture of the linked list and the iterator position after each step. LinkedList staff = new LinkedList>(); ListIterator iterator = staff....
-
In the implementation of the LinkedList class of the standard Java library, the problem described in Exercise R16.10 and Exercise R16.12 results in a ConcurrentModification Exception. Describe how...
-
Given the size method of Exercise E16.6 and the get method of Exercise P16.3, what is the big-Oh efficiency of this loop? Data from exercise E16.6 Add an instance variable currentSize to our...
-
Stora Enso Oyj described its business in its annual report as the "global rethinker of the bio- materials, paper, packaging and wood products industry." Instructions Access the financial statements...
-
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...
-
Implement the following C++ code fragment in assembly language. Use the block structured . IF and . WHILE directives. Assume that all variables are 32-bit integers. int array[] int lower 4; = 9; int...
-
(3pts) Each station on an Ethernet network has its own unique physical address, called a MAC address. The address is of the form xx-xx-xx-xx-xx-xx or XX-XXXXXXXXXXXXX, where each x is a hexadecimal...
-
Let x(n) = {0, 1, 2, 3}. 1. Compute its discrete-time Fourier transform X(e). 2 2. Sample X(e) at ka = k, k = 0,1,2,3. 4 Show that it is equal to X (k).
Study smarter with the SolutionInn App