Admit.java - / Caroline Wu / 4/27/20 / CSE 142 /...

This preview shows page 1 - 2 out of 2 pages.

// Caroline Wu// 4/27/20// CSE 142// Instructor: Stuart Reges// TA: Sara Sun// Assignment #4//// This program calculate exam scores (either SAT or ACT) and overall GPA// for two applicants to determine the best applicant.import java.util.*;public class Admit {public static void main(String[] arg) {Scanner console = new Scanner(System.in);introduction();// applicant 1System.out.println("Information for applicant #1: ");double test1 = getScore(console);System.out.println("exam score = " + test1);double gpa1 = getGPA(console);System.out.println("GPA score = " + gpa1);// applicant 2System.out.println("Information for applicant #2: ");double test2 = getScore(console);System.out.println("exam score = " + test2);double gpa2 = getGPA(console);System.out.println("GPA score = " + gpa2);//conclusiongetResults(test1, test2, gpa1, gpa2);}// this method introduces the purposepublic static void introduction() {System.out.println("This program compares two applicants to");System.out.println("determine which one seems like the stronger");System.out.println("applicant. For each candidate I will need");

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 2 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
NoProfessor
Tags
Stuart Reges, public class Admit, Caroline Wu

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture