Programming Assignment 4
Programming Assignment 4
PART ONE
1. Step1: Define the function and input parameters
#Stage 4: Test the function with opposite 3cm and adjacent 4cm.
# Test argument 1: Right triangle with opposite =3cm and adjacent =4cm
result1 = calculate_hypotenuse(3, 4)
print(result1)
Output
0.5
# Test argument 2: Right triangle with opposite =6cm and adjacent =7cm
Result2 = calculate_hypotenuse(6, 7)
print(result2)
Output
9.219544457292887
Output
30.805843601498726
PART TWO
:
Introduction
Hello, my name is Patamiah Elorm Godwin, and I am a software developer and I build things for the
web.
I am a software developer specialized in building and occasionally designing exceptional digital
experiences. Currently I am focused on building accessible, reliable and cost-effective human-
centered web applications and softwares with Code.xe Ghana.
Projects
E-commerce Website Development
Description: Developed a fully functional e-commerce website using Python and Django framework.
Implemented features such as user authentication, product catalog, shopping cart, payment gateway
integration, and order management.
Technologies used: Python, Django, HTML/CSS, JavaScript, PostgreSQL
Contributions: Led the development team, designed the database schema, implemented the
backend logic, and collaborated with frontend developers for seamless integration.
Company website
Description: Developed a fully functional company website using python, javascript framework
implemented feature such as menus, header, blog, enrollment, and employment and other useful
parts.
Technologies used: HTM/CSS, javascript, python, Django and Mysql.
Contributions: Developed the frontend interface, integrated the backend logic.
Skills
Web development
Software developer
Database
AI graphics developer
HTML/CSS
JAVASCRIPT
JAVA
C++
PYTHON
MYSQL
Experience
Code.xe Ghana- Web developer, Graphics designer, Software developer
Beulahland Christian School- Web Developer and programming instructor.
Education
UNIVERSITY OF THE PEOPLE: Computer science
BYU-IDAHO : Programming and web development
ACCRA INSTITUTE OF TECHNOLOGY: Computer engineering
VSL CONCEPTS : Web development
Contact Information
Tel: 0560477204
Email: [email protected]
LinedIn: Patamia Godwin
def calculate_average(numbers):
pass
#Calculate the sum of the numbers
def calculate_average(numbers):
total = 0
for number in numbers:
total += number
pass
def calculate_average(numbers):
total = 0
count = 0
for number in numbers:
total += number
count += 1
pass
def calculate_average(numbers):
total = 0
count = 0
for number in numbers:
total += number
count += 1
average = total / count
pass
def calculate_average(numbers):
total = 0
count = 0
for number in numbers:
total += number
count += 1
average = total / count
return average