grader - disp('You did great') disp(grade) elseif grade...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%John Wade %this is an example of this decision %input is a grade, output is pass fail % function gout = grader(grade) f if grade >=80
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: disp('You did great') disp(grade) elseif grade >=60 disp('You did ok') else disp('You failed and now suck') end...
View Full Document

This note was uploaded on 09/20/2009 for the course CIVL 3010 taught by Professor Melville during the Spring '09 term at Auburn University.

Ask a homework question - tutors are online