Computer Science, asked by zahanathafroz, 5 months ago

write a menu driven program using switch to choose from various categories of cinema hall tickets as 'D'/'B'/'R'. print an error message if a wrong category is entered.
the various categories are:
dress circle - 120
balcony - 150
recliners - 200

the program must have the following specifications:

class name : MovieTickets
data members : int no - for number of tickets to be bought as 'D'/'B'/'R'
int amt - for amount to be paid

functions : void input() : - to print menu
- accept the requied details
- calculate the amount based on category and discount to be paid. a discount of 10% is to be given for an amount→=1000
-to print all details

Answers

Answered by nidhi69065
4

Answer:

write a menu driven program using switch to choose from various categories of cinema hall tickets as 'D'/'B'/'R'. print an error message if a wrong category is entered.

the various categories are:

dress circle - 120

balcony - 150

recliners - 200

the program must have the following specifications:

class name : MovieTickets

data members : int no - for number of tickets to be bought as 'D'/'B'/'R'

int amt - for amount to be paid

functions : void input() : - to print menu

- accept the requied details

- calculate the amount based on category and discount to be paid. a discount of 10% is to be given for an amount→=1000

-to print all details

write a menu driven program using switch to choose from various categories of cinema hall tickets as 'D'/'B'/'R'. print an error message if a wrong category is entered.

the various categories are:

dress circle - 120

balcony - 150

recliners - 200

the program must have the following specifications:

class name : MovieTickets

data members : int no - for number of tickets to be bought as 'D'/'B'/'R'

int amt - for amount to be paid

functions : void input() : - to print menu

- accept the requied details

- calculate the amount based on category and discount to be paid. a discount of 10% is to be given for an amount→=1000

-to print all details

write a menu driven program using switch to choose from various categories of cinema hall tickets as 'D'/'B'/'R'. print an error message if a wrong category is entered.

the various categories are:

dress circle - 120

balcony - 150

recliners - 200

the program must have the following specifications:

class name : MovieTickets

data members : int no - for number of tickets to be bought as 'D'/'B'/'R'

int amt - for amount to be paid

functions : void input() : - to print menu

- accept the requied details

- calculate the amount based on category and discount to be paid. a discount of 10% is to be given for an amount→=1000

-to print all details

hope it's helps

Similar questions