0% found this document useful (0 votes)
62 views6 pages

Movie Ticket Booking System PowerPoint Presentation

The document outlines a C++ console application for a Movie Ticket Booking System that allows users to view movies, book tickets, and track reservations. Key features include seat management, ticket confirmations, and persistent storage of ticket data. Future enhancements suggested include user authentication, payment integration, and a web or GUI-based interface.

Uploaded by

rakshanagar91
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views6 pages

Movie Ticket Booking System PowerPoint Presentation

The document outlines a C++ console application for a Movie Ticket Booking System that allows users to view movies, book tickets, and track reservations. Key features include seat management, ticket confirmations, and persistent storage of ticket data. Future enhancements suggested include user authentication, payment integration, and a web or GUI-based interface.

Uploaded by

rakshanagar91
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Movie Ticket Booking System

Slide 1
Title: Movie Ticket Booking System

C++ Console Application

Created by: [Your Name]

Slide 2
Project Overview

A console-based movie ticket booking system implemented in C++


Allows users to view available movies, book tickets, and track reservations
Simple but functional interface with file-based ticket storage

Slide 3
Key Features

Display available movies with showtimes

Book tickets with seat management


Generate ticket confirmations
View booking history

Persistent storage of ticket data

Slide 4
System Architecture

The system is built using two main classes:


Movie - Stores movie details and seat availability

BookingSystem - Manages the entire booking workflow


cpp Copy

class Movie {
public:
string title;
string showtimes[3];
int availableSeats[3];

// Methods for managing movie data


// ...
};

class BookingSystem {
private:
Movie movies[3];
public:
// Methods for booking operations
// ...
};

Slide 5
Movie Class

Stores and displays movie information:

cpp Copy

void displayMovie(int index) {


cout << index + 1 << ". " << title << "\n";
for (int i = 0; i < 3; i++) {
cout << " [" << i + 1 << "] " << showtimes[i]
<< " | Available Seats: " << availableSeats[i] << "\n";
}
}

Each movie has a title and 3 showtimes


Tracks available seats for each showtime

Provides formatted display of information

Slide 6
Booking System Initialization
The system initializes with predefined movies:

cpp Copy

BookingSystem() {
string showtimes1[] = {"10:00 AM", "2:00 PM", "6:00 PM"};
string showtimes2[] = {"11:00 AM", "3:00 PM", "7:00 PM"};
string showtimes3[] = {"12:00 PM", "4:00 PM", "8:00 PM"};

movies[0] = Movie("Avengers: Endgame", showtimes1, 50);


movies[1] = Movie("Inception", showtimes2, 40);
movies[2] = Movie("Pushpa", showtimes3, 30);
}

Slide 7
Ticket Booking Process

The booking workflow:

cpp Copy

void bookTicket() {
// Display available movies
showMovies();

// Get user selections


cout << "\nEnter the number of the movie you want to book: ";
cin >> movieChoice;
// ...

// Update seat availability


movies[movieChoice - 1].availableSeats[timeChoice - 1] -= seats;

// Generate and save ticket


generateTicket(movies[movieChoice - 1].title,
movies[movieChoice - 1].showtimes[timeChoice - 1],
seats);
}

Slide 8
Ticket Generation
Tickets are stored in a text file:

cpp Copy

void generateTicket(string movie, string showtime, int seats) {


ofstream ticketFile("ticket.txt", ios::app);

if (ticketFile.is_open()) {
ticketFile << "----------------------------\n";
ticketFile << " Movie Ticket\n";
ticketFile << "----------------------------\n";
ticketFile << "Movie: " << movie << "\n";
ticketFile << "Showtime: " << showtime << "\n";
ticketFile << "Seats: " << seats << "\n";
ticketFile << "----------------------------\n\n";

cout << "Ticket booked successfully! Check 'ticket.txt'.\n";


ticketFile.close();
}
}

Slide 9
Viewing Ticket History

Users can view their booking history:

cpp Copy

void displayTickets() {
ifstream ticketFile("ticket.txt");

if (ticketFile.is_open()) {
string line;
cout << "\nYour Booked Tickets:\n";
while (getline(ticketFile, line)) {
cout << line << "\n";
}
ticketFile.close();
} else {
cout << "No tickets found!\n";
}
}
Slide 10
Main Menu

The application offers a simple menu-driven interface:

cpp Copy

int main() {
BookingSystem system;
int choice;

while (true) {
cout << "\nMovie Ticket Booking System\n";
cout << "1. Show Movies\n";
cout << "2. Book Ticket\n";
cout << "3. View Booked Tickets\n";
cout << "4. Exit\n";
cout << "Enter your choice: ";
cin >> choice;

// Process user choice with switch statement


// ...
}
}

Slide 11
Current Seat Status (from seats.txt)

Movie 1 (Avengers: Endgame):

10:00 AM: 50/50 seats available

2:00 PM: 44/50 seats available

6:00 PM: 50/50 seats available

Movie 2 (Inception):

11:00 AM: 40/40 seats available


3:00 PM: 40/40 seats available

7:00 PM: 40/40 seats available

Movie 3 (Pushpa):
12:00 PM: 30/30 seats available

4:00 PM: 30/30 seats available

8:00 PM: 26/30 seats available

Slide 12
Future Enhancements

User authentication and accounts


Seat selection by number/position

Payment integration

Admin interface for movie management

Web or GUI-based interface

Database integration for better scalability

Slide 13
Thank You!

Movie Ticket Booking System


A C++ console application for efficient ticket management

You might also like