algorithm
algorithm
STEP 1 - Start
STEP 2 - Initialize necessary variables (movies, seats, foodItems, foodPrices) and set up a loop to
continue the program as long as the user wants.
STEP 3 - Display the main menu options (View Movies, Book Tickets, Cancel Tickets, Order Food, Exit)
and get user input for the choice.
· Get user input for the row (A or B) and seat number (1-10).
· Get user input for the row (A or B) and seat number (1-10) to cancel.
· If the seat is booked, mark it as available and display a cancellation success message.
· Get user input for the number of food items to order (numItems).
· Get user input for the seat number (e.g., A1, B5).
· Add the food item's price to the total cost and display a confirmation message.
STEP 8 - If choice is 5, display a thank you message and exit the program.
STEP 9 - If choice is invalid, display an error message and repeat the menu.
STEP 10 - Repeat the process until the user selects the exit option (choice == 5).