/* The program is design for user to input information into the system to be stored so that it can be retrieve upon request.
The first program- Authors Name, Textbook Name, Edition, Publisher Name, ISBN,Number/Book Price Info.
Created by: Cassandra Watson Date: January 30, 2012 Modified */
//
var authorName = "Author";
var titleName = "Title";
var editionNum = "Edition";
var publisherName = "Publisher";
var iSBNNum = "ISBN";
var bookPrice = "Price"
//Prompt for Input
writeLine( "Enter author name:" );
authorName = readLine();
//output
//Prompt for input
writeLine( "Enter title:" );
titleName = readLine();
//output
//Prompt for input
writeLine( "Enter edition number:" );
editionNum = readLine();
//output
//Prompt for input
writeLine( "Enter ISBN number:" );
isbnNum = readLine();
//output
//Prompt for input
writeLine("Enter Publisher:" );
publisherName = readLine();
//ouput
writeLine(authorName);
writeLine(titleName);
writeLine(editionNum);
WriteLine(publisherName);
WriteLine(isbnNum);
WriteLine("$" + bookPrice);
//Display authorName titleName EditionNum publisherName iSBNNum bookPrice
/*End of Code*/
// --- read function ---
// input a single character from the standard input device
//
function read()
{
return WScript.stdIn.Read(1); // just to read one character
}
// --- read function ---
// input a line from the standard input device
//
function readLine()
{
return WScript.stdIn.ReadLine();
}
// --- write function ---
// output what's store in content without a newline at the end
//
function write(content)
{
WScript.stdOut.Write(content);
}
// --- writeLine function ---
// output what's store in content with a newline at the end
//
function writeLine(content)
{
WScript.stdOut.WriteLine(content);
}
/*End*/