Movie Project
VerifiedAdded on  2023/04/11
|8
|598
|172
AI Summary
This project is about developing an application for movie information. It allows browsing film titles and generating reports on the top grossing films of 2016. The films are stored in a database implemented with a Binary Search Tree for efficient search. The project uses film.excel file for data information.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
[Date]
Movie Project
[Document subtitle]
mukesh bhardwaj
[company name]
Movie Project
[Document subtitle]
mukesh bhardwaj
[company name]
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Contents
Executive Summary...............................................................................................................................2
How to run the code..............................................................................................................................4
Output Screen........................................................................................................................................5
Coding...................................................................................................................................................6
Conclusion............................................................................................................................................7
References.............................................................................................................................................7
Executive Summary...............................................................................................................................2
How to run the code..............................................................................................................................4
Output Screen........................................................................................................................................5
Coding...................................................................................................................................................6
Conclusion............................................................................................................................................7
References.............................................................................................................................................7
Executive Summary
In this project we develop an application for see the movie information . This project
having menu file is a main file for r movie title browsing the film titles along with the
following information: This program allows us to search and generate reports on the top
grossing films of 2016. The films are stored in a database implemented with a Binary Search
Tree.
To launch the program, c, run the 'make' command in the root directory, and execute the
program named 'filmz'.
This project using film.excel file for data information
Binary Tree is using therefore Search is faster and efficient
1. Film Rank (by total gross)
2. Film Title
3. Producing Studio
4. Total Gross
5. Total theaters which Showed the Film
6. Opening Weekend Gross
7. Total Theaters which Showed the Film Opening Weekend Opening Data
8. Filmz allows you to generate reports of all movies based on rank and alphabetical
ordering by title.
9. filmz also gives you the ability to search for films by:
In this project we develop an application for see the movie information . This project
having menu file is a main file for r movie title browsing the film titles along with the
following information: This program allows us to search and generate reports on the top
grossing films of 2016. The films are stored in a database implemented with a Binary Search
Tree.
To launch the program, c, run the 'make' command in the root directory, and execute the
program named 'filmz'.
This project using film.excel file for data information
Binary Tree is using therefore Search is faster and efficient
1. Film Rank (by total gross)
2. Film Title
3. Producing Studio
4. Total Gross
5. Total theaters which Showed the Film
6. Opening Weekend Gross
7. Total Theaters which Showed the Film Opening Weekend Opening Data
8. Filmz allows you to generate reports of all movies based on rank and alphabetical
ordering by title.
9. filmz also gives you the ability to search for films by:
10. Producing Studio, Month of Release, or Title Name (full name or keywords)
Menu.cpp
In the main program showing the menu for movie project showing main menu and select the
option according to requirement.
A - About the Application
R - Reports
S - Search the Database
X - Exit the Program
Filmz.cpp
This file contains the main() function to drive the filmz application. filmz is a movie
browsing application. It loads a list of movie statistics into a database, which is built using a
binary search tree. The database is interfaced through a Menu, which holds a reference to the
database and calls the database's public methods based on user input.
We define class Film
The Film class stores the following statistics for a film:
Rank(by Total Gross), Title, Studio, Total Gross, Total Theaters,
Opening Gross, Opening Theaters, Opening Date.
Film objects will be used by the FilmDatabase class to store
Menu.cpp
In the main program showing the menu for movie project showing main menu and select the
option according to requirement.
A - About the Application
R - Reports
S - Search the Database
X - Exit the Program
Filmz.cpp
This file contains the main() function to drive the filmz application. filmz is a movie
browsing application. It loads a list of movie statistics into a database, which is built using a
binary search tree. The database is interfaced through a Menu, which holds a reference to the
database and calls the database's public methods based on user input.
We define class Film
The Film class stores the following statistics for a film:
Rank(by Total Gross), Title, Studio, Total Gross, Total Theaters,
Opening Gross, Opening Theaters, Opening Date.
Film objects will be used by the FilmDatabase class to store
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
films in the nodes of a Binary Search Tree.
class FilmDatabase
This class creates a database to hold films in a binary search tree.
The Film class is used to store the film objects, which are stored in
the nodes of the tree.
Binary search tree to hold films
Helper method to displayReport()
When rank is passed to displayReport(), searchRank() is called.
This method sets the public static variable Film::rankSearchValue to the
value passed as an argument and displays the film record if a match
is found.
How to run the code
run the 'make' command in the root directory,
and execute the program named 'filmz'.
class FilmDatabase
This class creates a database to hold films in a binary search tree.
The Film class is used to store the film objects, which are stored in
the nodes of the tree.
Binary search tree to hold films
Helper method to displayReport()
When rank is passed to displayReport(), searchRank() is called.
This method sets the public static variable Film::rankSearchValue to the
value passed as an argument and displays the film record if a match
is found.
How to run the code
run the 'make' command in the root directory,
and execute the program named 'filmz'.
Output Screen
Coding
class Film
Default Film Constructor
Film();
Film(int rank, string title, string studio, double totalGross, int totalTheaters, double openingGross, int
openingTheaters,
string openingDate);
Film(const string inputLine);
int getRank();
string getTitle();
string getStudio();
string getOpeningDate();
void displayFilmData();
bool operator<(const Film& rightOperand);
bool operator>(const Film& rightOperand);
bool operator==(const Film& rightOperand);
Film database
class Film
Default Film Constructor
Film();
Film(int rank, string title, string studio, double totalGross, int totalTheaters, double openingGross, int
openingTheaters,
string openingDate);
Film(const string inputLine);
int getRank();
string getTitle();
string getStudio();
string getOpeningDate();
void displayFilmData();
bool operator<(const Film& rightOperand);
bool operator>(const Film& rightOperand);
bool operator==(const Film& rightOperand);
Film database
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
class FilmDatabase
void searchRank(int rank);
void searchTitle(string title);
void searchStudio(string studio);
void searchKeywords(string keywords);
void add(const Film& aFilm);
FilmDatabase();
FilmDatabase(const string filename);
void displayReport(const string orderBy) throw(PrecondViolatedExcep);
void displaySearch(const string searchType, const string queryString) throw(PrecondViolatedExcep);
Menu.h
class Menu
void aboutApplication();
void reportMenu();
void searchMenu();
Menu(FilmDatabase& filmDB);
void mainMenu();
Conclusion
In this project we design and develop a movie project that designed and developed using file
handling concept .This project we design in C++ using oops feature. Since we are using
binary tree for store information about movie therefore searching is easy.
References
https://en.cppreference.com/w/cpp/language/reference
https://www.tutorialspoint.com/cplusplus/cpp_references.htm
https://www.learncpp.com/cpp-tutorial/15-2-rvalue-references/
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2027.html
void searchRank(int rank);
void searchTitle(string title);
void searchStudio(string studio);
void searchKeywords(string keywords);
void add(const Film& aFilm);
FilmDatabase();
FilmDatabase(const string filename);
void displayReport(const string orderBy) throw(PrecondViolatedExcep);
void displaySearch(const string searchType, const string queryString) throw(PrecondViolatedExcep);
Menu.h
class Menu
void aboutApplication();
void reportMenu();
void searchMenu();
Menu(FilmDatabase& filmDB);
void mainMenu();
Conclusion
In this project we design and develop a movie project that designed and developed using file
handling concept .This project we design in C++ using oops feature. Since we are using
binary tree for store information about movie therefore searching is easy.
References
https://en.cppreference.com/w/cpp/language/reference
https://www.tutorialspoint.com/cplusplus/cpp_references.htm
https://www.learncpp.com/cpp-tutorial/15-2-rvalue-references/
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2027.html
1 out of 8
Related Documents
Your All-in-One AI-Powered Toolkit for Academic Success.
 +13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
© 2024  |  Zucol Services PVT LTD  |  All rights reserved.