Solved

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

Posted on 2002-04-16
6
397 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
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
 shows up in Outlook, not OWA or on phone 3 58
sumDigits  challenge 7 60
changePi Challenge 15 76
python sqlite question 11 43
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

758 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now