{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

cs - output what is math math=input output what is reading...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Make a method for every function (ACT score converter, SAT score converter, GPA score converter) Make a method for each part (i.e., method for ACT, method for SAT, GPA, Intro text outputs) Example: Introduction() totalScore1=Applicant(1) totalScore2=Applicant(2) greaterThan(totalScore1,totalScore2) Applicant(i) Applicant i Double testScore=testType() Println(“exam score=+ round2( testScore)) Double gpa=findGPA() Println(“GPA score =” + round2(gpa)) Double totalScore=findTotalScore(gpa,testScore) return totalScore testType() output(“blah blah blah 1.)SAT or 2.)ACT?) testType= input from console if SAT (testType==1) testScore=findSATScore else (aka ACT score) testScore=findACTScore() return=testScore double findSATScore() output What is math math=input output what is reading rdg=input output what is writing writing=input testScore=calculateSAT(math, reading, writing) return testScore double findACTScore()---(these might be somewhat out of order?)
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the 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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern