Write the javascript program that asks the user for: >SAT score >Alumnus status
ID: 3639827 • Letter: W
Question
Write the javascript program that asks the user for:
>SAT score
>Alumnus status for atleast one parent
>Family Income
The program at the end shouls display a status that says wether the student is admitted or not, if he/she is than did he/she get a grant or not.
I have some work done by creating SAT clas..I can upload that here if anyone wants to see it.
Explanation / Answer
var satScore = prompt("Enter sat :"); while(true){ var al = prompt("Is any parent alum....Y/N"); if(al.charAt(0)=='y' || al.charAt(0)=='Y'|| al.charAt(0)=='n'||al.charAt(0)=='N') { break; } else { alert("error please try again"); } } var income = prompt("Enter family income:"); if(satScore>=1400 && income1200) { //do something and add some statements } else { //alert user not accepted alert("not accepted"); } Hope this helpsRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.