CS 145 Lecture 12 – Relational Operators


  • what ?s
  • logic
  • logic in Scratch
  • relational operators


  • Read section 5.3. Share on a 1/4 sheet 2-3 questions, observations, or relational or logical expressions that you encounter in life.


  1. someone is eligible for Social Security
  2. the batter can walk to first base
  3. someone is polygamous
  4. someone’s guessed the wrong number
  5. someone who’s been drinking can drive legally
  6. your love’s name is tattooable on your knuckles
  7. a string is blank
  8. a number of the format “(#)” is bigger than 100



/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 `


Happy birthday, Dad
I wish you’d reached a number
Greater than 60


Leave a Reply

Your email address will not be published. Required fields are marked *