The final exam is on Tuesday 3 May 2016 from 8AM till 10AM in BSB 389.
Course Content
Catalog description:
Computer literacy, number systems, concepts of operation systems,
storage, files, databases, logic gates, circuits, networks, internet.
Introduction to programming in Python, variables, assignments,
functions, objects.
The text books for this course are optional:
- J. Glenn Brookshear: Computer Science. An Overview,
9th edition, Addison-Wesley, 2009 (or later edition).
- Bradley N. Miller and David L. Ranum:
Python Programming in Context, Jones and Bartlett, 2009
(first or second edition).
Slides of the lectures and Python code will be posted below.
To save space, slides are gradually removed.
- L-1 Mon 11 Jan 2016:
welcome to MCS 260
- L-2 Wed 13 Jan 2016:
computer architecture,
getting started with Python, number systems
our first Python scripts hello.py
and hello_there.py
- L-3 Fri 15 Jan 2016:
machine architecture;
using Python as a calculator
- L-4 Wed 20 Jan 2016:
variables and assignments;
developing Python programs
a Python program yieldbal.py
- L-5 Fri 22 Jan 2016:
Operating Systems; Turtle Graphics
with Python scripts
spiral1.py,
spiral2.py, and
turtlecolors.py
- L-6 Mon 25 Jan 2016: languages;
strings, lists, and tuples
- L-7 Wed 27 Jan 2016: mass storage;
dictionaries in Python
with Python scripts
mileage.py and
miletab.py
- L-8 Fri 29 Jan 2016: Boolean algebra;
flowcharts; conditional constructs in Python
with Python scripts
passfail.py,
gradecurve.py, and
followup.py
- L-9 Mon 1 Feb 2016: transistors and logic
gates; intrinsic operations on numbers and strings
with Python scripts
alphatest.py and
write_numbers.py
- L-10 Wed 3 Feb 2016: flip-flops and
registers; intrinsic operations on lists, queues, stacks
with Python scripts
sortwords.py,
write_values.py, and
hanoi3.py
- L-11 Fri 5 Feb 2016 adder circuits;
loop constructs: the while and for; estimating pi
with Python scripts
showbal.py,
showfor.py,
gcd.py, and
traprule.py
- L-12 Mon 8 Feb 2016 simulation using
random numbers; binary expansion, repeat until: break
with Python scripts
randuse.py,
mc4pi.py,
binexp1.py,
binexp1b.py,
binexp1c.py, and
findelem.py
- L-13 Wed 10 Feb 2016 top down design
of programs; functions in Python
with Python scripts
npdf.py,
use_npdf.py, and
simuwait.py
- L-14 Fri 12 Feb 2016 local and global
variables; arguments of functions; functions using functions
with Python scripts
global.py,
votes0.py,
votes1.py,
votes2.py,
area.py,
area2.py, and
traprule2.py
- L-15 Mon 15 Feb 2016 lambda forms and
list comprehensions
with Python scripts
oracle.py,
evalshow.py,
calculator.py,
mc4pi2.py, and
mc4pi3.py
- L-16 Wed 17 Feb 2016 organizing,
manipulating files, and modules
with Python scripts
bkform.py and
library.py
- L-17 Fri 19 Feb 2016 working with files;
format conversions
with Python scripts
bkform2list.py,
bkform2dict.py,
scramvow.py,
cntword.py,
repword.py, and
locword.py
- L-18 Mon 22 Feb 2016 networking and
the internet; markup languages
with Python scripts
forecast.py and
showtime.py
- L-19 Wed 24 Feb 2016 review
for the computer literacy part of the midterm exam
and review
for the Python scripting part of the midterm exam.
Answers are here
and there.
- L-20 Fri 26 Feb 2016 midterm exam 1:
version (a)
with answers
and version (b)
with answers
- L-21 Mon 29 Feb 2016 software
engineering and modular design
Python code:
stack_data.py,
stack_of_data.py,
stack_of_data_io.py, and
stack_user.py
- L-22 Wed 2 Mar 2016 modular design;
software cyclic and quality
Python code:
quand.py,
questions.py,
dialogue.py, and
quiz.py
- L-23 Fri 4 Mar 2016 software licensing;
modules and packages
- L-24 Mon 7 Mar 2016 object-oriented design;
object-oriented programming in Python
the class definitions:
classbook.py,
classperson.py,
classcatalog.py,
classpeople.py,
and the main program:
libclassman.py
- L-25 Wed 9 Mar 2016 operator
overloading
Python code:
flopfloats.py,
flopsum.py, and
quaternion.py
- L-26 Fri 11 Mar 2016 encapsulation
and inheritance; polymorphism and wrapping
Python code:
classpoly.py,
classpoint.py,
classcircle.py,
pointcircle.py,
spirbot.py, and
orbiting.py
- L-27 Mon 14 Mar 2016 software testing
and verification
Python code:
useassert.py
- L-28 Wed 16 Mar 2016 exceptions
Python code:
ratraise.py,
readfilename.py,
readfilename1.py,
readfilename2.py,
readfilename3.py,
cntrlc.py,
estimpi.py, and
anytimepi.py
- L-29 Fri 18 Mar 2016 complexity and
cost
Python scripts:
sortrandnumb.py,
timetosort.py,
time_iftry.py,
time_sin.py,
time_filework.py, and
time_listcomp.py
- L-30 Mon 28 Mar 2016 graphical user
interfaces
Python scripts:
sliding_puzzle.py,
guihello.py,
guihello2.py,
usegrid.py,
guiradio.py,
guicheck.py, and
mousedraw.py
- L-31 Wed 30 Mar 2016 expression evaluation;
graphing on canvas
Python scripts:
dyneval.py,
guieval.py,
guievaloo.py,
samplefun.py,
guisample.py, and
arrowkeys.py
- L-32 Fri 1 Apr 2016 scale widgets
and animations
Python scripts:
rgbgui.py,
showscale.py,
exscale0.py,
exscale1.py,
exscale2.py,
slidedot.py, and
movedot.py
- L-33 Mon 4 Apr 2016 class
hierarchies
class definitions:
class_point.py,
class_line.py,
class_showpoint.py,
class_showline.py,
class_parabola.py, and
class_showparabola.py
- L-34 Wed 6 Apr 2016 cellular automata
Python scripts:
game.py and
life.py
- L-35 Fri 8 Apr 2016 multithreaded
programming
Python scripts:
hello_threads.py,
hello_threading.py,
class_producer.py,
class_consumer.py, and
prodcons.py
- L-36 Mon 11 Apr 2016 predator-prey
simulations
Python scripts:
class_frog.py,
class_threadfrog.py,
draw_frogs.py,
frog_pond.py, and
flying_birds.py
- L-37 Wed 13 Apr 2016 review
problems for the second midterm exam
- L-38 Fri 15 Apr 2016 the second midterm exam:
version (a)
with answers
and version (b)
with answers
- L-39 Mon 18 Apr 2016 network
programming
Python scripts:
tcp_server.py,
tcp_client.py,
dealer.py, and
player.py
- L-40 Wed 20 Apr 2016
high level parallel processing
Python scripts:
hello_multiprocess.py,
mc4pi2.py,
mc4pi_client.py, and
multiprocess4pi.py.
- L-41 Fri 22 Apr 2016 generators,
recursion, and fractals
Python scripts:
fibnum.py,
show_yield.py,
fibyield.py,
factorial.py, and
cantor.py
- L-42 Mon 25 Apr 2016 review of the
computer literacy part of the course
Python script:
literacy.py, a Python dictionary
with computer literacy terms.
- L-43 Wed 27 Apr 2016 review of Python
programming
- L-44 Fri 29 Apr 2016 review for the
final exam
Python scripts:
password.py,
loops.py, and
riddle.py
The final exam on Tuesday 3 May 2016 from 8AM till 10AM in BSB 389.