sec00_netid_PROJ02

sec00_netid_PROJ02 - %Aakash Shah %aakashs %Section 03

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %Aakash Shah %aakashs %Section 03 A=xlsread('studentGrades'); %Student 1 fprintf('STUDENT 1: \n'); PSgrade=0; PROJgrade=0; RECQgrade=0; for x=1:5 if isnan(A(1,x))==0 PSgrade=PSgrade+A(1,x); end end fprintf('PS Grade: %.3f \n',PSgrade) for k=6:8 if isnan(A(1,k))==0 PROJgrade=PROJgrade+A(1,k); end end fprintf('PROJ Grade: %.3f \n',PROJgrade) for l=12:15 if isnan(A(1,l))==0 RECQgrade=RECQgrade+A(1,l); end end fprintf('RECQ Grade: %.3f \n',RECQgrade) if isnan(A(1,16))==0 Attendance=A(1,16); end fprintf('Attendance Grade: %.3f \n',Attendance) if isnan(A(1,9))==0 Examgrade=A(1,9); end fprintf('Exam01 Score: %.3f \n',Examgrade) total1=0; grade1=0; for x=1:5 if isnan(A(1,x))==0 grade1=grade1+A(1,x); total1=total1+2; end end for k=6:8 if isnan(A(1,k))==0 grade1=grade1+A(1,k); total1=total1+5; end end if isnan(A(1,9))==0 grade1=grade1+(A(1,9))*.15; total1=total1+15; end if isnan (A(1,10))==0 grade1=grade1+(A(1,10))*.20; total1=total1+20; end if isnan (A(1,11))==0 grade1=grade1+(A(1,11))*.30; total1=total1+30; end for l=12:15 if isnan(A(1,l))==0 grade1=grade1+A(1,l); total1=total1+1.25; end end if isnan(A(1,16))==0 grade1=grade1+A(1,16); total1=total1+5; end Exam1=A(1,9)*0.15; fprintf('Exam 1 Percentage towards overall grade is %.3f \n',Exam1); if isnan (A(1,10))==1 Exam2Min=((0.75*35)-Exam1)/(0.20); fprintf('Lowest possible EXAM02 grade (to drop lowest PS and RECQ grades): %.3f \n',Exam2Min); end fprintf('Student 1 grade is %.3f out of %.3f \n', grade1, total1); NumericalGrade=grade1/total1; if NumericalGrade >=.90 fprintf('Numerical grade is: %.f Letter grade is: A \n',NumericalGrade) elseif NumericalGrade >=.85 fprintf('Numerical grade is: %.3f Letter grade is: B+ \n',NumericalGrade) elseif NumericalGrade >=.80 fprintf('Numerical grade is: %.3f Letter grade is: B \n',NumericalGrade) elseif NumericalGrade >=.75 fprintf('Numerical grade is: %.3f Letter grade is: C+ \n',NumericalGrade) elseif NumericalGrade >=.70 fprintf('Numerical grade is: %.3f Letter grade is: C \n',NumericalGrade) elseif NumericalGrade >=.60 fprintf('Numerical grade is: %.3f Letter grade is: D \n',NumericalGrade) else fprintf('Numerical grade is: %.3f Letter grade is: F \n',NumericalGrade) end fprintf('\n'); %Student 2 fprintf('STUDENT 2: \n'); PSgrade=0; PROJgrade=0; RECQgrade=0; for x=1:5 if isnan(A(2,x))==0 PSgrade=PSgrade+A(2,x); end end fprintf('PS Grade: %.3f \n',PSgrade) for k=6:8 if isnan(A(2,k))==0 PROJgrade=PROJgrade+A(2,k); end end fprintf('PROJ Grade: %.3f \n',PROJgrade) for l=12:15 if isnan(A(2,l))==0 RECQgrade=RECQgrade+A(2,l); end end fprintf('RECQ Grade: %.3f \n',RECQgrade) if isnan(A(2,16))==0 Attendance=A(2,16); end...
View Full Document

This note was uploaded on 03/30/2011 for the course ENGINEERIN 127 taught by Professor Finch during the Spring '08 term at Rutgers.

Page1 / 8

sec00_netid_PROJ02 - %Aakash Shah %aakashs %Section 03

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online