0% found this document useful (0 votes)
7 views

Assignment EF Lab3

Uploaded by

Amol Raj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Assignment EF Lab3

Uploaded by

Amol Raj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Python Programming Lab

Assignment 3

1. Write a program to make a calculator. Ask input numbers and operator


from user and implement arithmetic operators: +, -, /, *, %, //, **

2. Write a program to find the area of rectangle.

3. Write a program to find the square root of a number.

4. Write a program to swap two variables.

5. Write a program to convert temperature from Celsius to Fahrenheit


Temperature in degrees Fahrenheit (°F) = (Temperature in degrees Celsius (°C) * 9/5) + 32.

6. Write a program to calculate simple and compound interest when rate,


principal and time is given.

7. Ramesh's basic salary is input through the keyboard. His dearness


allowance is 40% of basic salary, and house rent allowance is 20% of
basic salary. Write a program to calculate his gross salary.

8. The distance between two cities (in km.) is input through the keyboard.
Write a program to convert and print this distance in meters, feet, inches
and centimetres.

9. Write a program to find out distance between two points e.g. (x1, y1) and
(x2, y2).

10.In a town, the percentage of men is 52. The percentage of total literacy is
48. If total percentage of literate men is 35 of the total population, write a
program to find the total number of illiterate men and women if the
population of the town is 80,000.

You might also like