/*script that provides a message to the user for a grade that is entered*/
function checkGrade( )
{
var grade = prompt("Enter a Letter Grade:","");
/* Enter grade A, B, C, D, or f*/
switch (grade)
break;
{
case "A":
alert("Your grade is excellent.");
break;
case "B":
alert("Your grade is good.");
break;
case "C":
alert("Your grade is average.");
break;
case "D":
alert("You are barely passing.");
break;
case "F":
alert("You failed.");
break;
}