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

revision python programs

The document outlines several Python programming tasks, including calculating the area and perimeter of a circle, determining if a number is a perfect square, computing monthly telephone bills based on call rates, calculating employee wages based on hours worked and sales, and creating a menu-driven program for area calculations of different shapes. It also includes a task to implement temperature conversions using a match-case structure. Each task is designed to reinforce fundamental programming concepts and calculations.

Uploaded by

neiliyer03
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)
2 views2 pages

revision python programs

The document outlines several Python programming tasks, including calculating the area and perimeter of a circle, determining if a number is a perfect square, computing monthly telephone bills based on call rates, calculating employee wages based on hours worked and sales, and creating a menu-driven program for area calculations of different shapes. It also includes a task to implement temperature conversions using a match-case structure. Each task is designed to reinforce fundamental programming concepts and calculations.

Uploaded by

neiliyer03
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

Revision – Python Programs

Que)Write a Python program for the following :


a) to calculate the area and perimeter of the circle. If radius=5
. (Area = πr2, Perimeter =2πr
(b) To calculate the perimeter of a triangle by accepting the sides. (P = a + b+ c)

Que)Accept a number and check whether the number is perfect square or not. A number is
considered to be a perfect square if it can be written as a square of an integer. For example, 9
is a perfect square because 3 × 3 = 3 = 9
2

Que)The telephone department wishes to compute monthly telephone bills for its
customers using the following rules on the basis of calls mode:

Number of calls. Rate

First 80 calls. . 500/-

Next 80 calls. 1.60 paisa per call

Next 160 calls 1.50 paisa per call

Any call above 320 calls. 1.40 paisa per call

Write a program to input number of calls and compute total bill amount.

Que)Employees of a company earn the basic hourly wage of Rs.1000. In addition to this, they
also receive arears on the sales they generate while tending the counter. The arears given to
them is calculated according to the following table:
Total Sales Commission Rate
₹. 100 to less than Rs. 1000 10%
₹. 1000 to less than Rs. 10000 20%
₹ 10000 to less than Rs. 25000 30%
₹. 25000 and above 30.5%
Write a program in Python that input the number of hours worked and the total sales.
Compute the wages of the employees

Que)Write a menu driven program in Python to find the area of a rectangle(L*B), a square
(a2) and a parallelogram(b*h). For an incorrect choice, an appropriate error message should
be displayed.

Que)Write a Python program using match-case to develop a menu and based upon it perform
either of the conversions. (a) Fahrenheit to Celsius (b) Celsius to Fahrenheit

You might also like