Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Java Expert


Home >> Java

Problem Solving Diagnostics:

There is an auditorium named JAZ where the reality shows are conducted.The management wants to automate the entire system.

The requirements are given below:

People can get regisered to the system and can avail permanent membership. Seat for each show will be allotted to permanent members only and  seat allocation will be done only on request.

There are different type of seats available in the auditorium like gallery seat, balcony seat and executive seat. The rate of booking is dependent on the seat type.

1) Add people to the auditorium to get a membership id.

2) Establish the relationship between different Seats and add seats to the auditorium.

3) Void allocateSeat(String memberId, String seatType)

a) When a seat is allotted to one person,change the status of the seat to "booked". Seat once allocated,cannot be allocated again

b) If the preferred seat type is not avaliable, give a message to the customer to choose another seat type with the help of exception handling

4) Boolean isAvailable(String seatType) is a method available in the system which checks the availability of given seat type.

5) If a person who is not registered to the system is trying to book a seat with a wrong member id, handle this case with Custom exception handling.

Note:

1) Each seat knows its ID ,Status and the rate.

2) Each member knows their name,member id(will be given only after registration) and age. Only one seat can be booked at a time.

Java, Programming

  • Category:- Java
  • Reference No.:- M92102

Have any Question? 


Related Questions in Java

Casegreentek is a software solution company for smartphone

Case Greentek is a software solution company for smartphone and tablet devices. Current headquarter (HQ) locates in Sydney, 30 sale team members and 50 software engineers base in Singapore and Manila respective. The cycl ...

Consider the following tilde table that could be

Consider the following "tilde table" that could be represented by the file cars.txt for persistence MAKE~MODEL~TYPE~PRICE Toyota~Camry~Sedan~18000 Toyota~Tacoma~Truck~19000 Ford~Mustang~Sport~21000 Chevrolet~Corvette~Spo ...

Assignmenta private int data field named volume that

Assignment A private int data field named volume that specifies the volume· Three constants named LOW, MEDIUM and HIGH with values of 1, 2 and 3 to denote the headphone volume. Create a Java class named HeadPhone to repr ...

Assignment multi-threaded programming in java using

Assignment: Multi-threaded Programming in Java Using Locks Objectives: To practice programming cooperating, synchronized multiple threads of execution. Description: In this programming assignment you will simulate the de ...

Java programmers can use class hierarchies for the purposes

Java programmers can use class hierarchies for the purposes of inheritance. For example, given a Tree class, we could define Conifer and Deciduous sub classes that inherit from the parent Tree class as you can see here: ...

Exam program create a class for working with mixed

Exam Program: Create a class for working with mixed fractions. Only 3 private data members are needed: the int whole number part of the fraction, the int numerator of the fraction, and the positive int denominator of the ...

This program is for a school assignment here are the

This program is for a school assignment. Here are the requirements: Write a Java application that effectively uses Java collections to store pairs of unique colors and their unique hexadecimal values. For example, "Red" ...

Assignmentin this assignment you are required to specify

Assignment In this assignment, you are required to specify and implement a Java The language is Java. In this assignment, you are required to specify and implement a Java class named IntSortedList. The instances of IntSo ...

Assignmentmust be done on bluejin this exercise you will

Assignment MUST BE DONE ON BLUEJ In this exercise you will create a simple VotingMachine. In the United States, when a candidate runs for office, the person is often identified as a Democrat, Republican, or Independent. ...

Javapizzacontactlistat the beginning of all your programs

JavaPizza ContactList At the beginning of all your programs, put a comment box that includes the program name, your name, and a brief description of the program. Example: /************************************************ ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen