Conditional Logic Implementation in Carol Language
Budget: $8 – $15 USD
I need a Carol language code that implements condition checks. The conditions should include logical AND/OR checks.
The code should execute based on these checks and not include any comments.
Ideal Skills:
- Proficiency in Carol language
- Experience in implementing condition checks
- Familiarity with logical AND/OR operators in programming
2.11.2: If and if-else branches.
Write multiple if statements:
If carYear is before 1968, put "Probably has few safety features.\n" to output.
If after 1970, put "Probably has head rests.\n" to output.
If after 1991, put "Probably has anti-lock brakes.\n" to output.
If after 2001, put "Probably has airbags.\n" to output.
Ex: If carYear is 1995, then output is:
Probably has head rests.
Probably has anti-lock brakes.
The code should execute based on these checks and not include any comments.
Ideal Skills:
- Proficiency in Carol language
- Experience in implementing condition checks
- Familiarity with logical AND/OR operators in programming
2.11.2: If and if-else branches.
Write multiple if statements:
If carYear is before 1968, put "Probably has few safety features.\n" to output.
If after 1970, put "Probably has head rests.\n" to output.
If after 1991, put "Probably has anti-lock brakes.\n" to output.
If after 2001, put "Probably has airbags.\n" to output.
Ex: If carYear is 1995, then output is:
Probably has head rests.
Probably has anti-lock brakes.
Related categories:
Coding