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

need help with 7.3 but it requires 7.2 and 7.1 Hands-On Activity 7-1 UpperCrust

ID: 3700619 • Letter: N

Question

need help with 7.3 but it requires 7.2 and 7.1

Hands-On Activity 7-1 UpperCrust College has an admissions procedure based on a stu- dent's total SAT score, whether either parent is an alumnus, and the family income. This procedure is summarized as follows: . If the student's SAT score is 1400 or higher, the student is accepted. . If the students SAT score is 1200 or higher and at least one parent is an alumnus, the student is accepted. o If the student's SAT score is 1200 or higher and the family income is $100,000 or more, the student is accepted. e If the student is accepted and the family income is less than $100,000, the student is granted a scholarship. Create a decision table showing the four conditions (a score of 1400 or higher, a score of 1200 or higher, an alumnus parent, and a fam- ily income of $100,000 or more) and the two outcomes (whether the udent is accepted and whether the student gets a scholarship). Be sure to identify and eliminate columns with irrelevant conditions, but remember that a condition is irrelevant only if all outcomes are the same when the condition is eliminated. Use a word-processing pro- gram to create this decision table, and save the file as upperCrustAd- missions.doc (or another word-processing format) Hands-On Activity 7-2 Based on the decision table created for Hands-On Activity 7-1, use Notepad to create a pseudocode program that asks the user for SAT score, alumnus status for at least one parent, and the family income

Explanation / Answer

ANSWER:

USING A WORD PROCESSING PROGRAM:

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");

}

}