Internet Service Provider
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 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 hours that were used. It should then display the total charges.
I started off with only package A to see if it would work, but it doesn't and I am getting a lot of error messages that I don't understand. What am I doing wrong with this first part?
public class InternetPackages
public static void main(String args)
Scanner input = new Scanner(System.in);
int totalHours, regularHours, additionalHours=0;
double monthlyFee, additionalHoursFee=0, totalFee;
System.out.println("Enter the letter of package purchased (either A, B, or C.");
System.out.println("Enter the number of hours used");
totalHours = input.nextInt();
monthlyFee = 9.95;
regularHours = 10;
additionalHoursFee = additionalHours * 2.00;
totalFee = monthlyFee + additionalHoursFee;
System.out.print ("The total charges is $" + totalFee + ".");