CS Practical Assignment 17 - 22
CS Practical Assignment 17 - 22
Program Code:
Output:
Practical Assignment : 18
Date: 07 August, 2024
Title:Write a program in python to calculate the Area or
Perimeter of a rectangle depending upon the choice of user with
the help of a function FunctionArea_Perimeter() that takes two
parameters length and breadth of the rectangle and returns both
area and perimeter as a tuple.
Program Code:
Output:
Practical Assignment : 19
Date: 21 August, 2024
Title: Write a program in python to calculate the salary related
data of an employee and display.
Input:
Name
Basic Salary of employee
Job Code of employee (Any one out of 101, 102 or 103)
Calculate:
Calculate da, hra and tax accordion to following table as the
percentage of the basic salary.
Calculate-
Gross Salary=Basic Salary + da+hra
Net Salary=Gross Salary-Tax
Note: Create Functions for the calculation of da, hra and
tax.
Program Code:
Output:
Practical Assignment : 20
Date: 09 October, 2024
Title: Write a program in python to create a binary file
product.dat (product_id, product_name, Stock_status (Y/N))
that contains the data of the various products and its availability.
Sort this file in the ascending order of product_name.
Program code:
Output:
PRACTICAL ASSIGNMENT-21
DATE:- 23 October, 2024
Q)
1) Create a table
product1(pid,name,price)
TABLES:-
PRODUCT1:
STOCK:
Practical assignment 22
Date – 06 November, 2024
Question.Create a table student with the following.