Question: 1 Aim 1. Write a Python program to read the length and breadth of 1 rectangle. Calculate the area of the rectangle as: length breadth

 1 Aim 1. Write a Python program to read the length

1 Aim 1. Write a Python program to read the length and breadth of 1 rectangle. Calculate the area of the rectangle as: length breadth If the area is less than 60sq.m and breath is less than 10, print "Small rectangle If the area is between 60sq.m and 500 sq.m, and length is more than 20, then print 'Long Rectangle. Else print "Normal 2. Write a Python program to accept 2 numbers. If both the numbers are even, calculate the square of number 1 using pow() method and cube of number 2 using exponent operator. If both the numbers are odd, calculate their product. If any one number is even, calculate their difference. Procedure 1. Read the length and breadth of 1 rectangle. Calculate the area. Check the conditions according to the question and print the answer. 2. Get two numbers a,b from the user. Check the conditions in the question and perform the calculations accordingly. 1. Sample Output: Enter length: 30 Enter breadth: 10 Area: 300 sq.m Long Rectangle 2. Enter number 1:7 Enter number 2: 9 Both numbers are odd. Product = 63

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!