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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education