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

  Discuss the different reasons for terminating a process

discuss the different reasons for terminating a process and the commands used for this purpose.

  Limit approach to determine the order

Use the limit approach to determine the order for g(n) = n^J and f(n) = n^k, where k > j > 2

  Given a set of integer numbers

Given a set of integer numbers as int A[ ] = { 12, 6, 51, 4, 3, 7, 19, 8, 0, 21}, please write down the divide and conquer procedure of quick sort (step by step), include all left and right positions adjustment, and overwriting.

  How many units of each component ordered from each supplier

If the Edwards production plan for the next period includes 1000 units of component 1 and 800 units of component 2, how many units of each component (C1, C2) should be ordered from each supplier (S1, S2, S3)?

  Estimate for risk management in accompanying data

Estimate for risk management as shown in accompanying data, which vulnerability must be evaluated for additional controls first? Which one should be evaluated last?

  For the aside element create a style rule to

float the aside element on the right with a margin of 10 pixels; set the width to 50% of the width of the main section; and add a rounded border with a radius of 30 pixels. For paragraphs within the aside element, set the font size to 90% and the ..

  A mobile app has to dynamically select an encryption

A mobile app has to dynamically select an encryption algorithm based on security requirements and computing time constraints.

  Explaining pros and cons of coralcdn

Provide a summary of CoralCDN. Contrast its operation with that of Akamai. What the pros and cons of CoralCDN (as compared to Akamai)?

  Select three imaging tools and explain their functions

Choose three imaging tools and describe their functions, including those of their subtools. Provide examples of how these tools might be used to enhance your professional or personal photos.

  Monitoring performance of it acquisition projects

Who is or should be responsible for monitoring the performance of IT acquisition projects and taking action that may result in cancelling the project?

  Write dissolve method for three color components

It does this by incrementing (by 1) all three color components (using the above accessor and mutator methods) as well as the alpha component value. Write down dissolve method.

  Encode audio data in two packets

How might you encode audio (or video) data in two packets so that if one packet is lost, then resolution is simply decreased to what would be expected with half bandwidth?

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