The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 2 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
I need assistance with the attached assignment. I've highlighted the main parts of the assignment that I have had problems with.
JAVA Instructions
1. Create two files, one named second.html and the other named second.js
2. Write code to create a web page that uses a JavaScript program to output a NASA style count down:
Ten
Nine
…
One
Ignition Start
Liftoff
We have Liftoff!
3. Each line must be displayed as an alert
4. Create a generic function that outputs one line of the countdown as an alert, and receives the data to output as an input parameter.
5. Use that function to output each line of the countdown.
6. Each line, after the first line, must only be output when the user clicks “Ok” in response to the alert.
7. Use comments and lay the code out so it can be easily followed!
8. Each file in the assignment must have a comment at the top, using the correct commenting technique for the file type, like this:
Name
Student ID
CST140
Assignment 2
9. Test your program by opening the web page in your browser. You should see the NASA countdown displayed as a series of alerts (which are displayed one at a time in a popup window.) Click the OK button to display the next line in the countdown.
No text is required to be written directly to the browser window
----------- ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly