Solving Java If/Else Statements Questions - GWCVP Coding Tutorial

Опубликовано: 20 Июнь 2026
на канале: Girls Who Code Victoria Park
0

Problem 1: Check if an integer is even or odd. Check if an integer is divisible by 5

Problem 2: CCC '11 J1 - Which Alien?
Canada Cosmos Control has received a report of another incident. They believe that an alien has illegally entered our space. A person who witnessed the appearance of the alien has come forward to describe the alien's appearance. It is your role within the CCC to determine which alien has arrived. There are only 3 alien species that we are aware of, described below:

TroyMartian, who has at least 3 antennae and at most 4 eyes;
VladSaturnian, who has at most 6 antennae and at least 2 eyes;
GraemeMercurian, who has at most 2 antennae and at most 3 eyes.

Problem 3: Create a program that finds the maximum range of a triangle's third edge, where the side lengths are all integers

0:00 - Intro
0:27 - If/Else Statements
1:46 - Logical Operators
4:50 - Double = Sign
6:30 - Problem 1
11:30 - Problem 2 Quick Note
12:36 - Problem 2
22:29 - Problem 3 Triangle Inequality Theorem
24:45 - Problem 3 Code

If you have any requests of subjects to cover or feedback to give us, feel free to put them in the comments!

Using:
Java version 7+
IntellijIDE