fork download
  1. /* The program is design for user to input information into the system to be stored so that it can be retrieve upon request.
  2. The first program- Authors Name, Textbook Name, Edition, Publisher Name, ISBN,Number/Book Price Info.
  3. Created by: Cassandra Watson Date: January 30, 2012 Modified */
  4.  
  5. //
  6. var authorName = "Author";
  7. var titleName = "Title";
  8. var editionNum = "Edition";
  9. var publisherName = "Publisher";
  10. var iSBNNum = "ISBN";
  11. var bookPrice = "Price"
  12.  
  13. //Prompt for Input
  14. writeLine( "Enter author name:" );
  15. authorName = readLine();
  16. //output
  17.  
  18. //Prompt for input
  19. writeLine( "Enter title:" );
  20. titleName = readLine();
  21. //output
  22.  
  23. //Prompt for input
  24. writeLine( "Enter edition number:" );
  25. editionNum = readLine();
  26. //output
  27.  
  28. //Prompt for input
  29. writeLine( "Enter ISBN number:" );
  30. isbnNum = readLine();
  31. //output
  32.  
  33. //Prompt for input
  34. writeLine("Enter Publisher:" );
  35. publisherName = readLine();
  36. //ouput
  37.  
  38. writeLine(authorName);
  39. writeLine(titleName);
  40. writeLine(editionNum);
  41. WriteLine(publisherName);
  42. WriteLine(isbnNum);
  43. WriteLine("$" + bookPrice);
  44.  
  45. //Display authorName titleName EditionNum publisherName iSBNNum bookPrice
  46.  
  47. /*End of Code*/
  48.  
  49.  
  50.  
  51. // --- read function ---
  52. // input a single character from the standard input device
  53. //
  54. function read()
  55. {
  56. return WScript.stdIn.Read(1); // just to read one character
  57. }
  58.  
  59. // --- read function ---
  60. // input a line from the standard input device
  61. //
  62. function readLine()
  63. {
  64. return WScript.stdIn.ReadLine();
  65. }
  66.  
  67. // --- write function ---
  68. // output what's store in content without a newline at the end
  69. //
  70. function write(content)
  71. {
  72. WScript.stdOut.Write(content);
  73. }
  74.  
  75. // --- writeLine function ---
  76. // output what's store in content with a newline at the end
  77. //
  78. function writeLine(content)
  79. {
  80. WScript.stdOut.WriteLine(content);
  81.  
  82. }
  83. /*End*/
Runtime error #stdin #stdout 0.3s 213248KB
stdin
Standard input is empty
stdout
Standard output is empty