Question: After executing the following code, what is shown on the monitor as the last pop-up? (Assume from a user's input, the value of year
After executing the following code, what is shown on the monitor as the last pop-up? (Assume from a user's input, the value of year is freshman and the value of credit is 10) (10 points) Your tuition var year; var credit; var fee; var total; year = prompt ("Which year?", "freshman"); credit prompt ("How many credits you plan to take", 0); if (year = "freshman" || year = "sophomore") fee = 200; if (year="junior" || year == "senior") fee = 300; if (credit 0) total = 400 credit + fee; * alert("The tuition is $" + total); Your Answer
Step by Step Solution
There are 3 Steps involved in it
Answer code is as follow var year var credit ... View full answer
Get step-by-step solutions from verified subject matter experts
