Question: Practice Assignment Ch . 5 B - 2 Work in groups of two ( online students work on your own ) . You will write
Practice Assignment ChB Work in groups of two online students work on your own You will write a program that will calculate the area of a square based on a randomly generated integer to be used as the side. Person write the main function which will: Generate a random integer between and which will be the side of the square Pass that number to called functions called squarearea and squareperimeter. Display the side, the returned area, and the returned perimeter. Person in a separate file called square.py: Define a function called squarearea which will accept the side from main, calculate the square area, and returns it to main. Define a function called squareperimeter which will accept the side from main, calculate the square perimeter, and return it to main. Turn in your py files to the practice assignment link in course content
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
