Final Assessment
Submission: Google Class Room Final Exam Folder
Instructions: Submit .ipynb and its .pdf files for the each Section.
Print your Name as the First Header Line in each file
Question 1
Write Code for the following:
Question 2
Given:
Following is the Entrance Floor measurement (Half Square Shape):
Required:
1. Write Code for each of the following Functions:
Area of a Square
Area of a Circle
Perimeter of a Square
Perimeter of a Circle
2. Add above Functions in a Module
3. Complete the given Code File
Formulae for the calculation:
2
AS = Area of a Square = Length
PS = Perimeter of a Square = 4 x Length
AC = Area of a Circle = π x Radius2
PC = Perimeter of a Circle = 2 x π x Radius
where
π = 22 / 7
Area of the Shaded Portion = ( AS – AC ) / 2
Perimeter of the Shaded Portion = ( PS + PC ) / 2