Skip to content

Instantly share code, notes, and snippets.

@wofockham
Last active March 27, 2022 22:14
Show Gist options
  • Save wofockham/67b291148a9efb6a7138 to your computer and use it in GitHub Desktop.
Save wofockham/67b291148a9efb6a7138 to your computer and use it in GitHub Desktop.

1. Drinking age?

  • Ask the user for their age.
    • Remember that anytime you get input, it is a string, so you will need to change the age input to a number.
  • If age is less than 18, print an appropriate message.
  • If the age is equal to or over 18, print a different message.

2. Air Conditioning

  • Ask the user what the current temperature is, if the A/C is functional, and what temperature they wish it was.
    • If the airconditioner is functional and the current temperature is above the the desired temperature... display "Turn on the A/C Please"
    • If the airconditioner is non-functional and the current temperature is above the the desired temperature... display "Fix the A/C now! It's hot!"
    • If the airconditioner is non-functional and the current temperature is below the the desired temperature... display "Fix the A/C whenever you have the chance... It's cool..."

3. Suburbs

  • Create a program that asks what suburbs you live in.
  • Depending on the answer, print an appropriate response of your choosing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment