Arsh Garg Xi-B 13 Cs Project
Arsh Garg Xi-B 13 Cs Project
XI-B
13
CS PROJECT
=-
Q1: Write a Python script to accept principal amount ,
rate of interest and time in years and display simple
interest.
A1: INPUT:
OUTPUT:
Q2 Write a menu driven code
• to accept side of a square and display its area and
perimeter.
• to accept length and breadth of a rectangle and
display its area and perimeter.
• to accept radius of a circle and display its area and
circumference.
• to accept base and height of a triangle and display its
area. (Area = ½ * b * h)
• to accept three sides of a triangle and calculate its
area using Heron's formula.
A2 INPUT:
OUTPUT:
Q3 Write a menu driven code to
• accept temperature in Fahrenheit and display it in
Celsius. C=(F−32)∗5/9
• accept temperature in Celsius and display it in
Fahrenheit. F=C∗9/5+32
A3 INPUT:
OUTPUT:
Q4 Write a Python script to accept time in minutes and
display corresponding time in hours and minutes.
A4 INPUT:
OUTPUT:
OUTPUT:
Q6 Write a Python script to swap (interchange the value)
of two numbers. Display two numbers with memory
location before and after swapping. Judge if same or
different ids are allotted to them.
A6 INPUT:
OUTPUT:
Q7 Write a Python Script to Enter age of a person and
check eligibility to get married. Do appropriate checks
required for the same.
A7 INPUT: