TASK 2: (20-25 min) Your field team is going to collect additional data 3 days after...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
TASK 2: (20-25 min) Your field team is going to collect additional data 3 days after the last day of previously recorded data. Prompt the user to enter the ice thickness data for this day, for all locations. Additionally, on this day a new location was found and recorded. Prompt the user to enter the new location ID and the ice data for the new location on this day. Update the Days vector with the new day, the Location ID string array with the new location, and the Ice matrix with the newly recorded data. Fill in the last column of the Ice matrix with average ice data value for each day. Save the three updated variables as MA2_Task2.mat. On the command window, output the new location ID and the average ice thickness of the new day. NOTE (avoid hardcoding): Your code should produce different results if the data in Ice changes or if the size of Ice changes (rows or columns). The final lengths of LocationID or Days should change if their starting lengths change. TASK 3: (20-25 min) Using the updated data from Task 2, determine the number of locations and total number of measurements taken. Output these two values to the command window. Determine the average ice thickness for each location and the maximum ice thickness measured for each day. Output to the command window: The location with the highest average ice thickness The maximum overall ice thickness measurement with the associated location and day The overall average ice thickness NOTE (avoid hardcoding): Your code should produce different results if Ice changes. The day and location ID should be indexed from the Days and LocationID variables based on the position of the value found in the Ice matrix. TASK 2: (20-25 min) Your field team is going to collect additional data 3 days after the last day of previously recorded data. Prompt the user to enter the ice thickness data for this day, for all locations. Additionally, on this day a new location was found and recorded. Prompt the user to enter the new location ID and the ice data for the new location on this day. Update the Days vector with the new day, the Location ID string array with the new location, and the Ice matrix with the newly recorded data. Fill in the last column of the Ice matrix with average ice data value for each day. Save the three updated variables as MA2_Task2.mat. On the command window, output the new location ID and the average ice thickness of the new day. NOTE (avoid hardcoding): Your code should produce different results if the data in Ice changes or if the size of Ice changes (rows or columns). The final lengths of LocationID or Days should change if their starting lengths change. TASK 3: (20-25 min) Using the updated data from Task 2, determine the number of locations and total number of measurements taken. Output these two values to the command window. Determine the average ice thickness for each location and the maximum ice thickness measured for each day. Output to the command window: The location with the highest average ice thickness The maximum overall ice thickness measurement with the associated location and day The overall average ice thickness NOTE (avoid hardcoding): Your code should produce different results if Ice changes. The day and location ID should be indexed from the Days and LocationID variables based on the position of the value found in the Ice matrix.
Expert Answer:
Posted Date:
Students also viewed these mechanical engineering questions
-
A test to determine whether a certain antibody is present is 99.4% effective. This means that the test will accurately come back negative if the antibody is not present (in the test subject) 99.4% of...
-
The first payroll in October covered the two workweeks that ended on September 26 and October 3. This payroll transaction has been entered for you in the payroll register, the employees' earnings...
-
Write a project management plan. we have a template and project description. we need to edit the template(table of contents) with our own ideas. CPSC 8820-01 Project Management Plan Your Unique...
-
Court Casuals has 100,000 shares of common stock outstanding as of the beginning of the year and has the following transactions affecting stockholders' equity during the year. May 18 Issues 25,000...
-
A company decides to market its products more aggressively. Current sales are 60,000 units per year and are expected to increase by 20%. Carrying costs are $0.50 per unit, and order costs are $10.00....
-
Calculate the derivative with respect to x of the other variable appearing in the equation. xy 2 + x 2 y 5 x 3 = 3
-
Consider the following investments. 1. $12,000 at the end of each of the next three years at 12 percent interest compounded annually. 2. $16,000 at the end of each of the next five years at 10...
-
Precision Manufacturing Inc. (PMI) makes two types of industrial component partsthe EX300 and the TX500. An absorption costing income statement for the most recent period is shown below: Precision...
-
V. The Market, Market justification base on the Industries Dynamics and the Macro Environmental Factors Affecting the Opportunities and Threats in the Market, The Size, Potential and Realistic Share...
-
1. Let (X, x) and (Y, y) be inner product spaces over the same field F. Prove that: (a) The map : (X x Y)2 F, defined by < (x, y), (x', y') >= < x,x' >x + < y;Y' >y is an F inner product on X x Y....
-
Suppose LIST is a linked list in memory consisting of numerical values. Write a procedure for each of following: a) Finding the maximum MAX of the values in LIST b) Finding the average MEAN of the...
-
3. A survey spacecraft has discovered a dry ancient riverbed on the northern hemisphere of Mars (S). The course of the riverbed runs north-south. It is known that Mars has radius Rm and rotates with...
-
Solve the system graphically 2x + y = -4 x + 3y = 3
-
How can remote sensing technologies and bioinformatics be leveraged to better monitor and assess biodiversity, and what are the current limitations and challenges associated with these advanced...
-
Tax Bracket $0-$13,600 $13,601 - $51,800 $51801 - $82,500 $82501-$157,500 $157,501 $200,000 $200,001 $500,000 % Rate 10 12 22 24 32 35 37 Federal Personal Income Tax Brackets and Projected Revenue...
-
you will assume the role of Chief Financial Officer of Monsanto Corporation. Bayer is considering a bid for United States seed company Monsanto. Assume that relevant tax rate is 35%. EBIT,...
-
Use critical values to test the null hypothesis H0: 1 2 = 20 versus the alternative hypothesis H0: 1 2 20 by setting a equal to .10, .05, .01, and .001. How much evidence is there that the...
-
Enter the following items in the necessary debtors accounts only; do not write up other accounts. Then balance down each personal account at the end of the month. 19X6 May 1 33 " " " 9 4 10 18 20 24...
-
Enter the following in three-column cash book. Balance off the cash Pook at the end of the month and show the discount accounts in the general ledger. 19X8 June 1 Balances brought forward: Cash 97;...
-
. Enter the following in the personal accounts only. Do not write up the other accounts. Then balance down each personal account at the end of the month. 19X8 June 1 Purchases on credit from J Young...
Study smarter with the SolutionInn App