You are on page 1of 3

$ .

/TicketMicro
Enter performance file: 33.txt
Performance #33
1 - show all seating
2 - show row seating
3 - can seat be sold
4 - sell a seat
5 - return a seat
0 - exit program
Enter number of choice: 1
Seating for performance #33
Performance #33
row-1(1:20:.)(2:30:.)(3:20:.)
row-2(1:10:Sold)(2:20:Sold)(3:30:Sold)(4:20:Sold)(5:10:Sold)
row-3(1:5:.)(2:10:.)(3:20:.)(4:30:.)(5:20:.)(6:10:.)(7:5:.)
Press <Enter> to continue ...
Performance #33
1 - show all seating
2 - show row seating
3 - can seat be sold
4 - sell a seat
5 - return a seat
0 - exit program
Enter number of choice: 2
Enter row number: 3
Seating for #33, row #3
row-3(1:5:.)(2:10:.)(3:20:.)(4:30:.)(5:20:.)(6:10:.)(7:5:.)
Press <Enter> to continue ...
Performance #33
1 - show all seating
2 - show row seating
3 - can seat be sold
4 - sell a seat
5 - return a seat
0 - exit program
Enter number of choice: 3
Check a Seat:
Enter row number: 2
Enter seat number: 9
Seat 9 on Row 2 does not exist!
Seat cannot be sold!
Press <Enter> to continue ...
Performance #33
1 - show all seating
2 - show row seating
3 - can seat be sold
4 - sell a seat
5 - return a seat
0 - exit program
Enter number of choice: 4
Sell a Seat:
Enter row number: 1
Enter seat number: 2
Sold seat 2 on row 1
Press <Enter> to continue ...
Performance #33
1 - show all seating
2 - show row seating
3 - can seat be sold
4 - sell a seat
5 - return a seat
0 - exit program
Enter number of choice: 1
Seating for performance #33
Performance #33
row-1(1:20:.)(2:30:Sold)(3:20:.)
row-2(1:10:Sold)(2:20:Sold)(3:30:Sold)(4:20:Sold)(5:10:Sold)
row-3(1:5:.)(2:10:.)(3:20:.)(4:30:.)(5:20:.)(6:10:.)(7:5:.)
Press <Enter> to continue ...
Performance #33
1 - show all seating
2 - show row seating
3 - can seat be sold
4 - sell a seat
5 - return a seat
0 - exit program
Enter number of choice: 5
Return a Seat:
Enter row number: 1
Enter seat number: 2
Returned seat 2 on row 1
Press <Enter> to continue ...
Performance #33
1 - show all seating
2 - show row seating
3 - can seat be sold
4 - sell a seat
5 - return a seat
0 - exit program
Enter number of choice: 1
Seating for performance #33
Performance #33
row-1(1:20:.)(2:30:.)(3:20:.)
row-2(1:10:Sold)(2:20:Sold)(3:30:Sold)(4:20:Sold)(5:10:Sold)
row-3(1:5:.)(2:10:.)(3:20:.)(4:30:.)(5:20:.)(6:10:.)(7:5:.)
Press <Enter> to continue ...
Performance #33
1 - show all seating
2 - show row seating
3 - can seat be sold
4 - sell a seat
5 - return a seat
0 - exit program
Enter number of choice: 0
$

You might also like