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++ MPL
Additional Engineering Textbook Solutions
Starting Out With Visual Basic (8th Edition)
Starting Out with Python (3rd Edition)
Concepts Of Programming Languages
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Starting out with Visual C# (4th Edition)
Starting Out with Java: From Control Structures through Objects (6th Edition)
- : Class Diagram for University Admission System Design a University Admission System Class Diagram in which student gets enroll in a semester. The semester has an ID number and there are two kinds of semester, First semester and Second semester, and each semester contains courses. Each course has a title and course Code The course can be registered dropped withdraw by the students. Each student has a name and student number, and there are two kinds of students, Undergraduate Students (for BCS & MCS) and Postgraduate Students (for MPhil & PhD). Each type of students enroll in different ways.arrow_forwardDesign a class diagram for the following project description online retailer system The system will deal with a number of domain entities – including items, orders, and customers. The items that we sell fall into user-defined categories. Some categories, such as liquor, are flagged as being restricted – customers under the age of 18 are not allowed to buy restricted items, and the system should raise an exception if they attempt to. In addition, we have to maintain certain details on all items – such as the item name, description, price, and category The system also need to maintain customer information – including names, email addresses, and age. Each customer has to have an address, to be used for billing and delivery. Customers can change their details whenever they want When a customer places an order, the system will calculate a delivery fee by using delivery priority and distance from warehouse. Orders of more than $100 qualify for free delivery, at normal priority. Overnight…arrow_forwardChat Application Write a GUI Java program to implement a client/server chat application using Java sockets and threads. 1000 ... Server Client Client Connected to: localhost Now Connected to localhost Send Send Project instructions 1) The total grade for the project is 05 marks. 2) Each student must implement the project individually without any participation with other students. 3) Your program has to be split into several appropriate functions and classes. 4) The style and readability of your program will also determine your grade, in addition to the correctness of the program. Write your Code here Paste your Output Screen here Serverarrow_forward
- 1. IntroductionCCCS 121Object Oriented Programming language Group Course ProjectAn object-based application is an application that involves objects created out of classes. These objects interact with each other to fulfill certain functionalities.The focus of this project is to develop an application written in java which involves the use of object-oriented programming. This project is a group project. As a student you will be given a chance to come up with an idea for your project. However, the project must satisfy the requirements given in this document.This document shall be used as a set of guidelines. You are allowed to make necessary additions and/or changes to the requirements with prior approval from your instructor.2. RequirementsPropose and implement an application, that contributes to solving a real-life problem. Your application should include at least the following:2.1 Classes3 to 4 classes each one of them should have:A. B. C.A number of private and public attributes. The…arrow_forwardTrue or False Class declarations must be written inside the project namespace.arrow_forwardC# Language Create a Product class then create an object from that class using User Input. The program must have Constructor.arrow_forward
- THIS 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_forwardSoftware Engineering: Project Description: Sentiment Analysis System for Images, In this project, we will be creating an Sentiment Analysis system that utilizes machine learning to efficiently analyze people's feelings using their images. Then we will build a web application that is allowing users to upload an image and make a decision about whether it is positive, negative, or neutral. I need the following (please in details and clearly): A) Context models (The whole System)B) Use case modeling (At least four of your system features or activities )C) Class diagrams 1. Classes and associations (The whole System) 2. Class diagram (At least four of your system activities)D) Sequence diagram (At least four of your system activities) Thank you!arrow_forwardIn 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_forward
- arrow_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_forwardHospital Management Project "Simple Scenario We want to develop a comprehensive software product for XY Hospital, where several doctors are working together. There are several departments in the hospital, but a central administrationoffice is handling the patient appointment tasks. Most patients make an appointment before their visit. However, patients can walk in and can be treated if an appropriate doctor is available. On events, patients may change their visit schedule by calling. A patient who made an appointment but cannot appear should cancel his/her appointment in order to avoid a "no-show penalty. The appointment clerks i the administration office are handling all the appointments and the scheduling clerks generate "daily treatment schedules for doctors based on the appointment. The "daily treatment schedules' include doctor's name, patient's information, nurses and treatment rooms for each treatment. Hence, doctors are seeing patients according to the daily treatment schedule.…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