grades - elseif Average>=70 fprintf('You got an %f, you...

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

View Full Document Right Arrow Icon
Test1 = input('Test 1 ='); Test2 = input('Test 2 ='); Test3 = input('Test 3 ='); Test4 = input('Test 4 ='); Average=(Test1+Test2+Test3+Test4)/4; if Average >= 90 fprintf('You got an %f, you got an A! \n',Average) elseif Average>=80 fprintf('You got an %f, you got an B. \n',Average)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: elseif Average>=70 fprintf('You got an %f, you got an C \n',Average) elseif Average>=60 fprintf('You got an %f, you got an D \n',Average) else fprintf('You got an %f, you got an F. YOU FAILED \n',Average) end...
View Full Document

This note was uploaded on 10/11/2011 for the course GEN_ENG 205-1 taught by Professor Nocedal during the Fall '07 term at Northwestern.

Ask a homework question - tutors are online