Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA CS141 USE 5 STATIC METHOD For ACT Scores: English+2-marh+reading+scienc 1.8 This assignment will give you practice with interactive programs, if/else statements and methods that

image text in transcribed

JAVA CS141

USE 5 STATIC METHOD

For ACT Scores: English+2-marh+reading+scienc 1.8 This assignment will give you practice with interactive programs, if/else 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 0 and 100 and these two scores are added together to get an overall score between 0 and 200. After obtaining scores for each applicant, the program reports how they compare. After computing this exam score, we compute a number between 0 and 100 based on the GPA. T program prompts the user for the GPA, and a trar multiplier. Both of these are positive real values they can have a decimal part). The transcript mu is a value between 0.8 and 1.0 that the admission use to account for differences across students ar across schools. For example, a student who take more AP courses or a student who comes from a school that is known to have tough grading stanc will get a higher transcript multiplier. You should this into a score between 0 and 100 using the foll formula: Notice that the program asks for each applicant whether to enter SAT scores or ACT scores (SAT score are integers that vary between 200 and 800, ACT scores are integers that vary between 1 and 36). 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 real- valued number between 0 and 100 using the following formulas: actualGPA transcript Multiplier At this point your program has two scores that va from 0 to 100, one from test scores and one from GPA. The overall score for the applicant is compi as the sum of these two numbers (exam result + gpa result). Because each of these numbers is between 0 and 100, the overall score for an appli ranges from 0 to 200. For SAT Scores: 2.math+reading+uriting 32 As indicated in the sample log of execution, your program is to report the exam and GPA subscores the overall score for each applicant. These should rounded to one decimal place when displayed. Yo required to do this using the printf statement desc in section 4.3 of the textbook (the alternative is to redundant expressions throughout your code, whii would be bad style). In addition to reporting the si for each applicant, the program should also produ whichever of the following messages is appropriat You should use static methods to eliminate re code and to break the problem up into logical subtasks. Your main method should be short person can easily see the overall structure of program. You are to introduce at least five methods other than main to break this proble smaller subtasks and you should make sure ti single method is doing too much work. The first applicant seems to be better The second applicant seems to be better The two applicants seem to be equal You do not have to perform any error checking. W assume that the user enters numbers that are in th appropriate range. Even though your program is rounding numbers to one decimal place when they displayed, it should not round the numbers that ar used to compute results and to compare scores. can lead to some confusing output. For example, examsubscore is 84.06 and the GPA subscore is 6 then they add up to 146.84. But rounding the disp numbers to one digit, these would be displayed as plus 62.8 adding up to 146.8. This is the correct i to produce even though it doesn't seem to add up properly. In this program, none of your methods should more than 15 lines of code in the body of the method (not counting blank lines or lines with braces on them). The 15-line limitation is a si requirement for this assignment because I wa practice breaking up a program into methods to once again include a short comment at the of your program as well as a short commentf method describing what it does. Also remem because this prog involves both integer d real data, you need to use appropriate type declarations (type int and calls on nextint for data, type double and calls on nextDouble for valued data) Name your program Admit.java

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions