Conditionals
Write an if/else statement such that if variableA and variableB
are strings or numbers and they have equal values, then change the
value of answer4 to "variableA and variableB are equal" otherwise
assign a value of "variableA and variableB differ"
Functions
A zoo gives a discount for children ages 14 or under, and
seniors 65 or older. Write a function that takes
in a person's age and returns true if they qualify for a
discount. Otherwise, it should return false. Write some function
calls you would use to test your function.
Loops
In real life, there is more than one type of loop. Spend a few
minutes thinking about the different types of loops and doing some
research and write down your thoughts. What are the different types
good for? What do they require?
Conditionals Write an if/else statement such that if variableA and variableB are strings or numbers and they have equal
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am