Solved

Code a program for me in pascal, it's for a theatre room seat bookings

Posted on 2002-04-16
6
456 Views
Last Modified: 2013-12-13
The program should be able to keep track of seats in a theatre hall named Bonku. Thre are 22 rows with 15 seats in the theatre. Each seat is uniquely defined by the row and the seat number.
The theatre has three types of customers.
1.Random customer: this one orders one or more tickets on the phone. For each random customer we record name, telephone nummber, together with seat that s\he intends to book.

2.Private Subscriber: this one subscribes  one(same) seat in a theatre. For this one we record name, address, telephone number, seat number which he or she subscibes.

3.Corporate Subscriber: this is a company that subscribes more than one(same) seat in the theater hall. For this one we record name of company, address, contact person and telephone number, seats that they have subscribed.

Tips. use records for each subscriber, for the theatre. A two dimentional array for the structure of the hall.
The program must be command based

A.WriteHall- the essence of the command is to be able to write onto the sreen a line for each row seat in the theatre hall.It shall write a character(?) for a seat that is available, (B) booked, (R) reserved by random customer but ticket not yet collected, (S) ticket for the seat is sold.
B.Order ticket-Order ticket.
C.Collect ticket
D.Read from file-executed just before the program starts. It shall read from file and update the data stucture.
E.Unsubscibe- all the seats that are reseverd by this customer be marked as available. If customer is a random the remove him from the data stucture.
F.Overview-to see how many seats are booked, sold, how many tickets are ordered and not collected.
H.Cancel reservation- done 30 minutes before the show,it cancels all info about the random customer.
I.Write to file-It sahll write to file at the end of the program and update the data stucture.
J.Help-Displays the accepted commands soon as the user makes a mistake.
0
Comment
Question by:rodgerbas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 6945743
I'm sorry, but we can't do homework for you here.

If, however, you write something that doesn't work as expected, we can help.
0
 
LVL 3

Expert Comment

by:FlamingSword
ID: 6948133
Is this 10 questions? Or more
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6949250
could you paste a sample of code done so far that is a sticking point?
0
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 
LVL 24

Expert Comment

by:SunBow
ID: 6951685
Have you started?
0
 
LVL 4

Accepted Solution

by:
MobileOakAI earned 70 total points
ID: 6952234
Can I do one in Concurrent Pascal instead?
0
 

Author Comment

by:rodgerbas
ID: 6953216
Yes please
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Progress

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question