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

  What are the benefits of using tangible interfaces

What are the benefits of using tangible interfaces compared with other interfaces like GUI, pen-based or gesture?

  Display the total and average number of calories burned

How would you solve the following in C++? Please write code below: Write a condition-controlled while loop that allows the user to enter the calories they burned. Stop looping when the user enters a negative number. Display the Total and Average n..

  What value would be returned from call to its size() method

If a collection stores 5 objects, what value would be returned from a call to its size() method?

  Create class savingsaccount

Create class SavingsAccount. Use a static variable annualInterestRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingBalance indicating the amount that saver currently..

  Specific design criteria

Give two languages that are in direct conflict with each other. Provide examples of these conflicts as either programming examples (features allowed or not allowed) or program model, (environment). Compare and contrast the terms readability and write..

  Approach to organizing and funding it organization

What would be the best approach to organizing and funding their IT organization? Describe at least one alternative approach. Provide justification for why your proposed approach is the best one.

  How light source is treated during ray tracing processing

Typically, this setting is left at default until final renderings are being produced. To reduce gaps or facets in rendering which setting do you adjust?

  What is the value of alpha[4]

What is the value of alpha[4] after the following code executes? int alpha[5] = {0}; int j; alpha[0] = 2; for (j = 1; j

  Name, number of years that he or she has worked

For each employee: name, number of years that he or she has worked for the company, whether or not they are interested in the new work position.

  16-bit signed magnitude numbers

Convert the following numbers to 16-bit signed magnitude numbers (display results in hexadecimal):

  Kinds of attitudes for upper management personnel

Explain in scholarly detail why it is recommended that business communications be oriented toward upper management and what kinds of attitudes should these upper management personnel possess.

  Write a command to do an alphabetical sort on the third fiel

Write the command to run the file called 'process' assuming it is in your current directory, has execute permission, but that your current directory is not in the standard path command search list:

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