Even complicated and confusing topics will be easily developed and covered if you request our help writing an essay. Place an order today!

ASSIGNMENT 2

 

Using only the techniques from modules one and two, and chapters one through four of the textbook:

Create two files, one named second.html and the other named second.js

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!

Each line must be displayed as an alert

Create a generic function that outputs one line of the countdown as an alert, and receives the data to output as an input parameter.

Use that function to output each line of the countdown.

Each line, after the first line, must only be output when the user clicks “Ok” in response to the alert.

Use comments and lay the code out so it can be easily followed!

Each file in the assignment must have a comment at the top, using the correct commenting technique for the file type, like this:
                Your Name
                Your Student ID
                CST140
                Assignment 2

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.

 

 

 

testimonials icon
1CVP Graphs AnalysisNameAffiliateDate12The Free for-Service (FFS) techniques include: cost-based repayment, in which anoutsider payer repays reasonab...
testimonials icon
Crisis intervention is unique in that if a person maintains a normal stance, he or she may experie...
testimonials icon
FS 6693 ADVANCED QUANTITATIVE RESEARCHRESEARCH BRIEF 2Please read the attached article by Kocur and Deffenbacher (2014) and answer the questionsbelow...
testimonials icon
Assignment backgroundOne of the important decisions that businesses need to make in its internationalisation is to choose an...
testimonials icon
Running head: PERSONAL REFLECTION ON SERVICE LEARNING WITH IMCPersonal Reflection on Service Learning through IMCInstitution AffiliationStudent NameD...
testimonials icon
Order Grade A+ Academic Papers Instantly!...
testimonials icon
Running head: PRODUCT LIABILITY AND ADVERTISINGProduct Liability and AdvertisingNameInstitutional Affiliation1PRODUCT LIABILITY AND ADVERTISING2Produ...
testimonials icon
PAD 525 Assignment 1...
testimonials icon
Order Grade A+ Academic Papers Instantly!...
testimonials icon
 Instructions Final ProjectThe Final Project should demonstrate an understanding of the reading assignments, class di...

Other samples, services and questions:

Calculate Price

When you use PaperHelp, you save one valuable — TIME

You can spend it for more important things than paper writing.

Approx. price
$65
Order a paper. Study better. Sleep tight. Calculate Price!
Created with Sketch.
Calculate Price
Approx. price
$65