Below are 3 tasks about programming. Choose 2 tasks to implement in Python. You will create a flowchart describing how you would solve the 3rd task.
1. Write a program to take the square root of a number typed in by the user. Your program should use a loop to ensure that the number they typed in is positive. If the number is negative, you should print out some sort of warning and make them type it in again.
2. Collatz Sequence
Take any natural number n.
In 1937, Lothar Collatz proposed that no matter what number you begin with, the sequence eventually reaches 1. This is widely believed to be true, but has never been formally proved.
Write a program that inputs a number from the user, and then displays the Collatz Sequence starting from that number. Stop when you reach 1.
3. Make a short "Choose Your Own Adventure" game. The starting location should give the user two destination choices and one or two action choices. Each room thereafter should give the user two destination choices and one or two action choices (pick up items, open/close things, turn on/off objects, etc.).
There need to be at least six destinations, and at least two different ways for the game to end.
You will need to use a loop so that they can freely move from destination to destination and back again.