Fees

by Ryan Kleinhans

JavaScript

var credits
var booksCost
var tuitionCost
var total

credits = parseFloat (prompt("How many credits do you have?"))
booksCost = parseFloat (prompt("How much did you buy your books for?"))

tuitionCost = credits * 115

total = tuitionCost + booksCost

alert("Number of credits: " + credits + "\nBooks cost: $" + booksCost + " \nTuition: $" + tuitionCost + " \nTotal: $" + total)