This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: output what is math math=input output what is reading rdg=input output what is English English= input Output what is science Science= input testScore=calculateACT(math, reading, English, science) return testScore double calculateACT(math, reading, English, science) testScore=equation for ACT return testScore double calculateSAT(math, reading, writing) testScore=equation for SAT return testScore double findTotalScore(gpa, testscore) totalscore=gpa+testscore return total score greaterThan(totalScore1,totalScore2) if totalscore1>2 applicant one is better else if totalscore2>totalscore1 applicant 2 is better else they are equal this was a quick algorithm. Its not perfect. Make sure to reference the cheat sheets on how to properly write methods with returns/if else statements. Also there are lectures online and the book if you get stuck. GOOD LUCK!!!!...
View Full Document
This note was uploaded on 11/05/2009 for the course HSTAA 401 taught by Professor Conway during the Spring '09 term at University of Washington.
- Spring '09