revision python programs
revision python programs
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:
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