if (writer == "Ernest Hemingway")
alert("Ernest Hemingway wrote Islands in the Stream.");
else if (writer == "William Faulkner")
alert("William Faulkner wrote The Sound and the Fury.");
else if (writer == "Toni Morrison")
alert("Toni Morrision wrote Song of Solomon.");
else if (writer == "F. Scott Fitzgerald")
alert("F. Scott Fitzgerald wrote Tender is the Night.");
else if (writer == "Henry Miller")
alert("Henry Miller wrote Tropic of Capricorn.");
else
alert("You did not correctly enter one of the four writers.");