Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

How should Grandview go about implementing a global PM system?

Answered: 1 week ago

Question

How to solve maths problems with examples

Answered: 1 week ago

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago