CS 145 Lecture 12 – Relational Operators
September 30, 2015 by Chris Johnson. Filed under cs145, fall 2015, lectures.
Agenda
- what ?s
- logic
- logic in Scratch
- relational operators
TODO
- Read section 5.3. Share on a 1/4 sheet 2-3 questions, observations, or relational or logical expressions that you encounter in life.
Note
someone is eligible for Social Security
show
the batter can walk to first base
show
someone is polygamous
show
someone’s guessed the wrong number
show
someone who’s been drinking can drive legally
show
your love’s name is tattooable on your knuckles
show
a string is blank
show
a number of the format “(#)” is bigger than 100
show
Code
Relating.java
/usr/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'coderay' (>= 0) among 56 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/.gem/ruby/2.7.0:/var/lib/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0:/home/johnch/.gems', execute `gem env` for more information
from /usr/lib/ruby/2.7.0/rubygems/dependency.rb:323:in `to_spec'
from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:62:in `gem'
from ./coderay:24:in `'
Haiku
Happy birthday, Dad
I wish you’d reached a number
Greater than 60
show