Programs
Programs
2 Calculating Areas of Geometric Figures - Write a python program to calculate areas of any
geometric figures like circle, rectangle and triangle.( Note : Create menu which will call
function for respective function to calculate areas of respective figures.)
3 Calculating Gross Salary of an Employee: Write a Python program to calculate the gross
salary of an employee. The program should prompt the user for the basic salary (BS) and
then compute the dearness allowance (DA) as 70% of BS, the travel allowance (TA) as 30%
of BS, and the house rent allowance (HRA) as 10% of BS. Finally, it should calculate the
gross salary as the sum of BS, DA, TA, and HRA and display the result.
4 Exploring Basic Arithmetic Operations in Python: Write a Python program to explore basic
arithmetic operations. The program should prompt the user to enter two numbers and then
perform addition, subtraction, multiplication, division, and modulus operations on those
numbers. The results of each operation should be displayed to the user.
10 Develop any converter such as Rupees to dollar, temperature convertor, inch to feet etc.
11 Write a Python program to calculate the simple interest based on user input. The program
should prompt the user to enter the principal amount, the rate of interest, and the time period
in years. It should then compute the simple interest using the formula Simple
Interest=(Principal×Rate×Time) /100 and display the result.
12
Python Program to Swap Two Variables
14 Create a Python program to check whether the given input is a digit, lowercase character,
uppercase character, or a special character using an 'if else-if' ladder.
15 Write a Python program to take a numerical input from the user and generate its
multiplication table using loops.
16 Develop a Python program to print the Fibonacci sequence using a while loop.
18 Implement a simple Python calculator that takes user input and performs basic arithmetic
operations (addition, subtraction, multiplication, division) using functions.
23 Write a program to check whether the entered number is a palindrome using a function.