Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java: Consider a class ConcertPromoter that records the tickets sold for a performance. Before the day of the concer, tickets are sold only over the

Java:

Consider a class ConcertPromoter that records the tickets sold for a performance. Before the day of the concer, tickets are sold only over the phone. Sales on the day of the performance are made only in person at the concert venue. The class has the following attributes:

- The name of the band

- The capcacity of the venue

- The number of tickets sold

- The price of a ticket sold by phone

- The price of a ticket sold at the concert venue

- The total sales amount

It has methods to:

-Record the sale of one or more tickets

-Change from phone sales to to sales at the concert venue

- Return the number of tickets sold

- Return the number of tickets remaining

- Return the total sales for the concert

a. Write a method heading for each method

b. Write preconditions and postconditions for each method

c. Write some Java statements to test the class

d. Implement the class

e. List any additional methods and attributes needed in the implementation that were not listed on the original design. List any other changes made to the original design.

f. Write a program using the class you wrote for Part d. that will be used to record sales for a concert. Your program should record phone sales, then sales at the venue. As tickets are sold, the number of seats remaining should be displayed. At the end of the program, display the number of tickets sold and the total sales amount for the concert.

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

Step: 3

blur-text-image

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago