Create a simple movie management system

Assignment Help Basic Computer Science
Reference no: EM13219771

Create a simple movie management system that manages a list of scheduled movies to be played at a fictitious movie theater. Your program must use of the "list" API in the C++ standard template library (STL). Your program must keep track of the fictitious movie theater's movies in a global linked list data structure. The program must implement at least one class, which will hold the following class variables: • An integer variable to hold the movie identification number. This must be a randomly generated string that consists of exactly two characters and six digits. For example, SW389613. Duplicate entries are not allowed. • A string variable to hold the name of the movie. • A string variable to hold a brief description of the movie. • An integer variable to hold the number of screens that the movie will be played on. • A double variable to hold the general admission price for the movie. A string variable to hold the start date that theater will begin showing the move. The entered date must be in the form mm/dd/yyyy. Again, if the user enters an invalid date format, print an error and re-prompt the user to enter the date in correct format. • A string variable to hold the end date that that theater will stop showing the move. The entered date must be in the form mm/dd/yyyy. If the user enters an invalid date format, print an error and re-prompt the user to enter the date in correct format. Provide the appropriate accessor methods to set and get the data for these class variables. For example getMovieName() and setMovieName(string moiveName). The main program must provide the following functionality: 1. When the program is first started, it must read a data file called movies.dat. If the file exists, the program will load the data for each movie record into the global linked list data structure. 2. Provide a simple text-based user interface that displays the name of your fictitious movie theater and allows the user to operate on the global linked list of movies. Each move record must be placed in this global linked list and will hold all of the information associated with each movie that the theater plays. The program interface will allow the user to do the following: (a) Enter a movie - allows the user to enter all fields for an existing movie in the linked lists, except the movie identifier, which will be automatically generated random sixdigit number. After the data fields are entered, the program will place the movie record in the global linked list. (b) Search for a movie - allows the user to search for a movie in the linked list based on a user provided movie identifier. Display a message if the item is not found in the linked list. (c) Modify a movie - allows the user to modify any of the fields for a movie (except for the movie identifier) in the linked list for given movie as indicated by the movie identifier. Display a message if the movie is not found in the linked list. (d) Delete a movie - allows the user to delete a movie record from the linked list using movie indentifier as the key. Display a message if the item is not found in the inventory linked list. (e) Display movies - displays all of the movies in the linked list. (f) Exit program - before the program exits, it must save all of the data for each of the movies that is contained within the global linked list into the movies.dat data file. At this point, if the file does not exist, the program will create it.

Reference no: EM13219771

Questions Cloud

Explain evaporating sweat cools the body because evaporation : Evaporating sweat cools the body because evaporation is endothermic and absorbs 2.44 per gram of water evaporated. Estimate the mass of water that must evaporate from the skin to cool a body by 0.30
How increase in savings affected overall consumption : Following the recession, the rate of savings in the united states doubled. why do you think this is How do you think the increase in savings affected overall consumption? Since, on average, 70% economic activity in the United States
What are the major trade-offs : Concerning programing and software, What are the major trade-offs in a make-or-buy decision and why is making a lot of modifications to a packaged system sometimes a risky approach, and what are the alternatives?
Write a program using a beginner c language : Write a program using a beginner C language which calculates the value of ? from the series ?=(4/1)-(4/3)+(4/5)-(4/7)+(4/9)-(4/11)+... Print a table that shows the value of ?
Create a simple movie management system : Create a simple movie management system that manages a list of scheduled movies to be played at a fictitious movie theater. Your program must use of the "list" API in the C++ standard template library (STL).
How to accommodate the increase in business : The Conch Café, located in Gulf Shores, Alabama, features casual lunches with a great view of the Gulf of Mexico. To accommodate the increase in business during the summer vacation season, Fuzzy Conch, the owner, hires a large number of servers as..
Write a statement that assigns true to recalled : A bool variable named recalled has been declared. Given an int variable modelYear write a statement that assigns true to recalled if the value of modelYear falls within the recall range and assigns false otherwise. Do not use an if statement in th..
Social networking and information management : Many of the social networking sites make the behavior of employees much more visible. Discuss one or two implications social networking sites have for government employees.
Use one supper class and two sub classes : Give a UML example illustrating aggregation. Include classes, fields, methods, instance fields, etc.Use one supper class and two sub classes.inlcude pseudo code for at least one method of each class l. Also explain the whole part relationship and ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Develop leftmost and rightmost derivations

Develop leftmost and rightmost derivations respectively for the Identifier value S6T, using the following BNF syntax:

  Find optimal production amounts using graphical method

The daily demand for solution A lies between 30 and 150 units, and that for solution B between 40 and 200 units. Find the optimal production amounts of A and B using the Graphical Method.

  Explain components of information systems

Using the three components of information systems and the complementary assets concepts, discuss why some companies achieve better results with information systems than others.

  Compare time complexity of convolution with kernel

Compare the time complexity of convolution with a n x n kernel when using: direct convolution with the 2-D mask, and separable kernel.

  Explain limitations of operations research technique

Describing your selected operations research technique. You must explain the technique, assumptions and limitations of method, the kinds of problems

  Prove by solving the equations using laplace transform

For a RC circuit, we can use Laplace transforms to show that when we apply a step input of 5V, the voltage across the capacitor rises exponentially to a final value equal to step input.

  What is meant by artificial intelligence

What is meant by artificial intelligence? What are two essential differences between human brains and the central processing unit of a computer.

  Explain computer viruses spread by email or other methods

Explain computer viruses spread via email or by other methods. What negative consequences can they have on an organization's operations?

  Design a module

Design a module, using pseudocode, named getNumber, which uses a reference parameter variable to accept an Integer argument. The module should prompt the user to enter a number and then store the input in the reference paramter variable.

  Explaining cash-drawer management concept

Explain in scholarly detail cash-drawer management concept and its relationship to departmental Budget vs. Actual control process.

  Design a nine-step counter to count

Design a nine-step counter to count in the following sequence using D flip-flops (TTL 7474): 0011, 0101, 1001, 1000, 1011, 1010, 0110, 0100, 0111, 0011, include in the design a means for resetting the counter to 0011.

  Discuss strategies to dilute manager-s anger

Discuss strategies you will use to dilute this manager's anger. Discuss how you will get them both to support your recommendations.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd