Class-12: Computer Science | Stack Program in Python | CBSE Board question 2023

Published: 26 March 2024
on channel: Technology Planet
104
6

Class-12: Computer Science | Stack Program in Python | CBSE Board question 2023

A list contains following record of customer: [CBSE 2023]
[Customer_name, Room Type]
Write the following user defined functions to perform, given operations on the stack named ‘Hotel’:
(i) Push_ Cust () - To Push customers' names of those customers who are staying in 'Delux' Room Type.
(ii) Pop_ Cust () - To Pop the names of customers from the stack and display them. Also, display ''Underflow" when there are no ' customers in the stack.
For example:
If the lists with customer details are as follows:
["Siddarth", "Delux"]
["Rahul", "Standard"]
["Jerry", "Delux" ]
The stack should contain
Jerry
Siddharth
The output should be:
Jerry
Siddharth
Underflow


On this page of the site you can watch the video online Class-12: Computer Science | Stack Program in Python | CBSE Board question 2023 with a duration of hours minute second in good quality, which was uploaded by the user Technology Planet 26 March 2024, share the link with friends and acquaintances, this video has already been watched 104 times on youtube and it was liked by 6 viewers. Enjoy your viewing!