Question
An interpolation table is a specific instance of a lookup table which is also a practical application of indexing, in this case numeric indexes. You
An interpolation table is a specific instance of a lookup table which is also a practical application of indexing, in this case numeric indexes. You will create a computer program that uses the following lookup table (interpolation table), allows a user to input a number and calculates the answer by interpolating between 2 numbers or finds an exact solution.
The table gives the amount of total rainfall (normalized to 1) that occurred during a rainfall event. For example at hour 3, 0.6 or 60% of the total rain had fallen. You will need to create a function that allows me to enter a number between 0 and 6, and it must return the total amount of rainfall that has occurred. I must also be able to enter fractional numbers for example if i enter 4.5 it should return 0.91 by using interpolation (use standard linear interpolation https://en.wikipedia.org/wiki/interpolation ).
You can check your algorithm. If i enter 2.3, it should return 0.257 the math here is 0.11 + 0.3 * (0.6 0.11) = 0.257
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started