Course and Reading Material

One Dimensional Lists

MINI Quiz 1

How to use file make_list


make_list.py
How to use file make_list

TEST 1 Preparation, Test 1 will be on Friday, January 30

Homework - Due Monday

Test 1

Write a program and send by e-mail to yanako@cs.widener.edu
Test 1

Formating floating point: b=float("{0:.2f}".format(a))

STRINGS


Strings in Python
Example 1

Lists and Strings Practice


Practice 1
Practice 2
Practice 3
Practice 4

Mini Quiz 2

Two Dimensional Lists

List initialization:

Option 1:
a = [[ 0 for i in range(COL)] for j in range(ROW)]
The above line will create a list of ROW rows and COL columns and assign value 0 to each element

Option 2

Test 2: Friday Feb 20.


Part I - 1 problem, 25 points, to write input/output, material, 1-D Lists, 2-D Lists, and Strings
Part II - 1 writing program question. You would need to write several functions and main. Material 1-D Lists and Strings

Test 2 Preparation Example: Write a program that asks user to enter the number of family members with Facebook account, their names, and the number of hours they spend on Facebook per day during the weekdays. The program finds the total number of hours per family member and the family member who spend the most time on Facebook. Store hours in 2-d list. One rows stores hours for one family member. The number of rows is the number of family members, the number of columns is 5 in our example (there are 5 weekdays). Store family names in additional 1-d list.


2D Lists examples

Test 2

Test 2 Friday Feb 27 preparation example

test 2 prep solution

Test 3 - Friday Feb 27



Part II of the course: Programming with C

Course material for Programming with C



Mini Quiz 1

Mini Quiz 1

Test 1 C

TEST 1


Test 2 C

TEST 2 C




Optional Homework - NO CLASS ON FRIDAY April 17 Homework Due Day Monday April 20

Homework

Last Mini Quiz Friday May 1

Mini Quiz