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
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
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5b1dff14-0f69-4d32-b1dc-6f1637fd75d0%2Ffdd1620c-a797-48bb-8b3a-0012ef9f398b%2Fxwhyzs_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)