Trending ▼   ResFinder  

ICSE − Q & A

ICSE
Indian Certificate of Secondary Education (ICSE), New Delhi
+Fave Message

Ask a Question

Answer a Question!

ResFinder - Thousands of Practice Papers

A ticket at a ticket selling booth at a fair is priced at Rs.2.50/-. The booth keeps track of the total number of people who have visited the booth, the number of people who have actually purchased a ticket and the total amount of money collected. Design a class called Ticbooth which includes the following Members:

Class name	Ticbooth
Data members

no_people	number of people who have visited the booth.
amount	total amount of money collected.
Member functions

void initial() 	To assign initial values to data members.
void notsold()	
Increment total number of people only visiting the booth and not purchasing a ticket.

void sold()	
Increment total number of people purchasing a ticket and the amount collected when a ticket is sold.

void disp_totals()	
To display the total number of people visiting the booth (the total number of people purchasing the ticket as well as those not purchasing a ticket).

void disp_ticket()	
To display the total number of tickets sold and the amount collected.

Specify the class Ticbooth giving details of the functions void initial(), void sold(), void notsold(), void disp_totals() and void disp_ticket(). The main function needs to be written.
asked by Anugrahkapoor24 (anugrahkapoor24) 5 years ago
0

Other Questions on This Topic

I miss the old res papers and the friends you could make here.
asked by Joseph Chennattu (joseph444) 7 days ago
2
What is the difference between steam turbines and gas turbines?
asked by Yogesh (yogesh) 23 days ago
1

+ 5 more questions by yogesh  

I've got an endsem exam in an hour but all I am doing is reading old threads on res. 🥲
asked by Nisarg Bhavsar (nisarg71) 37 days ago
3
Hlooo..itzz been longgg...ICSE 2018 batch anybody??
asked by Snigdha (silver2002) 87 days ago
3
tips and tricks to answer dialogue in french
asked by french123 198 days ago
0
physics icse prelim
asked by Bananachips (bananachips) 1 year ago
0
who was daughter of shylock
asked by Ansh Anand (teleansh) 1 year ago
3
what is Lenz law
asked by Nidhi Mohunta (samairamohunta) 1 year ago
1
A body of mass 0.2 kg falls from a height of 10 m to a height of 6 m above the ground. Find the loss in potential energy taking place in the body. Let g = 10 m/s².
asked by ICSE (icse) 1 year ago
1

Next Page >>

ICSE chat

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us