Question: Problem 5 Cyberia has four different subscription plans for its Internet customers: Plan A: For $9.95 per month 10 hours of Internet access are provided.

 Problem 5 Cyberia has four different subscription plans for its Internet

Problem 5 Cyberia has four different subscription plans for its Internet customers: Plan A: For $9.95 per month 10 hours of Internet access are provided. Additional hours are $2.00 per hour Plan B: For $13.95 per month 20 hours of Internet access are provided. Additional hours are $1.00 per hour Plan C: For $19.95 per month 40 hours of Internet access are provided. Additional hours are $0.50 per hour Plan D: For $29.95 per month unlimited Internet access is provided. Write a program Internet.java that asks the user for the plan he/she has purchased (A, B, C or D) and the number of hours that were used, and then displays the total charges. For example: > java Internet What plan are you subscribed to? A How many hours have you consumed? 20 The total charges: $29.95 You should write a method with the header below that accepts the plan type and the number of hours and returns the total charges: public static double charge(String offer, int hours)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!