




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Today ...
Homework
Reading Assignment
The CS lab guide
The computers run the Linux (CentOS) operating system
Login using GU userid and password
Basic file management
Double-click on the IDLE 3.2 desktop icon
IDLE includes a simple code editor
Printing
Don’t forget to logout!
By convention, the first program written when learning a new langauge
print("Hello World!") Hello World!
Exercise:
Notes:
Consider the following two statements
x is y such that y^2 = x for y ≥ 0
x, make a guess g, improve the guess by averaging g and x/g, and continue until g is good enough
What type of knowledge do each of these represent?
The procedure in Python ... def square_root(x, d): g = 1 # not a great guess for i in range(1, d): g = (g + (x/g))/ return g
Computation is a process for performing certain tasks
Computation is directed by a series of instructions