Solutions we wrote in class
January 13
January 15
January 17
figure skating removing scores
remove pos, neg, zero
loan payment
January 22
cpap machine
div by 3 average using None in the function
grades B
January 24
prints list elements on separate lines
average two lists
last digit 4
January 27
exam 1 pr 1 solution
exam 1 pr 2 solution
exam 1 bonus solution
strings, lowercase, uppercase, digits
counting lowercase, uppercase, digits
counting special characters
January 29
replace "*" with "a"
read 10 strings count strings starts with uppercase letter
valid password random string
count *
replace lowercase with uppercase
January 31
date format
date format 1
change string
change string 1
Feb3
lab assignment solution
making list of strings - various options
AAA card
AMEX card validity
Feb5
change string omitting digits and swapcase
valid ZIP
len div 3
Feb 7
majors and IDs
short/long strings
Feb 10
exam 2 p1
exam 2 p2
generating 2d list, printing matrix form
div3
sum of rows
sum of columns
Feb 12
2d list of chars
count lowercase, uppercase
count a, b, c
Feb 17
GAME of Life prep
Feb 21
10-30% discount final prices
counting letters e
Feb 24
C input output int/float/double arithmetic
area,perimeter, are circle O
Feb 26
temperature conversion
printing digits
hotel total price
even/odd
positive/negative/zero
food price
Feb 28
float/double/int division
grades
digits
vitamin D
March 3
pass/fail grade
total price, items below $10
sentinel controlled repetition - evens, odds
temp average
March 5
amazon donation
airplane tickets
digits
March 7
B grade average
B grade average, total grade ave, sentinel controlled repetition
March 17
LOOP FOR sum and ave of 10 ints
LOOP FOR sum and ave of non zero ints
LOOP FOR exam 1 solution program 1
LOOP FOR exam 1 solution program 2
LOOP FOR exam 1 solution program 3
March 24 FUNCTIONS
example 1
example 2
example 3 - nested loops nXm rectangle
example 4 - menu (no parameters no return value)
example 5 - evens between 11 and 33
example 6 - random numbers
March 26 FUNCTIONS MATH AND RANDOM
ave of 3 floats
math library sqrt
math and random
average of floating inputs
March 28 FUNCTIONS MATH AND RANDOM
power function compare to math pow
March 31 characters and switch
chars counting lowercase and uppercase
chars counting digits and special chars
switch
switch in the loop
counts '*'
counts lowercase, uppercase, digits
April 2 ARRAYS
arrays
arrays
arrays
arrays
count zero, positives, neg
April 4 Character arrays and strings
lab practice solution
strings
strings count letters
April 7
non zero count
add 2 to array elements
not finished, count a b c
April 9
compare arrays
1/1+1/2+...1/n
bmi
April 11
change string
change string
April 14
loan/terms, monthly payment
sum ascii of lowercase letters
April 16
lab solution p1
lab solution p2
lab solution p3
April 21
exam pr1
exam pr2
exam pr3
two dimensional arrays
April 23
freq of 0, 1,2, 3, 4
counting non zero around (i,j)
April 28
non zero counters
count odds and replace