Question: The below is using Python programming Crypto-currencies are getting crazier by the day. Your friend Anders hopes to make sense out of the daily rate

The below is using Python programming

Crypto-currencies are getting crazier by the day. Your friend Anders hopes to make sense out of the daily rate of USD to a Bitcoin sampled once at 12pm every day. Help him write a program for some simple analysis according to the following tasks. Read in the (sampled) daily rate in a 5-day period and store them in a list o Include input data validation to check if the input is a positive number. In case of error, print a suitable message and ask the user to re-enter. Add code to print the maximum, minimum, and average daily-rate Add code to print advice of "BUY", "HOLD" and "SELL" according to the following rules conceived by Anders based on the daily rate on the last day (i.e.,day 5).

The below is using Python programming Crypto-currencies are getting crazier by theday. Your friend Anders hopes to make sense out of the daily

Advice BUY Condition The day 5 rate is more than 20% below the average The day 5 rate is more than 20% above the average Otherwise SELL HOLD Enter Bitcoin rate of day 1 (USD): 43000 Enter Bitcoin rate of day 2 (USD): 45000 Enter Bitcoin rate of day 3 (USD): 46000 Enter Bitcoin rate of day 4 (USD): 42000 Enter Bitcoin rate of day 5 (USD): 38000 The highest rate is 46000.0 The lowest rate is 38000.0 The average rate is 42800.0 HOLD

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!