Limited Offer Get 25% off — use code BESTW25
No AI No Plagiarism On-Time Delivery Free Revisions
Claim Now
Prices start at $5 per page · plagiarism-free papers · free revisions for 14 days 24/7 support: support@bestwriters.com
Uncategorized

computes the total ticket sales of a concert

  • Posted
  • Authoradmin
  • Length147 words
  • Reading time1 min
Write My Assignment FREE

Write
a program that computes the total ticket sales of a concert. There
are

four
types of seatings: A, B, C, and D. The total sales are computed as

follows:

totalSales=numberOfSeatTypesA
* pricePerSeatA + numberOfSeatTypesB

*
pricePerSeatB+numberOfSeatTypesC *

pricePerSeatC+numberOfSeatTypesD
* pricePerSeatD

Requirements:

1.Create
a class named ConcertSales for this program.

2.
Provide the following methods:

public
int getNumberOfSeatTypesA(): returns the number of A seats.

public
int getNumberOfSeatTypesB(): returns the number of B seats.

public
int getNumberOfSeatTypesC(): returns the number of C seats.

public
int getNumberOfSeatTypesD(): returns the number of D seats.

public
double getPricePerSeatA () : returns the price of seat A.

public
double getPricePerSeatB () : returns the price of seat B.

public
double getPricePerSeatC () : returns the price of seat C.

public
double getPricePerSeatD () : returns the price of seat D.

public
double computeTotalSales(): computes total sales amou

The post computes the total ticket sales of a concert appeared first on My Assignment Online.

Plagiarism Free Assignment Help

Expert Help With This Assignment — On Your Terms

✓ Native UK, USA & Australia writers ✓ Deadline from 3 hours ✓ 100% Plagiarism-Free — Turnitin included ✓ Unlimited free revisions ✓ Free to submit — compare quotes

admin

Academic writer and editor at BestWriters.

Get your paper off your plate tonight

Post your instructions for free. Prices start at $5 per page.

Place an order