Afreen Py Task 40
Afreen Py Task 40
1.Hello World..!
2.do arithmetic operation for given values
3.print student details -name,age,address,ph_no,and 5 subject marks,then find the percentage of the student
4.swap case
5.spilt case
DAY--2
DAY--3
13.print hello instead of values (which are multiple of 5)
eg:-
1
2
3
4
hello
6
7....
14.print
enter a number : 3
hello
python
hello
python
15.enter number : 3
hello
python
python
python
hello
python
python
python
hello
python
python
python
Day--5
26.atm task using functions
27.hotel managment
28.calculator
29.recursive function(factorial)
DAY--6
30.create a text file
(i)count no of space from the file
(ii)count no of vowels from the file
(iii)count no of integers from the file
(iv)replace the space into "$"
DAY--7
31.any topic eg:book my show , swiggy ,zomato
DAY--8,9
32.the denominator value If the user enters a number, the program will evaluate and produce the result.
DAY--10
36.Write an application that handles a queue of jobs in N=5 threads.Each job contains a number between 0-5.Each th
read takes the next element from the queue and sleeps for the given amount of second (as an imitation of actual work
it should be doing). When finished it checks for another job.
If there are no more jobs in the queue, the thread can close itself.
DAY--11
37.Write a SQL statement that displays all the information about all salespeople.
38.From the following table, write a SQL query to locate salespeople who live in the city of 'Paris'. Return salespers
on's name, city.
salesman_id | name | city | commission
-------------+------------+----------+------------
5001 | James Hoog | New York | 0.15
5002 | Nail Knite | Paris | 0.13
5005 | Pit Alex | London | 0.11
5006 | Mc Lyon | Paris | 0.14
5007 | Paul Adam | Rome | 0.13
5003 | Lauson Hen | San Jose | 0.12
39. From the following table, write a SQL query to find the cheapest item(s). Return pro_name and, pro_price
PRO_ID PRO_NAME PRO_PRICE PRO_COM
------- ------------------------- -------------- ----------
101 Mother Board 3200.00 15
102 Key Board 450.00 16
103 ZIP drive 250.00 14
104 Speaker 550.00 16
105 Monitor 5000.00 11
106 DVD drive 900.00 12
107 CD drive 800.00 12
108 Printer 2600.00 13
109 Refill cartridge 350.00 13
110 Mouse 250.00 12
DAY--12
40.GUI + SQL
(i) create a registration form
(ii) create a question paper for python interview