Numerical Methods for Engineers, ME 325, Fall 2017 Numerical Methods for Enginee
ID: 3590391 • Letter: N
Question
Numerical Methods for Engineers, ME 325, Fall 2017 Numerical Methods for Engineers (ME 325), Hw #6 Due date and time: 10/11, 12:30 pm Hw submission instructions Please submit BOTH the script file AND the plot output, comments your seript file to explain the script. ii. You can copy your figure by figure windowEdit Copy Figure >Paste it in MS-Word. ili. Screen capture of the student work in the command window is acceptable. 1. An instructor at ME, WSU, would like to calculate the final score for each student, and class average of the each assignment and final score based on their homework, quiz, midterm/final exams. The hw, quiz, and exam data for each student are given in Table below, which are also given as a matrix variable, namely "score". The given names and scores in Table are arbitrarily chosen for the sake of hw problem). The "score( 1,1)-1", ie, the hwl score for John. You can download the hw6.mat from the Course Material, hwd6 assignment in BlackBoard, and to load the data, you need to run the Octave/Matlab command as "load hw6.mat" in the command window. The final score can be calculated using the total sum of the homework, quiz, and exams with an equal weight (a full credit will be 100). Note that all the work should be done using Octave (or Matlab) commands to receive a full credit (no credit will be given to manual caculations). The example problem and approach are given below for the reference. You may want to review the course motes, ie, Chap 02-1 Matlab/Octave Introduction and Chap 02-3 Built-in Functions in BlackBoard. (3.0 1 | Final Score | Exan(20)| Exan(20)lnom Name (10) (10) | | (10) (10) | | (10) (10) l6 10 10 l0 18 lo 20 Alice 10 16 10 10 15 10 18 12 18 20 15 17 lo Fadi Michelle7 AverageExplanation / Answer
%A
clear all;
load hw6.mat;
FinalScoreSophia = sum(score(1,:));
fprintf('Final Score for Sophia = %f ', FinalScoreSophia);
%B
clear all;
load hw6.mat;
TotalScore = sum(score(:,8));
ClassAvg = TotalScore/20;
fprintf('Class Average for Final = %f ', ClassAvg);
%C
clear all;
load hw6.mat;
max = score(:,7);
fprintf('Maximum Score for Midterm is = %d',max);
%D
clear all;
load hw6.mat;
minAvg = min([score(:,4)/20 score(:,5)/20 score(:,6)/20]);
fprintf('Minimum Class Average for Quiz = %f',minAvg);
%E
clear all;
load hw6.mat;
classTotal = sum(:,:);
classAvg = classTotal/20;
fprintf('Class Average for Total Score = %f',classAvg);
%F
clear all;
load hw6.mat;
[m,n] = size(score);
fprintf('Total Number of Students = %d',m);
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.