Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 22nd International Conference Dexa 2011 Toulouse France August/September 2011 Proceedings Part 1 Lncs 6860

Authors: Abdelkader Hameurlain ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2011th Edition

3642230873, 978-3642230875

More Books

Students also viewed these Databases questions

Question

6. Conclude with the same strength as in the introduction

Answered: 1 week ago

Question

7. Prepare an effective outline

Answered: 1 week ago