0% found this document useful (0 votes)
11 views2 pages

Student Syllabus

The document contains the syllabus for the subject "Programming Using Python Lab" for Bachelor of Science in Information Technology students. It lists several programming assignments to be completed in Python including: (1) a program to check divisibility of integers, (2) validating phone numbers, (3) working with dictionaries, (4) creating and using classes, (5) demonstrating multiple inheritance, (6) creating a payroll system, (7) exception handling, (8) database connectivity, (9) CGI programming, (10) networking using sockets, and (11) reversing the contents of a file. Students will design, develop, and implement Python programs to demonstrate various programming concepts.

Uploaded by

lomir76956
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Student Syllabus

The document contains the syllabus for the subject "Programming Using Python Lab" for Bachelor of Science in Information Technology students. It lists several programming assignments to be completed in Python including: (1) a program to check divisibility of integers, (2) validating phone numbers, (3) working with dictionaries, (4) creating and using classes, (5) demonstrating multiple inheritance, (6) creating a payroll system, (7) exception handling, (8) database connectivity, (9) CGI programming, (10) networking using sockets, and (11) reversing the contents of a file. Students will design, develop, and implement Python programs to demonstrate various programming concepts.

Uploaded by

lomir76956
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Uttaranchal School of Computing Sciences (USCS)

www.uttaranchaluniversity.ac.in
Premnagar, Dehradun (Uttarakhand) INDIA-248007

0135-2770319,0135-2770347 0135-2772231

Syllabus

Course : Bachelor of Science (Information Year/Sem : 6 Branch : null


Technology)

Subject : Programming Using Python Lab


Unit Sub Unit Topic

INTERNAL PRACTICALS Design, Develop and implement a python program that accepts two
integers from the user and print a message saying if first number is
divisible by second number or if it is not. , Design, Develop and implement
a program that prompts for a phone number of 10 digit and two dashes,
with dashes after the area code and the next three number. Display if the
phone number enter is valid format or not and display if the phone
number is valid or not. , Create a dictionary whose keys are month name
and whose values are number of days in the corresponding month :
a. ask the user to enter the month name and use the dictionary to tell how
many days are in month.
b. print out all of the keys in alphabetical order.
c. print out all of the month with 31 days
d. print out the (key - value) pair sorted by the number of the days in
each month.
, Create the class SOCIETY with following information:
society_name,house_no,no_of_members,flat, income
Methods :
‡An _init_ method to assign initial values of society_name as ³Surya
Apartments´flat as ³AType´house_.no as 20, no_of_members as 3,
income as 25000.
‡Inputdata()-To read data members (society,house_no,no_of members &
income) and call allocate_flat().
‡allocate_flat( )-To allocate flat according to income
Income Flat
>=25000 A Type
>=20000 and <25000 B Type
<15000 C Type , Design, Develop and implement a program to define a
class SUPPLY in Python with the following description:
Private Members Code of type int FoodName of type string FoodType of
type string Sticker of type string
A member function GetType() to assign the following values for Food Type
as per the given Sticker
‡A function Foodln() to allow user to enter values for Code, EoodName,
Sticker and call function GetType() to assign respective FoodType.
‡A function FoodOut() to allow user to view the contents of all the data
members. , Design, Develop and implement a Python program to
demonstrate multiple inheritance. Consider 3 classes with the following
description.
Student class has 3 protected data members roll number, markl and
mark2 of type integer. It has a get() function to get these details from the
user. Sports class has a protected data member sports marks of type
integer and a function getsm() to get the sports mark.
Statement class uses the marks from Student class and the sports marks
from the Sports class to calculate the total and average and displays the
final result , Design, Develop and implement a program to create a Pay
roll information system:
Declare the base class ¶employee¶with employee¶s number, name,
designation, address, phone number. Define and declare the function
getdata() and putdata() to get the employee¶s details and print
employee¶s details. Declare the derived class salary with basic pay, DA,
HRA, Gross pay, PF, Income tax and Net pay. Declare and define the
function getdatal() to call getdata() and get the basic pay. Define the
function calculate() to find the net pay. Define the function display() to call
putdata() and display salary details .
Create the derived class object. Read the number of employees. Call the
function getdatal)) and calculate() to each employees. Call the display()
function. , Design, Develop and implement exception handling with a
python program to raise an error while getting input from the user and
flash an error message. , Design, develop and implement a database
connectivity using python which simulates the real-time queries and each
part contains a specific skill from given databases and implements
following queries:
Query1:Connect to your database server and print its version.
Query2:Fetch Hospital and Doctor Information using hospital Id and doctor
Id.
Query3:Get the list Of doctors as per the given specialty and salary.
Query4:Get a list of doctors from a given hospital.
Query5:Update doctor experience in years. , Design, Develop and
implement a CGI program on python to dynamically generate web pages
that not only take input from users but also display the output at the
same time. , Design, Develop and implement a program of networking
using python socket library which offer classes for handling common
transports as a generic interface. , Design, Develop and implement a
program to reverse the content of a file and store it in another file.

You might also like