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. It’s 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
- Spring '09
- Science, Input/output, math math=input output, return testScore