Extra CreditOptional. It earns extra credit and does not count toward the five.
How often do we actually need to measure? Every reading costsstorage and I do not want to pay for readings that tell menothing new. Show me the trade.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
Wave(t) from Activity 2.16 stands in for the real world. Do not change it; it represents something you do not control. every 20: 3 samples, total error 883.2 every 10: 5 samples, total error 313.4 every 5: 9 samples, total error 82.2 every 2: 21 samples, total error 10.3 every 1: 41 samples, total error 0.0These numbers come from the straight-line guess. Look at what each halving of the step buys: the first one cuts the error by about two thirds, and the last one removes the final 10. Where it stops paying is the actual challenge.
Your requirements list and your program file, named cc-sample-rate.