Purchase Solution

Java Programming: Conference and Registrations

Not what you're looking for?

Ask Custom Question

You are working with a travel agent to support a conference in Las Vegas. Attendees must register for the conference with a valid email address (see below), name and valid phone number (see below). Every conference registration has an attendee, and a number of sessions in which he/she chooses to participate. Additionally, registrations are either with or without travel (see below).

After creating an appropriate inheritance structure for your data definition classes, write a Java application that uses an array of registrations. The application should first accept all registrations (asking the user if they need to include travel in their reservation or not). Once all registrations are entered, print a list of all attendees. Also, calculate and print the total cost for all travel.

Details:

Valid email address:
* Has an @ and a period.
* Only letters, numbers and underscore in username portion (before the @); must begin with a letter.
* At least two characters (letters or numbers) between the @ and period.
* At least two letters after the period.

Valid phone number:
* xxx-­‐xx-­‐xxxx (where x is a digit)
* xxxxxxxxx (where x is a digit)

Conference cost:
* All registrants: $100 plus $20 for each session (0 - 10)
* Travel
- Flight: $500
- Taxi from airport: $50, or Bus from airport: $20

Attachments
Purchase this Solution

Solution Summary

Attached code does some error checking during user input and in case of invalid input simply asks user for it again. It makes use of regular expressions to validate email and phone number. While printing list of all attendees, it prints even the cost and travel information pertaining to an attendee.

Solution Preview

Please go over the attached 537245-Conference.java thoroughly and make modifications to it as per your requirements. This code does some error checking during user input and in case of invalid input simply asks user for it again. You can think of adding error messages for the ...

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Basic Networking Questions

This quiz consists of some basic networking questions.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.