Practical 1: Write a menu driven program that runs till the user desires, Menu is given below with details. 1) PUSH ( Movie) 2) POP ( Movie ) 3) Display ( Movie ) 4) Peak ( Movie ) Movie Inserts a new element to the stack Movie deletes the element from the stack Movie prints all the elements of the stack Movie - prints the element at the peak position in the stack 5) Exit - Terminates the program Write all user defined functions PUSH , POP, Display and Peak specified above. The stack named movie has each element with format [ MovieNo, MovieName, Category, Price ]. Printing of elements should be done as shown below : MovieNo MovieName Category Price 101 Annabelle Horror 129.00 102 Oceans 8 Comedy 135.00

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter13: Views
Section: Chapter Questions
Problem 2MC
icon
Related questions
Question
Data Structures
Practical 1: Write a menu driven program that runs till the user desires, Menu is given below with
details.
- Inserts a new element to the stack Movie
- deletes the element from the stack Movie
- prints all the elements of the stack Movie
- prints the element at the peak position in the stack
1) PUSH ( Movie)
2) POP ( Movie )
3) Display ( Movie)
4) Peak ( Movie )
Movie
- Terminates the program
Write all user defined functions PUSH, POP , Display and Peak specified above. The stack named
movie has each element with format [ MovieNo, MovieName, Category, Price ]. Printing of
5) Exit
elements should be done as shown below :
MovieNo
MovieName
Category
Price
101
Annabelle
Horror
129.00
102
Oceans 8
Comedy
135.00
Practical 2: Write a function Push(Vow) to store unique words starting with vowels in a stack
named Vow from the string inputted by the user.
Example :- The string inputted is -
"Logic to insert element -- In order to insert an element in an array"
Contents of the Stack Vow :-
insert - element → In - order - an → array
ТОР
Practical 3: Write a function PUSH( stk ), where stk is a stack implemented as a list with individual
elements as tuples (Admno, Name, Marks). Push elements of stack stk to two different stacks
named PASS and FAIL by checking marks (passing marks are >=35 ). Display the stacks PASS and
FAIL if it has at least one element otherwise display an appropriate message.
Transcribed Image Text:Data Structures Practical 1: Write a menu driven program that runs till the user desires, Menu is given below with details. - Inserts a new element to the stack Movie - deletes the element from the stack Movie - prints all the elements of the stack Movie - prints the element at the peak position in the stack 1) PUSH ( Movie) 2) POP ( Movie ) 3) Display ( Movie) 4) Peak ( Movie ) Movie - Terminates the program Write all user defined functions PUSH, POP , Display and Peak specified above. The stack named movie has each element with format [ MovieNo, MovieName, Category, Price ]. Printing of 5) Exit elements should be done as shown below : MovieNo MovieName Category Price 101 Annabelle Horror 129.00 102 Oceans 8 Comedy 135.00 Practical 2: Write a function Push(Vow) to store unique words starting with vowels in a stack named Vow from the string inputted by the user. Example :- The string inputted is - "Logic to insert element -- In order to insert an element in an array" Contents of the Stack Vow :- insert - element → In - order - an → array ТОР Practical 3: Write a function PUSH( stk ), where stk is a stack implemented as a list with individual elements as tuples (Admno, Name, Marks). Push elements of stack stk to two different stacks named PASS and FAIL by checking marks (passing marks are >=35 ). Display the stacks PASS and FAIL if it has at least one element otherwise display an appropriate message.
Assignment
Connectivity
Practical : Create the table given below in database named Sports and insert all 5 records
Table : CLUB
COACH-ID
COACHNAME
AGE
SPORTS
DATOFAPP
PAY
SEX
1.
KUKREJA
35
KARATE
27/03/1996
1000
M
2.
RAVINA
34
KARATE
20/01/1998
1200
F
3.
KARAN
34
SQUASH
19/02/1998
2000
M
4.
TARUN
33
BASKETBALL
01/01/1998
1500
M
5.
ZUBIN
36
SWIMMING
12/01/1998
750
M
Write a menu driven program in python to perform the following operations, the program should
run till the exit option is not selected.
1) Add new CLUB
2) Delete an existing CLUB
3) Modify / Update values of an existing CLUB
4) Search for the specified options :-
i)
ii)
ii)
5) Display all records
Search by Coach ID
Search by Coach Name
Search by Sports
6) Exit
Each menu option is implemented by user defined functions defined in a module named Sports.
Transcribed Image Text:Assignment Connectivity Practical : Create the table given below in database named Sports and insert all 5 records Table : CLUB COACH-ID COACHNAME AGE SPORTS DATOFAPP PAY SEX 1. KUKREJA 35 KARATE 27/03/1996 1000 M 2. RAVINA 34 KARATE 20/01/1998 1200 F 3. KARAN 34 SQUASH 19/02/1998 2000 M 4. TARUN 33 BASKETBALL 01/01/1998 1500 M 5. ZUBIN 36 SWIMMING 12/01/1998 750 M Write a menu driven program in python to perform the following operations, the program should run till the exit option is not selected. 1) Add new CLUB 2) Delete an existing CLUB 3) Modify / Update values of an existing CLUB 4) Search for the specified options :- i) ii) ii) 5) Display all records Search by Coach ID Search by Coach Name Search by Sports 6) Exit Each menu option is implemented by user defined functions defined in a module named Sports.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Stack
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning