Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I've been stuck with this java problems and i can't seem to find a solution: Two freshmen students are applying to the CMPS department. The

I've been stuck with this java problems and i can't seem to find a solution:

Two freshmen students are applying to the CMPS department. The following requirements should be met for their respective Admission Applications to be accepted:

A SAT score above 670 / 800.

A grade above 70 in CMPS 101.

A grade above 70 in MAT 102.

At most, one of the two applicants will be admitted. Thus, you should write a JAVA program to assist the university's Admissions agent in making the decision.

The program should start by asking the user to enter the needed information for both applicants.

Note that, the SAT score is divided into two parts: i) SAT Verbal test score and, ii) Math test score. Each of the two scores is a value between 200 and 800. For each applicant, the user should enter the Verbal and the Math tests' scores respectively. Your program will then calculate the final SAT score as the weighted sum of the two test scores with the Math test score being allocated a weight of 75% while the Verbal test score having a 25% weight. This will result in a total score out of 800.

After getting all the needed data, the following scenarios are possible:

Both applicants didn't meet the requirements and thus none will be admitted.

Only one of the applicants met the requirements and so he/she will be admitted.

Both applicants met the requirements, and so the best one will be admitted. In this latter case, to decide which applicant is favored, a new score out of 100 will be calculated for each of the applicants, where CMPS 101 grade weighs 40%, MAT 102 grade weighs 30%, and the SAT average (after scaling it to be over 100) weighs 30%. The applicant with the, then, highest score will be admitted.

For example:

Input Result
Jack 412 614 65 85 John 610 740 74 75
First applicant name: SAT Verbal: SAT Math: CMPS 101 grade: MATH 102 grade: Second applicant name: SAT Verbal: SAT Math: CMPS 101 grade: MATH 102 grade: Congratulations John, your application is accepted!
Sarah 550 640 68 71 Paul 589 720 74 65
First applicant name: SAT Verbal: SAT Math: CMPS 101 grade: MATH 102 grade: Second applicant name: SAT Verbal: SAT Math: CMPS 101 grade: MATH 102 grade: None will be admitted

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

What position do you seek?

Answered: 1 week ago

Question

=+What is the extent of the use of each type of IE?

Answered: 1 week ago