Assignment 3

Carson Alonzo | Web Client Applications

Give four examples of OR from daily life illustrating the four cases of true or false, false or true, true or true, and false or false. (Do not give an example of an if-then statement from daily life, and its contrapositive. Do not explain why you agree or disagree that the two if-then statements say the same thing.)

  1. Ordering food from Pizza Hut: Medium Pepperoni Pizza and Chicken Alfredo
  2. Putting Money in Banking Accounts
  3. Friend's Night: Movies or Video Games
  4. What am I getting from Best Buy during Black Friday?

(2) Using JavaScript, write code that will print 5 lines: one for each row of the truth table for OR, plus a line containing the column labels.

(3) Using JavaScript, write code that will print 5 lines: one for each row of the truth table for AND, plus a line containing the column labels.

(4) What is the integer value of an 8-bit byte containing the following bit sequences?

(5) Answer these bitwise operator questions

(6)

What is the minimum score on a HW assigment in this course?

50 points

(7)Pick option a, b or c.

a. Build more interesting buttons! Add them to your growing collection or, if you prefer, make this a new program without earlier buttons. The buttons should demo the the bitwise logic operators in the w3schools lesson (https://www.w3schools.com/js/js_bitwise.asp), explaining each operator, as well as demo questions (2), (3) & (4) above.