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
the batter can walk to first base
someone is polygamous
someone’s guessed the wrong number
someone who’s been drinking can drive legally
your love’s name is tattooable on your knuckles
a string is blank
a number of the format “(#)” is bigger than 100
Code
Relating.java
/usr/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'coderay' (>= 0) among 57 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
Comments