Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Java program that allows user to pick a cell phones and cell phone packages and show the cost. In this program the design

Create a Java program that allows user to pick a cell phones and cell phone packages 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 cell phone package costs.

The Cell phone provider has the following monthly talk packages:

1000 minutes, $29.99

5000 minutes, $49.99

unlimited, $69.99

The provider also sells cells phones:

Model 100, $39.95

Model 200, $49.95

Model 300, $59.95

The following monthly data options are available:

500MB, $50.00

2.5GB, $60.00

Unlimited, $70.00

The following phone shipping cost and information will apply:

zip codes within 029XX - free shipping

Continental United States - 5.00 shipping cost.

zip codes for Alaska (995xx - 999xx) or Hawaii (967xx - 968xx) - 10.00 shipping fee.

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 Exception that will require the user to enter zip or phone in correct format before continuing.

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

The cell phone company is concerned with the volatile cell phone market so they want the application to be flexible.

The application will read all the talk packages, cell phones and data options from a file. This includes talk package max minutes and cost, cell phone model and cost, and data options and cost. Please have the file named appropriately and have the program read it in automatically at startup.

The file format is left up to the developer however; it must be easily readable and maintainable by a non programmer.

The number of talk packages (3), cell phone models (3) and options (3) are constant. (Optional, make these numbers dynamic, based on items in the file)

Write all completed transaction data to a Random Access File named appropriately. Again file format is up the developer but should be readable. The data should include customerid number, total startup cost and total reoccurring monthly cost, therefore each record must be of sufficient length to handle this data.

A menu option to search the Transaction file for a transaction based on customerid number. Assume only one transaction per customer ID.

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

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_3

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

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions

Question

2. How do these vengeful heroes exorcise their daemons?

Answered: 1 week ago