a. Write a method heading for each method. b. Write preconditions and postconditions for each method. c. Write some Java statements that test the class. d. Implement the dass. e. List any additional...


a. Write a method heading for each method.<br>b. Write preconditions and postconditions for each method.<br>c. Write some Java statements that test the class.<br>d. Implement the dass.<br>e. List any additional methods and attributes needed in the implementa-<br>tion that were not listed in the original design. List any other changes<br>made to the original design.<br>f. Write a program using the class you wrote for Part d that will be used<br>to record sales for a concert. Your program should record phone sales,<br>then sales at the venue. As tickets are sold, the number of seats remain-<br>ing should be displayed. At the end of the program, display the number<br>of tickets sold and the total sales amount for the concert.<br>

Extracted text: a. Write a method heading for each method. b. Write preconditions and postconditions for each method. c. Write some Java statements that test the class. d. Implement the dass. e. List any additional methods and attributes needed in the implementa- tion that were not listed in 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 remain- ing should be displayed. At the end of the program, display the number of tickets sold and the total sales amount for the concert.
Consider a class ConcertPromoter that records the tickets sold for a perfor-<br>mance. Before the day of the concert, tickets are sold only over the phone.<br>Sales on the day of the performance are made only in person at the concert<br>venue. The class has the following attributes:<br>• The name of the band<br>• The capacity of the venue<br>The number of tickets sold<br>• The price of a ticket sold by phone<br>• The price of a ticket sold at the concert venue<br>• The total sales amount<br>It has methods to<br>• Record the sale of one or more tickets<br>• Change from phone sales to sales at the concert venue<br>• Return the number of tickets sold<br>Return the number of tickets remaining<br>• Return the total sales for the concert<br>

Extracted text: Consider a class ConcertPromoter that records the tickets sold for a perfor- mance. Before the day of the concert, 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 capacity 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 sales at the concert venue • Return the number of tickets sold Return the number of tickets remaining • Return the total sales for the concert

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here