Forum Posts

paradox08880
Sep 26, 2022
In Java for ACSL
Hi Java For ACSL, I'm Ryan, the TA. Here's a recap of what we learned in today's class: - reviewed primitive types, arithmetic statements, and casting - learned about boolean expressions - learned about if, else if, and else statements Here’s the replit for this class: https://replit.com/@JavaForACSL/9-25-2022#Main.java And here's the homework: Taking input of a year between 0 and 3000, output if the year is a leap year or not. (A year may be a leap year if it is evenly divisible by 4. Years that are divisible by 100 (century years such as 1900 or 2000) cannot be leap years unless they are also divisible by 400.) Sample inputs/outputs: 2000: leap 2012: leap 1900: not leap 123: not leap Hint: you can have if-statements inside if-statements
0
0
12
P

paradox08880

More actions