Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Setup You work as an admissions counselor for a school (maybe this one!) and you want to automate the admissions process since you get a

Setup

You work as an admissions counselor for a school (maybe this one!) and you want to automate the admissions process since you get a lot of applications and want to sift through them as quickly as possible. You determine that there are three possible routes than an application can take:

Automatically admitted

Pending further review

Automatically rejected

Based on the predetermined factors, you will calculate a total score that you will use to determine whether to admit, review, or reject.

The factors that affect the total score are:

GPA

Extra-curricular activities

Community service hours

Sports

Below is the score for each category:

GPA

gpa >= 3.5: 80pts

2.8 <= gpa < 3.5: 50pts

gpa < 2.8: 30pts

Extra-Curricular Activities

eC >= 3: 200pts

1 <= eC < 3: 100pts

eC < 1: 50pts

Community Service Hours

cS >= 50: 150pts

20 <= cS < 50: 100pts

cS < 20: 10pts

Sports

sports >= 3: 100pts

1 <= sports < 3: 30pts

sports < 1: 0pts

Note: we will assume the values do not go below 0.

Once you've calculated the points for each category, total the points and determine if the applicant is automatically admitted, pending further review, or automatically rejected using the following:

score >= 300: Admitted

200 <= score < 300: Pending Review

score < 200: Rejected

Problem

This problem is formatted a little different, but an explanation is given in the template. Please pay attention to what you should be doing and when.

You will write code that will take in the information for an applicant and determine if the applicant is automatically admitted, pending further review, or automatically rejected.

To accomplish this, use the conditionals we learned in class to determine where the values of GPA, extracurricular activities, community service, and sports lie in the ranges, and calculate the total score based on that.

You should store the applicant's score as a variable named score and should set a character vector variable named action to one of three text values:

ADMIT

REVIEW

REJECT

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 Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions