SCREEN 11 --- 3858888 888sasassssss 8888888 888ss8888s888 8888888 888S888888s8s 20 Example Input File Rows: RO01 2 RO02 4 RO03 4 RO04 3 Example Output File Rows: RO01 I1, 12 RO02 F16, F17, F18, F19 4א ,3 ,2 R003 ,A1 RO04 J4, J5,J6

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

c++ or java or in pseudo code with explaining

 

note: if anything is unclear or seems left out make  an assumption and document your assumption

Implement an algorithm for assigning seats within a movie theater to
fulfill reservation requests. Assume the movie theater has the seating
arrangement of 10 rows x 20 seats, as illustrated to the below.
The purpose is to design and write a seat assignment
program to maximize both customer satisfaction and customer
safety. For the purpose of public safety, assume that a buffer of three seats inbetween

Input Description
You will be given a file that contains one line of input for each
reservation request. The order of the lines in the file reflects the order in
which the reservation requests were received. Each line in the file will be
comprised of a reservation identifier, followed by a space, and then the
number of seats requested. The reservation identifier will have the
format: R####. See the Example Input File Rows section for an
example of the input rows.

Output Description
The program should output a file containing the seating assignments for
each request. Each row in the file should include the reservation number
followed by a space, and then a comma-delimited list of the assigned
seats. See the Example Output File Rows section for an example of
the output file content.

Requirements
The solution and tests should build and execute entirely via the
command line.
The command for executing the program should accept the
complete path to the input file as an argument and should
return the full path to the output file.
seats and/or one row is required.

SCREEN
Sssssss sssssssssssss
8888888888s888888888
5553555 5555555555555
Ssssssssssssssssssss
1
20
Example Input File Rows:
RO01 2
RO02 4
RO03 4
RO04 3
Example Output File Rows:
RO01 I1,12
RO02 F16, F17, F18, F19
RO03 A1, A2,A3,A4
RO04 J4, J5,J6
Transcribed Image Text:SCREEN Sssssss sssssssssssss 8888888888s888888888 5553555 5555555555555 Ssssssssssssssssssss 1 20 Example Input File Rows: RO01 2 RO02 4 RO03 4 RO04 3 Example Output File Rows: RO01 I1,12 RO02 F16, F17, F18, F19 RO03 A1, A2,A3,A4 RO04 J4, J5,J6
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education