Question: Programming Assignment 2 - Admission Program Description ( 2 0 points ) This assignment will give you practice with interactive programs, if / else statements
Programming Assignment Admission Program Description pointsThis assignment will give you practice with interactive programs, ifelse statements and methods that return values. Your program will prompt the user for information about two applicants and compute an overall score for each applicant. This is a simplified version of a program that might be used for admissions purposes.The sample log of execution indicates how your program is to behave. For each applicant, we prompt for exam scores either SAT or ACT and overall GPA. The exam and GPA information is turned into numbers between and and these two scores are added together to get an overall score between and After obtaining scores for each applicant, the program reports how they compare.Notice that the program asks for each applicant whether to enter SAT scores or ACT scores SAT scores are integers that vary between and ACT scores are integers that vary between and In the case of SAT scores, the user is prompted for SAT math, reading, and writing scores. In the case of ACT scores, the user is prompted for English, math, reading and science scores. These scores are turned into a realvalued number between and using the following formulas:For SAT Scores: For ACT Scores: After computing this exam score, we compute a number between and based on the GPA. The program prompts for the GPA, the maximum GPA, and a transcript multiplier. All three of these are positive real values ie they can have a decimal part The transcript multiplier is a value between and that the admissions staff use to account for differences across students and across schools. For example, a student who takes more AP courses or a student who comes from a high school that is known to have tough grading standards will get a higher transcript multiplier. You should turn this into a score between and using the following formula: At this point your program has two scores that vary from to one from test scores and one from GPA. The overall score for the applicant is computed as the sum of these two numbers exam result gpa result Because each of these numbers is between and the overall score for an applicant ranges from to As indicated in the sample log of execution, your program is to report the exam and GPA subscores and the overall score for each applicant. These should be rounded to one decimal place when displayed. You are required to do this using the round method described in lecture see BMIAnnotated.java or using the printf statement described in section of the textbook the alternative is to have redundant expressions throughout your code, which would be bad style In addition to reporting the score for each applicant, the program should also produce whichever of the following messages is appropriate:The first applicant seems to be betterThe second applicant seems to be betterThe two applicants seem to be equalYou do not have to perform any error checking. We will assume that the user enters numbers that are in the appropriate range. Even though your program is rounding numbers to one decimal place when they are displayed, it should not round the numbers that are used to compute results and to compare scores. This can lead to some confusing output. For example, if the exam subscore is and the GPA subscore is then they add up to But rounding the displayed numbers to one digit, these would be displayed as plus adding up to This is the correct output to produce even though it doesnt seem to add up properly.You should use static methods to eliminate redundant code and to break the problem up into logical subtasks. Your main method should be short so that a person can easily see the overall structure of the program. You should avoid chaining long sequences of method calls together without returning to main. You are to introduce at least five static methods other than main and round to break this problem up into smaller subtasks and you should make sure that no single method is doing too much work. In this program, none of your methods should have more than lines of code in the body of the method not counting blank lines or lines with just curly braces on them The line limitation is a special requirement for this assignment because we want you to practice breaking up a program into methods. Be sure to once again include a short comment at the beginning of your program as well as a short comment for each method describing what it does. Look at the program BMIjava, BMIjava discussed in lecture for a good example of eliminating redundant code and breaking a problem up into logical subtasks. See also the discussion of this program in section of the textbook, especially the section on Procedural Design Heuristics starting on page that explores issues like chaining. Also remember that because this program involves both integer data and real data, you need to use appropriate type declarations type int and calls on nextInt for integer data, type double and calls on nextDouble for realvalued data Finally, you should construct only one Scanner object for console input.Name your program Admit.java and to access Scanner include the following at the beginning of your program:import java.util.;This handout has a sample execution and the output comparison tool on the class web page has other samples. You are required to exactly reproduce the format of these sample executions. Limit yourself to constructs from chapters through of the textbook. You should not be using for loops as a way to solve this problem.Sample log of execution user input bold and underlinedThis program compares two applicants todetermine which one seems like the strongerapplicant. For each candidate I will needeither SAT or ACT scores plus a weighted GPA. Information for applicant #: do you have SAT scores or ACT scores? SAT math? SAT critical reading? SAT writing? exam score overall GPA? max GPA? Transcript Multiplier? GPA score Information for applicant #: do you have SAT scores or ACT scores? ACT English? ACT math? ACT reading? ACT science? exam score overall GPA? max GPA? Transcript Multiplier? GPA score First applicant overall score Second applicant overall score The first applicant seems to be better
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
