Professional Documents
Culture Documents
10B Pp-Assignment Task-2 - S9
10B Pp-Assignment Task-2 - S9
DEPARTMENT OF CSE
VTU R15 B.TECH – CSE
WINTER 2020-21
ASSIGNMENT II
Slot: S9 Course Category: PE
Course code & Title: 1152CS119 & Python Programming Faculty Name: Dr.T.Veeramakali
Course Coordinator :Mrs.Usha
Vlearn Posted Date:27.4.21 Last Date for Submission: 18.5.21
2.
Implement the python program for passing the Dropdown box data CO5 K3
3.
to CGI program
Consider a Vehicle base-class and car, plane, boat, race car CO3 K2
sub-class, add some attributes and methods then
instantiating its object with different values as mentioned in
the diagram. write the python program.
4.
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing, random square using python
turtle
5.
Implement the python program for passing the checkbox data to CO5 K3
6.
CGI program
7. Define a Grandpa, Father and Child Classes, add some CO3 K2
attributes and methods then instantiating its object with
different values as mentioned in the diagram and Write the
python program.
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing, line of filled square getting
bigger using python turtle
8.
Implement the python program for passing the Radio Button data to CO5 K3
9.
CGI program
Consider, Students are admitted in an engineering college based on CO3 K2
their marks scored in an Entrance exam and Public exam. A student
is identified by student id, name, age and marks in entrance exam
and public exam marks (mathematics, physics and chemistry). Data
are valid, if:
Age is greater than 17
Marks is between 0 and 100 (both inclusive)
10.
A student qualifies for admission, if
Age and marks are valid and
Marks are 65 or more
Implement python program using setter and getter methods
to represent the students seeking admission in that
university.
13.
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing, rotated filled square using
python turtle
14.
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing using python turtle
17.
19.
22.
23. Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!) 15 pixels in the direction it is facing, drawing a line as
it moves. Give it the command turtle.right(), and it rotates clockwise
(Scenario)
Implement the python code to interact with remote HTML server. CO5 K3
24.
Implement the concept of polymorphism for the below image. CO3 K2
25.
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!)
26.
30.
31. Implement the concept of inheritance and polymorphism for the CO3 K2
below image with python coding
32. We add a Leap Day on February 29, almost every four years. The CO4 K3
leap day is an extra, or intercalary day and we add it to the shortest
month of the year, February.
In the Gregorian calendar three criteria must be taken into account
to identify leap years:
The year can be evenly divided by 4, is a leap year, unless:
o The year can be evenly divided by 100, it is NOT a
leap year, unless:
The year is also evenly divisible by 400. Then
it is a leap year.
This means that in the Gregorian calendar, the years 2000 and 2400
are leap years, while 1800, 1900, 2100, 2200, 2300 and 2500 are
NOT leap years.
Task
You are given the year, and you have to write a function to check if
the year is leap or not.
Note that you have to complete the function and remaining code is
given as template.
Input Format
Read y, the year that needs to be checked.
Constraints
1900<=y<=105
Output Format
Output is taken care of by the template. Your function must return a
boolean value (True/False)
Sample Input 0
1990
Sample Output 0
False
Explanation 0
1990 is not a multiple of 4 hence it's not a leap year.
34.
Output : 20
Implement the python code to run html based queries. CO5 K3
36.
Implement the concept of inheritance and polymorphism for the CO3 K2
below image with python coding
37.
38. Given an array of positive numbers, find the maximum sum of a CO4 K3
subsequence with the constraint that no 2 numbers in the sequence
should be adjacent in the array. So 3 2 7 10 should return 13 (sum
of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and
7).Answer the question in most efficient way.
Examples :
Input : arr[] = {5, 5, 10, 100, 10, 5}
Output : 110
Input : arr[] = {1, 2, 3}
Output : 4
Input : arr[] = {1, 20, 3}
Output : 20
Implement the python code to run html based queries. CO5 K3
39.
Identify the type of inheritance and implement the identified CO3 K2
inheritance concept for the below image with python coding
40.
41. We add a Leap Day on February 29, almost every four years. The CO4 K3
leap day is an extra, or intercalary day and we add it to the shortest
month of the year, February.
In the Gregorian calendar three criteria must be taken into account
to identify leap years:
The year can be evenly divided by 4, is a leap year, unless:
o The year can be evenly divided by 100, it is NOT a
leap year, unless:
The year is also evenly divisible by 400. Then
it is a leap year.
This means that in the Gregorian calendar, the years 2000 and 2400
are leap years, while 1800, 1900, 2100, 2200, 2300 and 2500 are
NOT leap years.
Task
You are given the year, and you have to write a function to check if
the year is leap or not.
Note that you have to complete the function and remaining code is
given as template.
Input Format
Read y, the year that needs to be checked.
Constraints
1900<=y<=105
Output Format
Output is taken care of by the template. Your function must return a
boolean value (True/False)
Sample Input 0
1990
Sample Output 0
False
Explanation 0
1990 is not a multiple of 4 hence it's not a leap year.
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing using python turtle
44.
46.
47. Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing using python turtle
Implement the python program for downloading a file CO5 K3
48.
Define a class for operator overloading and use magic methods to CO3 K2
do addition operation on complex number.
49.
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing using python turtle
50.