>>> tts() (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the max price and its day (5) Find the min single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 0 Enter a new list of prices: [40,10,20,55,25] (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the max price and its day (5) Find the min single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 1 Day Price --- ----- 0 40.00 1 10.00 2 20.00 3 55.00 4 25.00 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the max price and its day (5) Find the min single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 3 The average price is 30.0 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the max price and its day (5) Find the min single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 4 The max price is 55 on day 3 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the max price and its day (5) Find the min single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 6 Enter the threshold: 45 There is at least one price above 45 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the max price and its day (5) Find the min single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 6 Enter the threshold: 60 There are no prices above 60 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the max price and its day (5) Find the min single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 7 Buy on day 1 at price 10 Sell on day 3 at price 55 Total profit: 45 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the max price and its day (5) Find the min single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 0 Enter a new list of prices: [40,10,20,55,25,30] (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the max price and its day (5) Find the min single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 5 The min single-day change occurs on day 5 when the price goes from 25 to 30 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the max price and its day (5) Find the min single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 8 See you yesterday!