Question: write the program in c++ Terce A scientist has developed a mathematical model for a physical process, and he wants to check how good is
Terce A scientist has developed a mathematical model for a physical process, and he wants to check how good is model is. To evaluate the correctness o his model, he wants to test the results of his model under certain parameters and compare them with experimental results. Write a program that first reads the number of tests (testCount) as an int followed by the results of each test according to the model as a double array(test Model) and finally the results of each test according to experiments as a double accay (testExperiment. Then, the program should calculate the error of the model by evaluating the average of the squares of the differences between the model result and experimental result isee formula below) using a function (test Model - textExperiment.) testCount NOTE: Individual square of the difference between the model value and the experiment value calculations MUST be done in the function. Every other functionality MUST be done in the main function NOTE: To calculate square of a number you MAY use the paw function within cmath library NOTE testCount will always be a positive integer whose value will be a most so. NOTE The sizes of both test Model and testExperiment arrays will always be equal to testCount Error 7 5 3 3.5 2.3 5.6 7.1 1033.0 2.1 Input 12344 23356 56 45 92 51 48 100 25.197.29.110.33.0 3.1 Output 1.4 32.6667 1.24571
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
