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.