Areas of Rectangles - MUST BE WRITTEN PSEUDOCODE The area of a rectangle is the rectangle's length times its width. Design a program that asks for the length and width of two rectangles. The program should tell the user which rectangle has the greater area or whether the areas are the same.
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Areas of Rectangles - MUST BE WRITTEN PSEUDOCODE
The area of a rectangle is the rectangle's length times its width. Design a program that asks for the length and width of two rectangles. The program should tell the user which rectangle has the greater area or whether the areas are the same.
Begin
Read length_1,width_1 and length_2,width_2
Area_1=lenght_1*width_2
print Area_1
Area_2=length_2*width_2
print Area_2
if Area_1>Area_2
print Rectangle_1 is greater
elif Area_2>Area_1
print Rectangle_2 is grater
elif
print Rectangle_1 and Rectangle_2 have same area
End
Step by step
Solved in 3 steps with 1 images