Descrtipion: 14. Internet Service provider, part 2 Modify the program you wrote for Programming Challenge 13(Previous...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Descrtipion: 14. Internet Service provider, part 2 Modify the program you wrote for Programming Challenge 13(Previous Program) so it also calculates and displays the amount of money Package A customers would save if they purchased Package B or C, and the amount of money Package B customers would save if they purchased Pack- age C. If there would be no savings, no message should be printed. You can use decimal formatter class to format the output. DecimalFormat Decformatter = new DecimalFormat("#0.00"); Decformatter.format(outputvariable)); Test Case 1: Enter the letter of the package purchased: A Enter the number of hou were used: 17 Your total charges are $23.95 You would have saved $10.00 if you had gotten package B You would have saved $4.00 if you had gotten package c Test Case2: Enter the letter of the package purchased: B Enter the number of hours that were used: 30 Your total charges are $23.95 You would have saved $4.00 if you had gotten package C Test Case3: Enter the letter of the package purchased: C Enter the number of hours that were used: 40 Your total charges are $19.95 Test Case4: Enter the letter of the package purchased: D Enter the number of hours that were used: 30 That package input was not an option. Descrtipion: 14. Internet Service provider, part 2 Modify the program you wrote for Programming Challenge 13(Previous Program) so it also calculates and displays the amount of money Package A customers would save if they purchased Package B or C, and the amount of money Package B customers would save if they purchased Pack- age C. If there would be no savings, no message should be printed. You can use decimal formatter class to format the output. DecimalFormat Decformatter = new DecimalFormat("#0.00"); Decformatter.format(outputvariable)); Test Case 1: Enter the letter of the package purchased: A Enter the number of hou were used: 17 Your total charges are $23.95 You would have saved $10.00 if you had gotten package B You would have saved $4.00 if you had gotten package c Test Case2: Enter the letter of the package purchased: B Enter the number of hours that were used: 30 Your total charges are $23.95 You would have saved $4.00 if you had gotten package C Test Case3: Enter the letter of the package purchased: C Enter the number of hours that were used: 40 Your total charges are $19.95 Test Case4: Enter the letter of the package purchased: D Enter the number of hours that were used: 30 That package input was not an option.
Expert Answer:
Answer rating: 100% (QA)
Certainly Heres the modified program that calculates and displays the potential savings for Package A customers if they purchased Package B or C and the potential savings for Package B customers if th... View the full answer
Related Book For
Horngrens Financial and Managerial Accounting
ISBN: 978-0133866292
5th edition
Authors: Tracie L. Nobles, Brenda L. Mattison, Ella Mae Matsumura
Posted Date:
Students also viewed these psychology questions
-
Complete the table below by indicating whether the transactions or economic events would increase, decrease, or have no effect on the financial ratios in the period they occur. Assume the entity uses...
-
Complete the table below by indicating whether the transactions or economic events would increase, decrease, or have no effect on the financial ratios in the period they occur. Assume the entity uses...
-
Complete the table below by indicating whether the transactions or economic events would increase, decrease, or have no effect on the financial ratios listed in the period they occur in. Assume the...
-
Logical fallacies are frequently used in arguments and have an intuitive appeal that makes them effective for politicians to use. Using your understanding of fallacies, you will listen to and take...
-
In the code below, three processes are competing for six resources labeled A to F. a. Using a resource allocation graph, show the possibility of a deadlock in this implementation. b. Modify the order...
-
Repeat the preceding exercise using the Verizon data speed of 0.8 Mbps at Philadelphia International Airport (PHL). Preceding Exercise a. What is the difference between Verizon's data speed at...
-
Mr. Smith wants to buy a car and is deciding between brands A and B. Car A costs \(\$ 20,000\), and Mr. Smith estimates that at the rate he drives he will sell it after 2 years and buy another of the...
-
Each of the processes listed is noncentered with respect to the specifications for that process. Compute the appropriate capability index for each, and decide if the process iscapable....
-
Davita Company has estimated its yearly overhead cost at $ 1 , 2 0 0 , 0 0 0 and its yearly factory labor cost at $ 4 0 0 , 0 0 0 . It has been determined that the best cost driver for overhead...
-
A commercial refrigerator with refrigerant-134a as the working fluid is used to keep the refrigerated space at -35C by rejecting waste heat to cooling water that enters the condenser at 18C at a rate...
-
How do advances in imaging technologies, computational modeling, and data analysis methodologies revolutionize our ability to visualize, quantify, and manipulate biological processes at the...
-
A manufacturing company reports the following information. Raw materials inventory, ending Raw materials used Current Year $ 171,200 1,998,700 1 Year Ago 2 Years Ago $ 192,200 2,544,100 $ 199,200...
-
You find a 2 , 5 5 0 SF house that completely fits your needs - it is priced at $ 1 , 2 5 0 , 0 0 0 . You are a professional cost estimator who knows the local market for both land and homes. You...
-
Cost of completed job: Direct materials $15,500 Direct labor 21,000 Manufacturing overhead 16,800 Total cost $53,300 Unit cost ($53,300 2,000) $26.65 (a) On the basis of this data, answer the...
-
Write a program to play the rock-paper-scissors game. Two users take turns entering R, P, or S. The program then announces the winner, based on the rule that paper covers rock, rock breaks scissors,...
-
The Internet has become an extremely valuable business tool, but its also a huge distraction for workers on the job. Employees are wasting valuable company time by surfing inappropriate websites...
-
What of the following is the correct usage of a typedef type for the following example? typedef int MyIntegerPointer; O MyIntegerPointer = 5; Ointx=5; MyIntegerPointer p = &x; O int x = 5; typedef...
-
A simple random sample of 220 university students were asked what pasta they usually order and with which sauce. The preferences of these respondents are summarised below: Sauce Bolognese Pasta...
-
Crystal Clear Cleaning uses the allowance method to estimate bad debts. Consider the following January transactions for Crystal Clear: Jan. 1 Performed cleaning service for Debbie's D-list for $9,000...
-
Use the following information to calculate the cost of goods sold for The Eaton Company for the month of June: Finished Goods Inventory: Beginning Balance.......$ 32,000 Ending Balance............
-
Briannas Wedding Shops earned net income of $25,000, which included depreciation of $16,000. Briannas acquired a $116,000 building by borrowing $116,000 on a long-term note payable. Requirements 1....
-
The treatment of outflows on account of dividend and interest is highly debatable as to their activity classification. Give a serious thought to the issue and express your opinion about the best...
-
Consider the same setting as Problem 18, but suppose instead 80% of the shareholders redeem their shares, and no warrants are exercised. Data from problem 18 a. What is the amount of cash per share...
-
Reliance Industries Ltd. is the biggest private sector company in India. The following fact sheet about the company and its peer group, as extracted from Capitaline Plus database is reproduced in the...
Study smarter with the SolutionInn App