Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 TrustPilot
logo-home
Class notes

PHY3709 Assignment 1 Complete Solutions UNISA 2025 COMPUTATIONAL MODELING DUE date 25 April 2025 at 11 00 pm

Rating
1,0
(1)
Sold
2
Pages
40
Uploaded on
12-04-2025
Written in
2024/2025

PHY3709 Assignment 1 Complete Solutions UNISA 2025 COMPUTATIONAL MODELING DUE date 25 April 2025 at 11 00 pm

Content preview

PHY3709
Computational Modeling
ASSIGNMENT 1
FULL SOLUTIONS
UNISA
2025
Assessment 1 (Due date: Friday, 25
April 2025, 11:00 PM)

NAME:___________________
STUDENT NUMBER:_______
Page 1 of 40

,Page 2 of 40

,PHY3709 COMPUTATIONAL MODELING
Assessment 1 (Friday, 25 April 2025, 11:00 PM)
1.1.6 (page 6, optional)




SOLUTION

To determine the center of the circle drawn by the given program, let's analyze the
commands step by step:

1. Initial Position and Orientation:

o The program starts with the turtle at the origin point (0, 0) on the
coordinate plane, facing to the right (east direction).

2. First Command: left(90):

o The left(90) command turns the turtle 90 degrees to the left
(counterclockwise).

o After this command, the turtle will be facing upward (north direction).

3. Second Command: circle(100):

o The circle(100) command draws a circle with a radius of 100 units.

o By default, when the turtle is facing north, the circle is drawn to the left of
the turtle's current direction. This means the center of the circle will be
located 100 units to the left of the turtle's starting position before drawing
the circle.

4. Calculating the Center:

o Before drawing the circle, the turtle is at (0, 0) facing north.

o Since the circle is drawn to the left of the turtle's path, the center will be
at (-100, 0).

Final Answer:
The center of the circle is at the coordinates (-100, 0).

\boxed{(-100,\ 0)}



Page 3 of 40

, 1.1.10 (page 7, optional)




SOLUTIONS

Drawing a Rectangle in Python

Here's a simple Python program using the turtle graphics module to draw a rectangle
that's 100 units wide and 200 units tall:

python

import turtle



# Set up the turtle

screen = turtle.Screen()

pen = turtle.Turtle()



# Draw the rectangle

for _ in range(2):

pen.forward(100) # Width of 100 units

pen.left(90) # Turn 90 degrees

pen.forward(200) # Height of 200 units

pen.left(90) # Turn 90 degrees



# Keep the window open until clicked

screen.exitonclick()

Alternative Version (Using turtle's built-in rectangle function):

Python

import turtle




Page 4 of 40

Document information

Uploaded on
April 12, 2025
Number of pages
40
Written in
2024/2025
Type
Class notes
Professor(s)
Phy3709 assignment 1 complete solutions unisa 2025
Contains
Phy2602 assignment 1 complete solutions unisa 2025 electricity & magnetism

Subjects

R350,00
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Reviews from verified buyers

Showing all reviews
3 months ago

It gives me wrong answers

1,0

1 reviews

5
0
4
0
3
0
2
0
1
1
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TutorMaster27794628482 University of South Africa (Unisa)
View profile
Follow You need to be logged in order to follow users or courses
Sold
587
Member since
3 year
Number of followers
305
Documents
343
Last sold
6 days ago
Tutor-Master

Tutor-Master

4,1

60 reviews

5
33
4
13
3
7
2
0
1
7

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions