Blog

Coursehelp
March 15, 2019
QUESTION : No Comments

(Solved) : Program Problems One Main Method Use Least One Switch Statement Code Test Program Data Tes Q26729955

Program both problems in one main method. Use at least one switch statement in your code. Test your program with data that tests all branches of your decision statements. Store constant values in final variables. 1. An Internet provider has three different subscriptions packages for its customers: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour Package A: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package B: For $19.95 per month unlimited access is provided. Package C: Write a program that calculates a customers monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of that were used. It should then display the total charges. 2, Modify the program you wrote for problem #1 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 Package C. If there would be no savings, no message should be printed.Program both problems in one main method. Use at least one switch statement in your code. Test your program with data that tests all branches of your decision statements. Store constant values in final variables. 1. An Internet provider has three different subscriptions packages for its customers: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour Package A: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package B: For $19.95 per month unlimited access is provided. Package C: Write a program that calculates a customer’s monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of that were used. It should then display the total charges. 2, Modify the program you wrote for problem #1 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 Package C. If there would be no savings, no message should be printed. Show transcribed image text

Expert Answer


Attached . . .

OR
OR

Have a Comment on this Question?

Questions viewed by other students


  • QUESTION : (Solved) : 126 Create Web Page User Allowed Select Page S Background Color Whether Page Uses Serif Sa Q34564777

    12.6 Create a web page in which the user is allowed to selectthe page’s background color and whether the page uses serif or sansserif fonts. Then change the body element’s style attributeaccordingly.

    Gray background

    White background

    Sans-serif text

    Serif text

    If the user onclicks any of the options, the webpage will turninto that format. For example, if the user clicks “Gray backgound”,the background color of the webpage will be Gray. If the userclicks Serif-text, the text in the web page will be in Seriftext.

    That’s it! You do not have to consider the user to really editthe webpage. Please see the attached webpage image.
    Solution 12.5 Microsoft Internet Exploren File Edit View Favorites Tools Help Back Search Favorites Address Ask C:Documents and SettingstxiaolitMy Documentscourses troyIII 20101cs44431course_docthomeworkihomework4jex12_07.html Go Links OCNIN McAfee Q Search the web Search YouTubecook Games a Amazon Word of the Day Weather E-mail Options Secure Search Some sample text Options: Gray background White background Sans-serif text Serif text Done My Computer start 4 Internet Explorer week! ex,JPG Paint EN M 11:19 AM

    Solution 12.5 Microsoft Internet Exploren File Edit View Favorites Tools Help Back Search Favorites Address Ask C:Documents and SettingstxiaolitMy Documentscourses troyIII 20101cs44431course_docthomeworkihomework4jex12_07.html Go Links OCNIN McAfee Q Search the web Search YouTubecook Games a Amazon Word of the Day Weather E-mail Options Secure Search Some sample text Options: Gray background White background Sans-serif text Serif text Done My Computer start 4 Internet Explorer week! ex,JPG Paint EN M 11:19 AM Show transcribed image text

    Expert Answer


    Attached . . .


    view full answer
  • QUESTION : (Solved) : 13 12pts Particular State License Plates 7 Characters Character Letter Digit 0 1 2 9 Many Q30342285

    13. (12pts) In a particular state, the license plates have 7 characters. Each character can letter or a digit (0,1,2,....9). How many different license plates be an upper case can there be if (a) There is no restriction. (b) The license plates must start with a digit. (c) The license plates must start with a 0 or end with a 0 (d) The license plates must contain at least one 0. (e) No character appears more than once on the same license plate. (f) Exactly 3 of the 7 characters are digits.

    13. (12pts) In a particular state, the license plates have 7 characters. Each character can letter or a digit (0,1,2,….9). How many different license plates be an upper case can there be if (a) There is no restriction. (b) The license plates must start with a digit. (c) The license plates must start with a “0” or end with a “0” (d) The license plates must contain at least one “0. (e) No character appears more than once on the same license plate. (f) Exactly 3 of the 7 characters are digits. Show transcribed image text 13. (12pts) In a particular state, the license plates have 7 characters. Each character can letter or a digit (0,1,2,….9). How many different license plates be an upper case can there be if (a) There is no restriction. (b) The license plates must start with a digit. (c) The license plates must start with a “0” or end with a “0” (d) The license plates must contain at least one “0. (e) No character appears more than once on the same license plate. (f) Exactly 3 of the 7 characters are digits.

    Expert Answer


    Attached . . .


    view full answer