Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ DEADLINE 1.02.2021 13:45 Closed after deadline B ASSESSMENT SCALE Max. score 25 Assignment A scientist has developed a mathematical model for a physical process,

image text in transcribed
c++
image text in transcribed
DEADLINE 1.02.2021 13:45 Closed after deadline B ASSESSMENT SCALE Max. score 25 Assignment 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 of 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 (testModel) and finally the results of each test according to experiments as a double array (testExperiment). Then, the program should calculate the error of the model by evaluating the average of the absolute values (le, mutlak deger) of the differences between the model result and experimental result (see formula below) using a function Error testModel, - textExperiment, testCount NOTE: Individual absolute value 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 the absolute value of a number you MAY use the abs function. NOTE testCount will always be a positive integer whose value will be at most 40. NOTE: The sizes of both testModel and testExperiment arrays will always be equal to testCount. testCount 11 8 5 3 3.5 2.3 5.6 7.1 10.3 32.1 124.4-0.7 Input 92644 56 45 92 11 3756 51 48 100 2.5 1.9 7.2 9.1 10.3.33.1 165.2 0.7 Output 1.4 5.3333 5.75 Answer assignment >> Collapse sidebar DE 1.02.2 Closed Max se Assignment 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 of 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 (testModel) and finally the results of each test according to experiments as a double array (testExperiment). Then, the program should calculate the error of the model by evaluating the average of the absolute values (ie, mutlak deger) of the differences between the model result and experimental result (see formula below) using a function testCount Error testCount ItestModel, textExperiment, NOTE: Individual absolute value 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 the absolute value of a number you MAY use the abs function. NOTE testCount will always be a positive integer whose value will be at most 40. NOTE: The sizes of both testModel and testExperiment arrays will always be equal to testCount. 8 5 3 3.5 2.3 5.6 7.1 10.332.1 124.4-0.7 Input 56 45 92 92644 113756 51 48 100 2.5 1.9 7.2 9.1 10.3 33.1 165.2 0.7 Output 1.4 5.3333 5.75 Answer assignment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions

Question

=+7 How has the COVID-19 pandemic impacted the operations of IHRM?

Answered: 1 week ago