Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Javaprogramthat simulates a board band service company and allows user to pick a TV, Internet and Phone and show the cost. In this

Create a Java program that simulates a board band service company and allows user to pick a TV, Internet and Phone and show the cost.  In this program the design is left up to the programmer however good object-oriented design is required.     

Project Requirements

Develop a text-based menu driven program that calculates board band service company package costs.  Here is a link to an example of a text-based menu (Link)

The board band service provider has the following TV monthly options:

Basic, $24.99

Premium, $45.99

Platinum, $79.99

The board band service provider has the following internet service options:

(mbps – megabits per second download speed)

Essential, 30mbps, $39.95

Preferred, 100mbps. $59.95

Ultimate, 300mbps, $79.95

The board band service provider has the following phone services options:

Basic Phone, $19.99

Supreme Phone, $39.99

Customer Information must include: Customer's name, address (street, city, state, zip), phone number, customerID number.

Regular Expressions

Zip code input should be ONLY 5 DIGITS. 

Phone numbers must be in the form (xxx) xxx-xxxx.

Must Use the Regular Expressions to test the zip code and phone number.  

Use User Defined Exceptions that will require the user to enter zip or phone in correct format before continuing.

Handle any checked exception robustly. Which means the program shouldn’t exit or crash if a check exception is encountered.

The board band service company changes their package prices often they want the application to be flexible. 

The application will read all the TV, Internet and Phone options from a text file.  This includes TV’s type and cost, Internet, type, download speed and cost, and Phone type and cost.

Call the options file serviceOptions.dat and have the program read it in automatically at startup.

The file format is a common delimited file with the following structure, See a provided sample file called serviceOptions.dat for details. The sample file has a header should be accounted for when processing and is structured as follows:

line one lists the TV options type and cost

line two lists the Internet options type, download speed and cost

line three list the Phone options type and cost.

The sample file format must be followed as the graders will use a file in this format to test your program.

Write all completed transaction data to a text file also named appropriately. The file format is up the developer but should be readable. The data should include customer id number, total cost per month and a breakdown of each of the services cost (ie cost of TV, Internet and Phone). 

A menu option to search the Transaction file for a transaction based on customer id number and print out the transaction information.  Assume only one transaction per customer ID.

Minimum Program Design Requirements

Use object-oriented design – create the following classes at a minimum.

Customer Class – including customer data include Package object

ServiceCompany Class – array of customer objects.

Package Class – contains instance variables that store package information and cost.

Board band Service Company Tester Class – contains main method.

Two user defined exception classes to handle zip code and phone number exceptions.

The remaining design details are left up to the developer, including how to structure the application, how many classes to develop and the interrelationship of those classes.  Use the techniques you've learned in this course, including good object-oriented design.

Step by Step Solution

3.41 Rating (145 Votes )

There are 3 Steps involved in it

Step: 1

Heres a Java program that meets the requirements you specified This program includes the required classes Customer ServiceCompany Package and userdefined exceptions for zip code and phone number valid... 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

Accounting Information Systems

Authors: Marshall B. Romney, Paul J. Steinbart

13th edition

133428532, 978-0133428537

More Books

Students also viewed these Operating System questions

Question

1. How vertically integrated should the operations network be?

Answered: 1 week ago