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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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