Class 6 – Monday, September 10

Fearlessly we march on — strings and input

A sign for knowing — what the future asks of us — demands we act now


Look both ways


Form


Agenda


Examples


Enquiring minds want to know


Homework requirements


In-class homework requirements



Program dateable.py — due Monday September 10

For example, an 18 year old needs to date somebody at least 16 year's old (i.e., 7 + ( 18 / 2 ) ).

  Enter your age (integer): 19

  19 year olds should date somebody who is at least 16 years old

  Enter your age (integer): 22

  22 year olds should date somebody who is at least 18 years old

  Enter your age (integer): 88

  88 year olds should date somebody who is at least 51 years old


Program all_consuming.py — due Wednesday September 12

What is something you consume daily? slices of cheese

Enter slices of cheese consumed on a normal weekday: 4

Enter slices of cheese consumed on a normal weekend day: 12

You consume 2288 slices of cheese per year.

What is something you consume daily? paper napkins

Enter paper napkins consumed on a normal weekday: 6

Enter paper napkins consumed on a normal weekend day: 0

You consume 1560 paper napkins per year.



To do list

 


 

 

 
   
   
   
 
  © 2019 Jim Cohoon   Resources from previous semesters are available.