Internet.java - )[email protected]@version 1.00 2017\/10\/4 import java.util.Scanner public class Internet cfw public static void main(String]args cfw

Internet.java - )[email protected]@version 1.00...

This preview shows page 1 - 2 out of 2 pages.

/*** @(#)Internet.java*** @author * @version 1.00 2017/10/4*/import java.util.Scanner;public class Internet {public static void main(String[]args) {double input;String InternetType;double cost;double initial;Scanner keyboard = new Scanner(System.in);System.out.println("We offer 3 three different subscriptions packages: ");System.out.println("Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour");System.out.println("Package B: For $13.95 per month 20 hours of access areprovided. Additional hours are $1.00 per hour.");System.out.println("Package C: For $19.95 per month unlimited access is provided.");System.out.println("To calculate the montly cost please enter your subscription package: ");InternetType=keyboard.nextLine();if(InternetType.equalsIgnoreCase("A"));else if(InternetType.equalsIgnoreCase("B"));else if(InternetType.equalsIgnoreCase("C"));System.out.println("You selected package " + InternetType);

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture