0% found this document useful (0 votes)
29 views4 pages

C Project

The document describes a C program that allows users to book movie tickets by selecting from a menu of three movies: Tiger 3, Animal, and Raazi. The program displays the menu, takes user input, and confirms the booking. The summary provides an overview of the program's functionality and benefits like easy selection, quick booking, and error handling.
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)
29 views4 pages

C Project

The document describes a C program that allows users to book movie tickets by selecting from a menu of three movies: Tiger 3, Animal, and Raazi. The program displays the menu, takes user input, and confirms the booking. The summary provides an overview of the program's functionality and benefits like easy selection, quick booking, and error handling.
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/ 4

Programming in C

Project: Booking of Movies

Name: Anisha Devrukhkar, Divya Lande, Preet Dalvi


Sem.: 1
Div.: I
Guided by: Prof.Prini Rastogi
Overview:
The program is a simple Movie Booking System implemented in C. It
presents the user with a menu of three movies (Tiger 3, Animal, Raazi)
and prompts them to enter a choice (1-3) corresponding to the movie
they want to book. After taking the user's input, it confirms the
booking. The program starts by welcoming the user to the Movie
Booking System and displays a menu with three movie options (Tiger
3, Animal, Raazi). The user is prompted to enter a choice (an integer
between 1-3) It uses scanf to capture the user's input for their choice
of movie. It employs conditional statements (if-else if-else) to check
the user's input against the available choices. If the user enters 1, it
confirms the booking of Tiger 3. For choice 2, it confirms Animal. For
choice 3, it confirms Raazi. If the user enters a value other than 1, 2,
or 3, it displays a message indicating an invalid choice.
Benefits:
Easy Movie Selection: The program presents a clear menu of available
movies (Tiger 3, Animal, Raazi) for users to choose from. This simplifies
the process of selecting a movie to watch without any complex
interfaces.
Quick Booking Process: Users can swiftly book their preferred movie
by inputting a number corresponding to the movie they want to watch.
This saves time compared to traditional booking methods, especially
for those familiar with numeric input systems.
Immediate Confirmation: Upon making a selection, the program
provides immediate feedback, confirming the booked movie. Error
Handling: In case of an invalid input (anything other than 1, 2, or 3),
the program notifies the user about the mistake, prompting them to
enter a valid choice.
Program for Booking movie tickets:
#include <stdio.h>
int main () {
int choice;
printf("Welcome to Movie Booking System\n");
printf("1. Tiger 3\n");
printf("2. Animal\n");
printf("3. Raazi\n");
printf("Enter your choice (1-3): ");
scanf("%d", &choice);

if (choice == 1) {
printf("You have booked Tiger 3. Enjoy!\n");
}
else if (choice == 2) {
printf("You have booked Animal. Enjoy!\n");
}
else if (choice == 3) {
printf("You have booked Raazi. Enjoy!\n");
}
else {
printf("Invalid choice. Please choose between 1 to 3.\n");
}

return 0;
}
Conclusion:
The program effectively allows users to select a movie from a predefined list and
confirms their booking choice. This report provides an analysis of the program's
functionality and code structure.

You might also like