Python programming A programmer writes a program to calculate a stock indexand incorrectly truncates the indexafter 2
Fantastic news! We've Found the answer you've been seeking!
Question:
Python programming
A programmer writes a program to calculate a stock indexand incorrectly truncates the indexafter 2 decimal places, rather than usingcorrect rounding. In other words a stock valueof 1000.54321 is replaced by 1000.54.
The program is applied in an automated trading program whichrecalculates the stock index everyminute during the normal tradinghours (10am to 4pm) forthe 250 trading days in a year.
Write a Python program to estimate the error in the resultingestimate of the index.
The output from your program should look like this:
Related Book For
Probability And Statistics
ISBN: 9780321500465
4th Edition
Authors: Morris H. DeGroot, Mark J. Schervish
Posted Date: