Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Internet Service provider Part 1 An Internet service provider has three different subscription packages for its customers: Package A: For $9.95 per month 10

Java

Internet Service provider Part 1

An Internet service provider has three different subscription packages for its customers:

Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour. Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package C: For $19.95 per month unlimited access is provided.

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 hours that were used. It should then display the total charges.

Test Case Part 1

Test Case1:

Enter the letter of the package purchased: A Enter the number of hours that were used: 20 Your total charges are $29.95

Test Case2:

Enter the letter of the package purchased: b Enter the number of hours that were used: 10 Your total charges are $13.95

Test Case3:

Enter the letter of the package purchased: C Enter the number of hours that were used: 20 Your total charges are $19.95

Test Case4:

Enter the letter of the package purchased: D Enter the number of hours that were used: 20 That package input was not an option.

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.

Test Case 1:

Enter the letter of the package purchased: A Enter the number of hours that 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.

Bank Charges Part 3

A bank charges a base fee of $10 per month, plus the following check fees for a commercial checking account: $.10 each for less than 20 checks $.08 each for 2039 checks $.06 each for 4059 checks $.04 each for 60 or more checks Write a program that asks for the number of checks written for the month. The program should then calculate and display the banks service fees for the month.

Test Case1:

Please enter the number of checks written this month: 20 This month's service fees are $ 11.6

Test Case2:

Please enter the number of checks written this month: 10 This month's service fees are $ 11.0

Test Case3:

Please enter the number of checks written this month: 50 This month's service fees are $ 13.0

Test Case4:

Please enter the number of checks written this month: 70 This month's service fees are $ 12.8

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

Students also viewed these Databases questions

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago

Question

Question May I set up a Keogh plan in addition to an IRA?

Answered: 1 week ago