Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

UpperCrust College has an admissions procedure based on a student’s total SAT sc

ID: 3739847 • Letter: U

Question

UpperCrust College has an admissions procedure based on a student’s total SAT score, whether either parent is an alumnus, and the family income. The procedure is summarized as follows:

If the student’s SAT score is 1400 or higher, the student is accepted.
If the student’s SAT score is 1200 or higher and at least one parentis an alumnus, the student is accepted.
If the student’s SAT score is 1200 or higher and the family income is $100,000 or more, the student is accepted.
If the student is accepted and the family income is less than $100,000, the student is granted a scholarship.

Create a javascript program showing the four conditions (a score of 1400 or higher, a score of 1200 or higher, an alumnus parent, and a family income of $100,000 or more) and the two outcomes (whether the studentis accepted and whether the student gets a scholarship).

Explanation / Answer

var score = prompt("Enter SAT score: ");//getting score
var alumnus = prompt("Is one of your parent Alumnus: ?(y/n)");//getting almunus status
var income = prompt("Enter your Income: ");//getting income
if(score >= 1400)
{
   alert("You are Selected");
if(income<100000)
{
   alert("You are eligible for Scholarship");
}
else
{
   alert("You are not eligible for Scholarship");
}
}
else if(score >= 1200 && income > 100000)
{
   alert("You are Selected");
if(income<100000)
{
   alert("You are eligible for Scholarship");
}
else
{
   alert("You are not eligible for Scholarship");
}
}
else if(score >= 1200 && almunus=='y')
{
   alert("You are Selected");
if(income<100000)
{
   alert("You are eligible for Scholarship");
}
else
{
   alert("You are not eligible for Scholarship");
}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote