CS 145 Lecture 12 – Relational Operators
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/vendor_ruby/rubygems/dependency.rb:315:in `to_specs': Could not find 'coderay' (>= 0) among 94 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/var/www/.local/share/gem/ruby/3.2.0:/var/lib/gems/3.2.0:/usr/local/lib/ruby/gems/3.2.0:/usr/lib/ruby/gems/3.2.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.2.0:/usr/share/rubygems-integration/3.2.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.2.0:/home/johnch/.gems' , execute `gem env` for more information from /usr/lib/ruby/vendor_ruby/rubygems/dependency.rb:327:in `to_spec' from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_gem.rb:57:in `gem' from ./coderay:24:in `'
Haiku
Happy birthday, Dad
I wish you’d reached a number
Greater than 60
I wish you’d reached a number
Greater than 60