Question
In form in visual studios- Java The Great Opera House in Osawa Falls, WI is looking for a new system to manage ticket sales to
In form in visual studios- Java
The Great Opera House in Osawa Falls, WI is looking for a new system to manage ticket sales to their performances at the 110-year-old theater. They receive many different performers throughout the year, from shows touring, local musical artists, high school musicals and plays, as well as the house theater groups season series of plays. The venerable venue has three stages and several lounges that can be available for various functions, including concession sales during performances.
Assignment 1: Create classes and objects In this assignment, you work with your assigned partner to create an Event class that will be used to hold information about each of the events at the Great Opera House. You need to be able to store the name of the event and the performer, time of the event, how many tickets are available, the cost of the tickets, and whether concession sales will be available. Be sure to use pair programming techniques as you develop your program. In particular, be sure to switch who is driving and who is navigating.
Methods
Constructor to create an event object. Set values for all properties and fields. Ensure non-negative number of tickets
A method named SellTicket that takes a number of tickets to sell and returns the total amount of the sale
A method named ReturnTicket that takes a number of tickets to be returned (e.g. tickets that had been previously sold) and returns the total amount of money to be returned to the buyer.
ToString method that returns a string with event details on this format:
o [EventTitle] by [Performer] on [EventDate] at [EventTime].
Concessions: {Yes|No]. Tickets available: [NumTickets].Ticket price: [TicketPrice].
o Example: Shrek by Osawa High School on 4/13/2016 at 7:00pm. Concessions: Yes. Tickets available: 134. Ticket Price: 12
Use the Program.cs class to test the Event class.
Create at least three different Event objects, print out their status, and show how you can sell and return tickets. Make sure the number of tickets available can never be negative, and can only be modified through the methods to sell and return tickets.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started