[go: up one dir, main page]

0% found this document useful (0 votes)
42 views2 pages

Python-Final Exam

The document outlines the final assessment submission requirements, including the need to submit .ipynb and .pdf files with the student's name as the first header line. It presents two questions: the first requires writing code, while the second involves calculating the area and perimeter of squares and circles, and adding these functions to a module. Specific formulae for calculations are provided, including those for the area and perimeter of both shapes.

Uploaded by

Atiya Falak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

Python-Final Exam

The document outlines the final assessment submission requirements, including the need to submit .ipynb and .pdf files with the student's name as the first header line. It presents two questions: the first requires writing code, while the second involves calculating the area and perimeter of squares and circles, and adding these functions to a module. Specific formulae for calculations are provided, including those for the area and perimeter of both shapes.

Uploaded by

Atiya Falak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like