Conditionals Write an if/else statement such that if variableA and variableB are strings or numbers and they have equal

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Conditionals Write an if/else statement such that if variableA and variableB are strings or numbers and they have equal

Post by answerhappygod »

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?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply