Question: TASK 1 ( 1 7 pts ) [ 2 pts ] Load the data EXAM 1 DATA.mat into your script. [ 4 pts ] Define
TASK pts
pts Load the data EXAMDATA.mat into your script.
pts Define a variable SCORES that is the last row in RECORD. SCORES contains the actual points scored for each game
numerical row vector
pts Define a variable GUESS that excludes the last row in RECORD. GUESS contains the total score guessed for the
corresponding UTA and game numerical matrix
pts Someone forgot to record the actual points scored for the Superbowl! Replace the last element in the SCORES vector
with a value of
pts Export the variables GAMES, UTAS, GUESS, and SCORES as a mat file named Taskmat
TASK pts
pts Create a menu to select a UTA from the UTAS variable.
Create a menu to select a game from the GAMES variable.
pts For the selected UTA and game, create a formatted output that includes the TA name, the game, the corresponding
guess, and the actual points scored as shown in the sample output
TASK pts
pts Define a variable TOTALSCORES by summing the values in SCORES to determine the actual total number of points
scored in all the NFL playoff games combined
pts Create a formatted output for the actual total number of points scored in all the NFL playoff games combined as shown
in the sample output.
pts Define a variable TOTALUTAS by summing the rows in GUESS to create a vector containing the total number of points
guessed by each UTA for all the NFL playoff games combined
pts Create a vector named DIFF containing the absolute value of the difference between TOTALSCORES and TOTALUTAS
pts Determine the winner of the competition, where the winner is the corresponding UTA with the minimum value in DIFF
pts Create a formatted output that includes the winning UTA and their guess as shown in the sample output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
