Question
Edit the upperCrustAdmissions.html file created to include a function (this function is defined in the head tags of the HTML code (where all JavaScript functions
Edit the upperCrustAdmissions.html file created to include a function (this function is defined in the head tags of the HTML code (where all JavaScript functions are defined) and called into action in the body tags). You will send into the function an indicator of the acceptance of the student. (I suggest that you assign a number to the acceptance -- maybe a 1 for accepted without a scholarship, 2 for accepted with a scholarship, and 3 for not accepted. It is easier to pass a number into a function than a word.)
Once in the function create a series of if then else statements to determine and display in the web page (not an alert box) the tuition that the student will pay. Make you own tuition rates for accepted without a scholarship and another rate (lower than the first one) for tuition with a scholarship. If not accepted then display "Not Accepted" So maybe Tuition without a scholarship is $10,000.00, tuition with a scholarship $6,800.00, and not accepted is $0.00 (not accepted)