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 if (credit 0) total = 400* credit + fee; alert(

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

1 Expert Approved Answer
Step: 1 Unlock

Answer code is as follow var year var credit ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!