Skip to document

CSC 126 - Group Assignment

assalamualaikum
Course

Principles of Economic (ECO120)

404 Documents
Students shared 404 documents in this course
Academic year: 2021/2022
Uploaded by:
Anonymous Student
This document has been uploaded by a student, just like you, who decided to remain anonymous.
Universiti Teknologi MARA

Comments

Please sign in or register to post comments.

Preview text

Student ID: 2022453124

Name: AHMAD IKHWAN BIN AWANG @ ABDUL HALIM

Student ID: 2022643928

Name: MOHD SHAFIQ DANIAL BIN AB GHAFAR

Student ID: 2022834148

Name: WAN AHMAD SUFFIAN BIN WAN AB RAZAK

Student ID: 2022831602

Name: WAN IZZUAN SYAZWAN BIN WAN AZUHAR

Date

Submitted:

CSC126: FUNDAMENTALS OF

ALGORITHM

GROUP PROJECT PROPOSAL

TITLE: TICKET BOOKING SYSTEM

GROUP: CS1432C

1. Project Summary

Nowadays purchasing ticket offline can be so annoying with a long que. Sometimes the que

might takes almost an hour and we never be at the cinema on time. So, the developed

program is called Rapid : ticket cinema booking. It is a software application that allows users

to book movie tickets for various movies and showtimes at different cinemas. The program

provides a user-friendly interface where users can select the movie, cinema, showtime, and

number of tickets they want to purchase online.

The program should be develop because it offers convenience and time-saving benefits by

allowing users to easily browse movies, select showtimes, and book tickets online. It

ensures accuracy in bookings, enhances customer satisfaction, generates revenue through

increased ticket sales, and provides valuable data for analysis and decision-making. Overall,

the system improves the efficiency and customer experience of ticket booking while

benefiting cinemas in multiple ways.

The Rapid : cinema ticket booking system offers a convenient and user-friendly platform.

Users can launch the application, view available cinemas and movies, select their

preferences, including showtime and ticket quantity. The system calculates the total price

and presents a confirmation screen displaying all booking details. Users can confirm or

cancel the booking. Upon confirmation, the system generates a confirmation message and

completes the booking. Error handling is incorporated for invalid inputs, and users can

continue booking or exit the system. The main goal is to provide a straightforward and

efficient ticket booking process, eliminating the need for physical purchases and ensuring a

seamless and reliable experience.

2. Objectives

 To record the user's choice of cinema, movie, showtime, and number of tickets

selected.

 To calculate the total price based on the number of tickets selected and the ticket

price.

 To count variables to store the user's choices, such as the cinema option, movie

code, and number of tickets.

 To find the highest

OUTPUT "All Cinemas"

OUTPUT "**********************************************************"

OUTPUT "1. LFS - Capitol Selayang, Selayang"

OUTPUT "2. LFS - Sri Intan Klang, Klang"

OUTPUT "3. LFS - State Cineplex PJ, Petaling Jaya"

OUTPUT "4. LFS - Coliseum Cineplex, City Center"

OUTPUT "5. LFS - Sun Rawang, Rawang"

OUTPUT "6. LFS - PB Sentral, Terengganu"

OUTPUT "7. LFS - Plaza Tasek Skudai JB, Skudai"

OUTPUT "**********************************************************"

OUTPUT "Choose Your Cinema (1, 2, 3, ...): "

INPUT userOption

OUTPUT "Enter Your Number of Tickets: "

INPUT ticketNumber

OUTPUT "DAY AIRSHOW"

OUTPUT "**********************************************************"

OUTPUT "* Time * Movie * Price * Code *"

OUTPUT "**********************************************************"

OUTPUT "* 11:30 am * Polis Evo 4 * RM 18 * 111 *"

OUTPUT "* 11:30 am * Spider-Man 4 * RM 23 * 112 *"

OUTPUT "* 11:30 am * The Boogeyman * RM 20 * 113 *"

OUTPUT "**********************************************************"

OUTPUT "* 03:00 pm * Polis Evo 4 * RM 18 * 221 *"

OUTPUT "* 03:00 pm * Spider-Man 4 * RM 23 * 222 *"

OUTPUT "* 03:00 pm * The Boogeyman * RM 20 * 223 *"

OUTPUT "**********************************************************"

OUTPUT "NIGHT AIRSHOW"

OUTPUT "**********************************************************"

OUTPUT "* Time * Movie * Price * Code *"

OUTPUT "**********************************************************"

OUTPUT "* 09:00 pm * Polis Evo 4 * RM 18 * 311 *"

OUTPUT "* 09:00 pm * Spider-Man 4 * RM 23 * 312 *"

OUTPUT "* 09:00 pm * The Boogeyman * RM 20 * 313 *"

OUTPUT "* 11:00 pm * Polis Evo 4 * RM 20 * 421 *"

OUTPUT "* 11:00 pm * Spider-Man 4 * RM 25 * 422 *"

OUTPUT "* 11:00 pm * The Boogeyman * RM 22 * 423 *"

OUTPUT "**********************************************************"

WHILE True DO:

OUTPUT "Please Choose And Enter Your Movie Code: "

INPUT code

IF code == 111 THEN

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "\t\t BOOKING DETAILS CONFIRMATION"

OUTPUT ""

OUTPUT "Movie"

OUTPUT "POLIS EVO 4"

OUTPUT ""

OUTPUT "Cinema"

chooseOption(userOption)

OUTPUT ""

OUTPUT "Showtime"

OUTPUT "11:30 AM"

OUTPUT ""

OUTPUT "Total Price For " + ticketNumber + " Ticket"

OUTPUT "RM" + (ticketNumber * 18)

OUTPUT "-------------------------------------------------------------------------------"

IF confirmation == 1 THEN

OUTPUT "Your purchase has been confirmed."

OUTPUT "Thank you for choosing our service!"

ELSE IF confirmation == 2 THEN

OUTPUT "Transaction canceled."

END IF

BREAK

ELSE IF code == 113 THEN

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "\t\t BOOKING DETAILS CONFIRMATION"

OUTPUT ""

OUTPUT "Movie"

OUTPUT "THE BOOGEYMAN"

OUTPUT ""

OUTPUT "Cinema"

chooseOption(userOption)

OUTPUT ""

OUTPUT "Showtime"

OUTPUT "11:30 AM"

OUTPUT ""

OUTPUT "Total Price For " + ticketNumber + " Ticket"

OUTPUT "RM" + (ticketNumber * 20)

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "Would you like to confirm the purchase? (Press 1 for 'yes' or 2 for 'no'):

"

INPUT confirmation

IF confirmation == 1 THEN

OUTPUT "Your purchase has been confirmed."

OUTPUT "Thank you for choosing our service!"

ELSE IF confirmation == 2 THEN

OUTPUT "Transaction canceled."

END IF

BREAK

ELSE IF code == 221 THEN

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "\t\t BOOKING DETAILS CONFIRMATION"

OUTPUT ""

OUTPUT "Movie"

OUTPUT "POLIS EVO 4"

OUTPUT ""

OUTPUT "Cinema"

chooseOption(userOption)

OUTPUT ""

OUTPUT "Showtime"

OUTPUT "03:00 PM"

OUTPUT ""

OUTPUT "Total Price For " + ticketNumber + " Ticket"

OUTPUT "RM" + (ticketNumber * 18)

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "Would you like to confirm the purchase? (Press 1 for 'yes' or 2 for 'no'):

"

INPUT confirmation

IF confirmation == 1 THEN

OUTPUT "Your purchase has been confirmed."

OUTPUT "Thank you for choosing our service!"

ELSE IF confirmation == 2 THEN

BREAK

ELSE IF code == 223 THEN

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "\t\t BOOKING DETAILS CONFIRMATION"

OUTPUT ""

OUTPUT "Movie"

OUTPUT "THE BOOGEYMAN"

OUTPUT ""

OUTPUT "Cinema"

chooseOption(userOption)

OUTPUT ""

OUTPUT "Showtime"

OUTPUT "03:00 PM"

OUTPUT ""

OUTPUT "Total Price For " + ticketNumber + " Ticket"

OUTPUT "RM" + (ticketNumber * 20)

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "Would you like to confirm the purchase? (Press 1 for 'yes' or 2 for 'no'):

"

INPUT confirmation

IF confirmation == 1 THEN

OUTPUT "Your purchase has been confirmed."

OUTPUT "Thank you for choosing our service!"

ELSE IF confirmation == 2 THEN

OUTPUT "Transaction canceled."

END IF

BREAK

ELSE IF code == 311 THEN

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "\t\t BOOKING DETAILS CONFIRMATION"

OUTPUT ""

OUTPUT "Movie"

OUTPUT "POLIS EVO 4"

OUTPUT ""

OUTPUT "Cinema"

chooseOption(userOption)

OUTPUT ""

OUTPUT "Showtime"

OUTPUT "09:00 PM"

OUTPUT ""

OUTPUT "Total Price For " + ticketNumber + " Ticket"

OUTPUT "RM" + (ticketNumber * 18)

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "Would you like to confirm the purchase? (Press 1 for 'yes' or 2 for 'no'):

"

INPUT confirmation

IF confirmation == 1 THEN

OUTPUT "Your purchase has been confirmed."

OUTPUT "Thank you for choosing our service!"

ELSE IF confirmation == 2 THEN

OUTPUT "Transaction canceled."

END IF

BREAK

ELSE IF code == 312 THEN

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "\t\t BOOKING DETAILS CONFIRMATION"

OUTPUT ""

OUTPUT "Movie"

chooseOption(userOption)

OUTPUT ""

OUTPUT "Showtime"

OUTPUT "09:00 PM"

OUTPUT ""

OUTPUT "Total Price For " + ticketNumber + " Ticket"

OUTPUT "RM" + (ticketNumber * 20)

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "Would you like to confirm the purchase? (Press 1 for 'yes' or 2 for 'no'):

"

INPUT confirmation

IF confirmation == 1 THEN

OUTPUT "Your purchase has been confirmed."

OUTPUT "Thank you for choosing our service!"

ELSE IF confirmation == 2 THEN

OUTPUT "Transaction canceled."

END IF

BREAK

ELSE IF code == 421 THEN

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "\t\t BOOKING DETAILS CONFIRMATION"

OUTPUT ""

OUTPUT "Movie"

OUTPUT "POLIS EVO 4"

OUTPUT ""

OUTPUT "Cinema"

chooseOption(userOption)

OUTPUT ""

OUTPUT "Showtime"

OUTPUT "11:00 PM"

OUTPUT ""

OUTPUT "Total Price For " + ticketNumber + " Ticket"

OUTPUT "RM" + (ticketNumber * 20)

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "Would you like to confirm the purchase? (Press 1 for 'yes' or 2 for 'no'):

"

INPUT confirmation

IF confirmation == 1 THEN

OUTPUT "Your purchase has been confirmed."

OUTPUT "Thank you for choosing our service!"

ELSE IF confirmation == 2 THEN

OUTPUT "Transaction canceled."

END IF

BREAK

ELSE IF code == 422 THEN

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "\t\t BOOKING DETAILS CONFIRMATION"

OUTPUT ""

OUTPUT "Movie"

OUTPUT "SPIDER-MAN 4"

OUTPUT ""

OUTPUT "Cinema"

chooseOption(userOption)

OUTPUT ""

OUTPUT "Show

time"

OUTPUT "11:00 PM"

OUTPUT "-------------------------------------------------------------------------------"

OUTPUT "Would you like to confirm the purchase? (Press 1 for 'yes' or 2 for 'no'):

"

INPUT confirmation

IF confirmation == 1 THEN

OUTPUT "Your purchase has been confirmed."

OUTPUT "Thank you for choosing our service!"

ELSE IF confirmation == 2 THEN

OUTPUT "Transaction canceled."

END IF

BREAK

ELSE

OUTPUT "Invalid code entered. Please try again."

END IF

END WHILE

OUTPUT "Do you want to continue booking? (Y/N): "

INPUT continueBooking

IF continueBooking == 'N' OR continueBooking == 'n' THEN

BREAK

END IF

END WHILE

RETURN 0

END MAIN

4. IPO Table

Input Process Output

1 location

2 of Ticket

3 code

1 variable for cinema

location

2 the number ticket applied

3 movie choice details

4 the ticket code

5 total choosen ticket

need to pay

Result the amount need to pay and the

movie details to watch

Display "Enter Your Number of Tickets: "

Display day airshow and night airshow

Enter Your Number of Tickets

Display “Please Choose And Enter Your Movie Code:”

Choose and enter movie code

Choose Your Cinema

LFS - Plaza

Tasek Skudai

JB, Skudai

LFS - Coliseum

Cineplex, City

Center

Invalid option

selected

LFS - PB

Sentral,

Terengganu

LFS - Sun

Rawang,

Rawang

LFS - State

Cineplex PJ,

Petaling Jaya

LFS - Capitol

Selayang,

Selayang

LFS - Sri Intan

Klang, Klang

111 112 113 221 222 223

311 312 313 421 422 423

Invalid

code

Display BOOKING DETAILS CONFIRMATION

Display “would you like to confirm the

purchase? (Press 1 for 'yes' or 2 for

'no'):”

Enter “1” Enter “2”

Display “your purchase has been confirmed.

Thank you for choosing our service!”

Display “ transaction

cancelled.”

Display “do you want continue booking?”

Enter “N”

Enter “Y”

End

Was this document helpful?

CSC 126 - Group Assignment

Course: Principles of Economic (ECO120)

404 Documents
Students shared 404 documents in this course
Was this document helpful?
Student ID: 2022453124
Name: AHMAD IKHWAN BIN AWANG @ ABDUL HALIM
Student ID: 2022643928
Name: MOHD SHAFIQ DANIAL BIN AB GHAFAR
Student ID: 2022834148
Name: WAN AHMAD SUFFIAN BIN WAN AB RAZAK
Student ID: 2022831602
Name: WAN IZZUAN SYAZWAN BIN WAN AZUHAR
Date
Submitted:
CSC126: FUNDAMENTALS OF
ALGORITHM
GROUP PROJECT PROPOSAL
TITLE: TICKET BOOKING SYSTEM
GROUP: CS1432C