Theater Ticket Sales
Create a TicketManager class and a
• One student might design and write the client program that uses the class, while other team members design and write the TicketManager class and all of its functions.
• Each student should be given about the same workload.
• The class design and the names, parameters, and return types of each function should be decided in advance.
• The project can be implemented as a multiple program, or all the functions can be cut and pasted into a single file.
Here are the specifications:
• The theater’s auditorium has 15 rows, with 30 seats in each row. To represent the seats, the TicketManager class should have a two-dimensional array of SeatStructures. Each of these structures should have data members to keep track of the seat's price and whether or not it is available or already sold.
• The data for the program is to be read in from two files located in the Chapter 8 programs folder on this book's companion website. The first one, SeatPrices. dat, contains 15 values representing the price for each row. All seats in a given row are the same price, but different rows have different prices. The second file, SeatAvai1abi1ity. dat, holds the seat availability information. It contains 450 characters (15 rows with 30 characters each), indicating which seats have been sold (‘*’) and which are available (‘#’). Initially all seats are available. However, once the program runs and the file is updated, some of the seats will have been sold. The obvious function to read in the data from these files and set up the array is the constructor that runs when the TicketManager object is first created.
• The client program should be a menu-driven program that provides the user with a menu of box office options, accepts and validates user inputs, and calls appropriate class functions to carry out desired tasks. The menu should have options to display the seating chart, request tickets, print a sales report, and exit the program.
• When the user selects the display seats menu option, a TicketManager function should be called that creates and returns a string holding a chart, similar to the one shown here. It should indicate which seats are already sold (#) and which are still available for purchase (#). The client program should then display the string.
Want to see the full answer?
Check out a sample textbook solutionChapter 8 Solutions
Starting Out With C++: Early Objects (10th Edition)
Additional Engineering Textbook Solutions
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Starting Out with C++ from Control Structures to Objects (9th Edition)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Mechanics of Materials (10th Edition)
Introduction To Programming Using Visual Basic (11th Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
- Class Exercise # 1 Create a class hierarchy with base class as Student and derived classes are Part-Time and Full-Time Full-time students will have an extra field to hold two Exam scores Use suitable data structure to hold 15 quizzes scores for each student (part-time or full-time) Create a class Session Use data structure to hold 20 students in a Session, some are part-time, some are full-time Create public methods to calculate average quiz scores per student for the whole class Create public method to print the list of quiz scores in ascending order for one session Create public method to print names of part-time students Create public method to print exam scores of full-time students Main Program Create an instance of Session, populate it with 20 students and dummy scores Call all public methods of Session and capture the output of those methods on consolearrow_forwardTHIS NEEDS TO BE DONE IN C#! Instructions For your first task as a newly formed team of developers, you will design, develop, test, and deliver a small software application to a client. You will first take the requirements for the project and implement a UML and function design for each of the classes you need to create. This MUST be achieved first. You will need to read and understand the requirements and choose good classes that need to be created in the development phase of this project. After you are finished with the design, you will use Visual Studio, C#, and GitHub to develop and test the project. Teams will need to determine who will write what parts of the system before development proceeds. Members will need to create branches to work in, which should be used to work in. Commits should be made often and contain details on changes made in the code. Once intended work for a branch is made, a pull request should be made to its parent branch to merge work. The team leader or…arrow_forwardLibrary Information System Design and Testing Library Item Class Design and TestingDesign a class that holds the Library Item Information, with item name, author, publisher. Write appropriate accessor and mutator methods. Also, write a tester program(Console and GUI Program) that creates three instances/objects of the Library Items class. Extending Library Item Class Library and Book Classes: Extend the Library Item class in (1) with a Book class with data attributes for a book’s title, author, publisher and an additional attributes as number of pages, and a Boolean data attribute indicating whether there is both hard copy as well as eBook version of the book. Demonstrate Book Class in a Tester Program (Console and GUI Program) with an object of Book class.arrow_forward
- In order to carry out a wide range of tasks, it is necessary to make use of both the ACTION and METHOD attributes, which may be accessed by both code and forms.arrow_forwardarrow_back Starting Out With Visual C# (5th Edition) 5th Edition Chapter 11, Problem 1PP arrow_back_ios PREVIOUS NEXT arrow_forward_ios Question share_out_linedSHARE SOLUTION Chapter 11, Problem 1PP Program Plan Intro Employee and ProductionWorker Classes Program plan: Design the form: Place a three text boxes control on the form, and change its name and properties to get the employee name, number, and hourly pay rate from the user. Place a four label boxes control on the form, and change its name and properties. Place a two radio buttons control on the form, and change its name and properties. Place a one group box control on the form, and change its name and properties. Place a command button on the form, and change its name and properties to retrieve the object properties and then display the values into label box. In code window, write the code: Program.cs: Include the required libraries. Define the namespace “Program11_1”. Define a class “Program”. Define a constructor for the…arrow_forwardis the term describing the process of changing someone from one class to another.arrow_forward
- c# LANGUAGE. Create a Product class then create an object from that class using User Input. The program must have Constructor.arrow_forwardComputer sciencearrow_forwardPlease written by computer source Module 4 Assignment This assignment will reinforce your knowledge of the following areas: Coding classes with events Subscribing to and handling events Introduction This phase of the project will have you make some updates to classes in the library project. Defect Management Part of the evaluation of this assignment will include your ability to repair defects from previous versions of your code. Ensure that you are applying the feedback provided to you in the assignment evaluations. You should expect to receive deductions on this assignment for any outstanding defects. Requirements WARNING! It is highly recommended you make a copy of the your RRCAGLibraryFirstNameLastName solution prior to editing the LastName.FirstName.Business project. Update the following classes in the LastName.FirstName.Business namespace. SalesQuote Class Add the following events and methods to the SalesQuote class. Events + VehiclePriceChanged : EventHandler - Occurs when the…arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education