CIS210 Programming Assignment 3: Internet Service provider Java Fall 2014 - 74695

Solution Posted by
jordanblink

jordanblink

Rating : (19)A+
Solution Detail
Price: $25.00
Request Description

Programming Assignment 3: Internet Service provider

CIS 210 – Fall 2014 

Point: 100 

Project Due: 11:59 PM on Thursday, 09/18/2014 

Learning Objectives: 

 To use decision structures such as if, if-else, and switch statements in Java 

 To display result by using System.out.printf() 

 To gain experience designing and writing your own Java program 

 To use of Java APIs to perform interactive I/O in Java programming 

 To declare variables and constants appropriately. 

Problem Statement 

Assume that the Internet Service provider, Comcast, 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 the display the total charges. In addition, it should display 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. 

Please write a program that displays the following information: 

• The amount of money a customer will pay 

• The amount of money a customer will save if he or she purchase Package B or C 

• The amount of money must following a ‘$’ and have 2 decimal points, such as $2.00, 

$34.56, etc. 

Input 

This program requires that you read in the following data values: 

 The type of Package (a character) 

 The number of hours a customer accessed to the Internet. 

Solution Description

Programming Assignment 3: Internet Service provider

CIS 210 – Fall 2014 

Point: 100 

Project Due: 11:59 PM on Thursday, 09/18/2014 

Learning Objectives: 

 To use decision structures such as if, if-else, and switch statements in Java 

 To display result by using System.out.printf() 

 To gain experience designing and writing your own Java program 

 T

Attachments
hw3_lastNameLowerCase_firstNameLowerCase.java
hw3_lastNameLow...