Question: TASK 1 ( 1 7 pts ) [ 2 pts ] Load the data EXAM 1 DATA.mat into your script. [ 4 pts ] Define

TASK 1(17 pts)
[2 pts] Load the data EXAM1DATA.mat into your script.
[4 pts] Define a variable SCORES that is the last row in RECORD. SCORES contains the actual points scored for each game
(numerical row vector)
[4 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)
[3 pts] Someone forgot to record the actual points scored for the Superbowl! Replace the last element in the SCORES vector
with a value of 43
[4 pts] Export the variables GAMES, UTAS, GUESS, and SCORES as a .mat file named Task1.mat
TASK 2(12 pts)
[2 pts] Create a menu to select a UTA from the UTAS variable.
2pts Create a menu to select a game from the GAMES variable.
[8 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 3(16 pts)
[2 pts] Define a variable TOTAL_SCORES by summing the values in SCORES to determine the actual total number of points
scored in all the NFL playoff games combined
[2 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.
[3 pts] Define a variable TOTAL_UTAS 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
[3 pts] Create a vector named DIFF containing the absolute value of the difference between TOTAL_SCORES and TOTAL_UTAS
[4 pts] Determine the winner of the competition, where the winner is the corresponding UTA with the minimum value in DIFF
[3 pts] Create a formatted output that includes the winning UTA and their guess as shown in the sample output.
TASK 1 ( 1 7 pts ) [ 2 pts ] Load the data EXAM 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!