Sie sind auf Seite 1von 5

LIST OF PRACTICALS

MYSQL

1. Last Date : 30 Apr 2019


Write the SQL queries for the following
EMPLOYEE
W_ID FIRSTNAME LASTNAME CITY
102 SAM TONES PARIS
105 SARAH ACKERMAN NEW YORK
144 MANILA SENGUPTA NEW DELHI
210 GEORGE SMITH HOWARD
255 MARY JONES HUSTON
300 ROBERT SAMUEL WASHINGTON
335 HENRY WILLIAMS BOSTON
400 RONNY LEE NEW YORK
451 PAT THOMPSON PARIS

DESIG
W_ID SALARY BENEFITS DESIGNATION
102 75000 15000 MANAGER
105 85000 25000 DIRECTOR
144 70000 15000 MANAGER
210 75000 12500 MANAGER
255 50000 12000 CLERK
300 45000 10000 CLERK
335 40000 10000 CLERK
400 32000 7500 SALESMAN
451 28000 7500 SALESMAN

 Display FirstName and City of Employee having salary between 50,000 and 90,000
 Display details of Employees who are from “PARIS” city.
 Display all the designations.
 Count number of employees whose name starts from character ‘S’.
 Display first name and last name of employees who are not salesmans.
 Display minimum salary of each designation.
 Display total emoluments paid to each employee.
 Display the name and designation of employees in ascending order of the benefits they
recevice.
 Increase the benefits of employee having W_ID = 210 by 500.
 Delete the records of clerks earning salary less than 50000.
SQL 2
TABLE : FLIGHTS
FL_NO STARTING ENDING NO_FLIGHTS NO STOPS
IC301 MUMBAI DELHI 8 0
IC799 BANGALORE DELHI 2 1
MC101 INDORE MUMBAI 3 0
IC302 DELHI MUMBAI 8 0
AM812 KANPUR BANGALORE 3 1
IC899 MUMBAI KOCHI 1 4
AM501 DELHI TRIVANDRUM 1 5
MU499 MUMBAI MADRAS 3 3
IC701 DELHI AHMEDABAD 4 0
TABLE : FARES
FL_NO AIRLINES FARE TAX
1C701 Indian Airlines 6500 10
MU499 Sahara 9400 5
AM501 Jet Airways 13450 8
IC899 Indian Airlines 8300 4
1C302 Indian Airlines 4300 10
1C799 Indian Airlines 10500 10
MC101 Deccan Airlines 3500 4

• Display FL_NO and NO_FLIGHTS from “KANPUR” to “BANGALORE” from the


table FLIGHTS.
• Arrange the contents of the table FLIGHTS in the ascending order of FL_NO.
• Display the FLNO and fare to be paid for the flights from DELHI to MUMBAI
using the tables FLIGHTS and FARES, where the fare to be paid = FARE
+FARE*TAX%/100.
• Display the minimum fare “Indian Airlines” is offering from the table FARES.
• Display the flight numbers of non-stop flights.
• Display the average fare for each airline.
• Display the starting point and destination of flights with descending order
of the tax paid for them.
• Increase the fare of flights going to Bangalore by 5%.
• Give discount to the flights by Deccan Airlines by 2%
• Delete all the flights going to Ahmedabad.

PYTHON

S.No. Description Date of


Submission
1 Write a menu driven program using user defined functions to calculate area of 31 Jul 2019
circle, rectangle and a regular polygon
2 Write a menu driven program using user defined functions that take a list as 31 Jul 2019
parameter and return maximum, minimum and sum of the elements of the list.
3 Write menu driven program using user defined functions sin(x, n) and cos (x,n) 31 Jul 2019
to calculate the value of sin(x) and cos(x) using its Taylor series expansion up
to n terms. Compare the values of sin(x) and cos(x) for different values of n
with the correct value (taken from inbuilt function).
4 Write a menu driven program to recursively find 31 Jul 2019
• Factorial of a number
• sum of elements of a list
• NTH Fibonacci number
5 Write a menu driven program using recursion to test if a string is a palindrome 31 Jul 2019
or not.
6 Write a menu driven program that reads a file line by line, word by word and 30 Sep 2019
character by character and display the contents.
7 Write a menu driven program to remove all the lines that contain the character 30 Sep 2019
`a' in a file and write it to another file.
8 Write a menu driven program to read a file and count the number of 30 Sep 2019
• alphabets
• Uppercase alphabets
• Lowercase alphabets
• Vowels
• Consonants
• Digits
9 Write a menu driven program that would display height and width of a .jpeg 30 Sep 2019
image given. The header information of .jpeg is given for reference.

10 Write a menu driven program to plot the following functions using the pyplot 30 Sep 2019
or matplotlib libraries.
• y = x2
• y=sin(x)
• y = ex
11 Write a menu driven program to plot bar chart for total marks obtained by n 30 Sep 2019
students. Take input as a list.
12 For an experiment ‘To determine the angle of minimum deviation for a given 31 Oct 2019
glass prism’ get the readings of angle in incidence and angle of deviation in a
list and plot the graph.
12 Write a menu driven program to implement a stack using a list data-structure. 31 Oct 2019
13 Write a menu driven program to implement a queue using a list data-structure. 31 Oct 2019
14 Create a graphical application. For example, write a small calculator. Use the 31 Oct 2019
tkinter library.
15 Open a webpage using the urllib library. 31 Oct 2019
16 Compute EMIs for a loan using the numpy or scipy libraries. 31 Oct 2019
17 Write a menu driven program using MySQL module to insert data in a table. 20 Nov 2019
18 Write a menu driven program using MySQL module and GUI to display the 20 Nov 2019
contents of a table. (Must have first, previous, next and last buttons)
19 Write a menu driven program using MySQL module to search for a record in a 20 Nov 2019
given table
20 Write a menu driven program using MySQL module to records satisfying user 20 Nov 2019
given criteria.
21 Write a Django based web server to parse a user request (POST), and write it to 20 Nov 2019
a CSV file.
PROJECT :

The aim of the class project is to create something that is tangible and useful. This should be done in
groups of 2 to 3 students, and should be started by students at least 6 months before the submission
deadline. The aim here is to find a real world problem that is worthwhile to solve.

Here are some links that you can use to get idea. Do not plagiarize any of the project parts but you can
use these sites for guidance. Get approval for your project before starting.

Make sure that you use following libraries

• numpy
• matplotlib
• pylot

https://www.hackster.io/projects/tags/python
https://codeclubprojects.org/en-GB/python/

Once you are ready with the project idea complete the following form

https://goo.gl/forms/HhcEzXyuaXAmauhv1

Das könnte Ihnen auch gefallen