Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code has already been provided to define a function named examstats that receives column vectors of student test scores for three different exams as inputs

Code has already been provided to define a function named examstats that receives column vectors of student test scores for three different exams as inputs into three variables: exam1scores, exam2scores, and exam3scores. The position of each individual student's score is consistent through the three input vectors (e.g. the score for student number 5 is the fifth element in each of these vectors). Add code to this function to do the following:
Compute the mean test score for each student (i.e. the average of the student's three scores) and assign these values as a column vector to the output variable named studentMeans.
Use the appropriate built-in function to compute the mean score for each exam and assign these three values to a row vector named exammeans with the mean scores for exams 1,2, and 3 as the first, second, and third elements respectively.
Use the appropriate built-in function to compute the standard deviation for each exam and assign these three values to a row vector named examstDev with the results for exams 1,2, and 3 as the first, second, and third elements respectively.
Solve this problem using vectorized code (i.e. do not use a loop in your solution). Note the variables exam1scores, exam2Scores, and exam3scores are assigned values as function inputs. Do not overwrite these values in your code.
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions