Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Your program should do the following Here is a sample of execution. Enter studen

ID: 3560287 • Letter: Y

Question

Your program should do the following

Here is a sample of execution.

Enter student grade in CS105: 70

Enter student grade in CS221: 80

Enter student grade in CS231: 90

Do you want to insert another student Information (1 for yes and 0 for No)? 1

Enter student grade in CS105: 60

Enter student grade in CS221: 50

Enter student grade in CS231: 40

Do you want to insert another student Information (1 for yes and 0 for No)? 0

Number of Students is: 2

Average for the course CS221 is: 70

Student that got more than the average in the course CS 221:

Student 1 he got: 85

Explanation / Answer

clc;
clear all;
n=1;
while true
x(n)=input('Enter student grade in CS105:');
y(n)=input('Enter student grade in CS221:');
z(n)=input('Enter student grade in CS231:');
  
c=input('Do you want to insert another student Information (1 for yes and 0 for No)?:');
if c==0
break;
else
n=n+1;
end
end
fprintf('Number of Students is: %d ',n);
update_y=y+5;
avg_y=mean(update_y);
fprintf('Average for the course CS221 is: %0.2f ',avg_y);
fprintf('Student that got more than the average in the course CS 221: ');
for i=1:n
if y(i)>avg_y
fprintf('Student %d he got: %d ',i,y(i));
else
end
end