CSC 156 Spring 2025 - Homework 2 (100 pts. total)
Assigned Mon Feb 3, due Mon Feb 10
BEFORE STARTING THIS ASSIGNMENT:
Before starting the exercises given below for each section, please make sure to read each section and check your understanding (by doing the participation exercises and those additional exercises with answers provided).
FOR ALL QUESTIONS IN THIS ASSIGNMENT:
Answer the following questions and submit either in class or through the HW2 link on Moodle. *Make sure to justify your answer for all questions. Do NOT just state the answer.*
THE ASSIGNMENT:
[35 pts.] Section 1.3 Additional Exercises: #1a, 2c, 4b, 9cd, 10c
[15 pts.] Additional Question 1: Write the statement "If the program compiles, then it has no syntax errors." in three other ways. [Hint: Refer to slide 4 in the Propositional Logic (Part 2) PowerPoint.]
[35 pts.] Section 1.4 Additional Exercises: #1df, 2c, 3a, 4a, 5c, 6a
[15 pts.] Additional Question 2: Is it true that (¬P) ⊕ Q ≡ P ⊕ (¬Q)? Justify your answer using a truth table.
Last Modified: 2/3/25