ChatBot: I created a program that asks you questions and records your answers. We were supposed to create something where the chatbot just asked you more questions, without caring what your answer was. I kind of added functions and if statements to my chatbot, which I shouldn't have done, but this is what my chatbot looked like:
Magic 8 Ball: We did this to learn if else statements. This made a random number between 1 and 100, and then we split it up into cases where bigger numbers mean better things.
Grader: We did this to learn elif statements. Elif is a more efficient way to write a lot of if statements. For example, the Magic 8 Ball could be much more efficient if we just used one if statement and a lot of elif statements instead of if else statements. We also kind of learned casting with the int() function.
Calculator: This was also a project to practice our elif coding. The if elif part was to look through all of the possible operators.
If elif practice: We did this to practice our if elif skills. We had a slide with a lot of problems to solve with if elif statements.
Age category: You input your age and it tells you what group of people you are.
Ticket pricing: You input your age and it gives you what price your ticket is.
Day of the week: You input a counting number between 1 and 7 and it gives you the corresponding day.
More efficient day of the week: Same thing, but using a list
Weather clothing advice: You input a weather and it gives you (very bad) advice.
Number guessing: You guess a number.
Rock Paper Scissors: You play against the computer.
Quadratic equation solver: You input a quadratic, and it solves it for you (only real roots)