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. Random insult generator. Create a Python file named Insult.py that does the following:
2. Fibonacci numbers. Create a file called Fibonacci.py that does the following:
How many Fibonacci numbers do you want to see? 8
Ok. The first 8 Fibonacci numbers are:
1, 1, 2, 3, 5, 8, 13, 21
Fibonacci numbers are a set of numbers that can be calculated using the following formula:
Term (x) = Term (x-1) + Term (x-2)
In addition, Term 1 = 1 and Term 2 = 1. If you look at the example output above you can see: 21 = 13 + 8, 13 = 8 + 5, 8 = 5 + 3, and so on.
There are may ways to do this task, but I am looking for you to use 3 variables to complete the operation.
3. Strategy Game. Create a file called TwentyFour.py. This is a 2 player game where the objective of the game is to be the first to sum up to 24. Each player must choose a number between 1 and 3 to add to the total. Below is a sample game: