In Week 3, we explored how to make programs respond differently depending on certain conditions.
Topics covered: • Boolean values (true and false) • Comparison operators (==, !=, <, >, <=, >=) • Logical conditions • if statements • if-else statements • else-if statements • Using conditions with user input through Scanner • Comparing Strings using .equals()
By the end of the session, students were able to write programs that make decisions based on user input and different conditions.
Practical exercises included building a Ticket Checker and a Shop Discount Calculator.