Instructions: Script 1-Check Age: 1. Make a folder named lab1-firstname-lastname. 2. Make an HTML file and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Instructions: Script 1-Check Age: 1. Make a folder named lab1-firstname-lastname. 2. Make an HTML file and save it with the name check-age.html within the lab1-firstname-lastname folder. 3. Alter the <title> tag to: Check Age - Your Firstname Lastname. 4. Display the following information in <h1> tag as heading in the check-age.html page: Lab 1-Check Age Your Firstname Lastname Instructor: Gursharan Tatla 5. Add <hr> tag after the above information. Page 1 of 2 nc Niagara College Canada TORONTO 6. Now, open a <script> tag. PROG1123-The Art of Script Programming 7. Write a JavaScript code that checks if the age of a person is equal to or greater than 16, then he/she can write the G1 Test, otherwise not. 8. Take input from the user for the age of a person. 9. Use the prompt () dialog box to take input from the user. 0 If the input is supposed to be a number, convert it to a number by using parseInt() or parseFloat(). 10. Display the result in a <p> tag on the HTML page using document.write(). Instructions: Script 1-Check Age: 1. Make a folder named lab1-firstname-lastname. 2. Make an HTML file and save it with the name check-age.html within the lab1-firstname-lastname folder. 3. Alter the <title> tag to: Check Age - Your Firstname Lastname. 4. Display the following information in <h1> tag as heading in the check-age.html page: Lab 1-Check Age Your Firstname Lastname Instructor: Gursharan Tatla 5. Add <hr> tag after the above information. Page 1 of 2 nc Niagara College Canada TORONTO 6. Now, open a <script> tag. PROG1123-The Art of Script Programming 7. Write a JavaScript code that checks if the age of a person is equal to or greater than 16, then he/she can write the G1 Test, otherwise not. 8. Take input from the user for the age of a person. 9. Use the prompt () dialog box to take input from the user. 0 If the input is supposed to be a number, convert it to a number by using parseInt() or parseFloat(). 10. Display the result in a <p> tag on the HTML page using document.write().
Expert Answer:
Answer rating: 100% (QA)
Heres the script according to your instructions DOCTYPE html html langen head meta charsetUTF8 me... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Calculate Common Size and Trend Series SALESFORCE.COM INC. (in $ millions) Cash and Cash Equivalents Marketable Securities Trade Receivables Prepaid Expenses and Other Current Assets Total Current...
-
Using Apple iPhone brand as an illustration and discuss how the brand would acquire information to develop new models or products, focusing on types of data sources, research approaches, research...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
In Exercises 7683, use a graphing utility to graph the function. Use the graph to determine whether the function has an inverse that is a function (that is, whether the function is one-to-one). f(x)...
-
This problem extends the result of Problem 12 in Chapter 18. Figure P37.46 shows two adjacent vibrating balls dipping into a tank of water. At distant points they produce an interference pattern of...
-
Suppose you want to create a "Bear Put" option strategy based on AAPL put options. The "Bear Put" strategy will involve the following: Buying a put option with strike price $155 Selling a put...
-
You collect a random sample of the number of children per household in a region. The results are listed below. Find the sample mean and the sample standard deviation of the data set. 1 3 1 1 1 1 2 2...
-
Two-dimensional, steady-state conduction occurs in a hollow cylindrical solid of thermal conductivity k = 16 W/m K, outer radius ro = 1 m, and overall length 2zo = 5 m, where the origin of the...
-
Solve the equation below: 4 x ^ 2 = 9
-
TipTop Flight School offers flying lessons at a small municipal airport. The school's owner and manager has been attempting to evaluate performance and control costs using a variance report that...
-
______ is the practice of continually revaluing assets and liabilities to the price they would sell or settle for regardless of the historical value of the asset or liability.The capital adequacy...
-
What happens if a common area assessment is not voluntarily paid by a unit owner?
-
The seven classes of assets, which class related to accounts receivable, mortgages, credit card receivable which arise in the ordinary course of business?
-
Identify the basic provisions of the Sarbanes-Oxley Act that specifically deal with ethics and Independence and research how this Act has affected auditors since it was established in 2002. Be sure...
-
If f(x) = x-9 and g(x) = x + 3x, complete parts (a) (f+g)(x)= 2x+3x-9 (Simplify your answer. Do not factor.) (b) (f-g)(x)=-9-3x (Simplify your answer. Do not factor.) 3 (c) (f-g) (Simplify your...
-
1. WHICH IS THE LATEST VERSION OF MICROSOFT EXCEL AVAILABLE FOR WINDOWS COMPUTERS. a) 2013 b) 2022 c) 2023 d) 2024 2. WHAT IS THE EQUIVALENT OF A PAPER NOTEBOOK IN EXCEL. a) WORKBOOK b) WORKSHEET c)...
-
You have a new colleague, Robert, who is a recent graduate and now a junior financial analyst. Robert has been following a new meat substitute company, Plant Protein, which has performed strongly...
-
Splitting hairs, if you shine a beam of colored light to a friend above in a high tower, will the color of light your friend receives be the same color you send? Explain.
-
Joan is a self-employed attorney in New York City. Joan took a trip to San Diego, CA, primarily for business, to consult with a client and take a short vacation. On the trip, Joan incurred the...
-
During the 2012 tax year, Irma incurred the following expenses: Union dues..............................................................$275 Tax return preparation...
-
Karim Depak received a Form 1099-B showing the following stock transactions and basis during 2012: None of the stock is qualified small business stock. Calculate Karim's net capital gain or loss...
-
If a product is produced in high volume by a few large organizations, what phase of the product life cycle is it most likely in?
-
Is a highly standardized product usually produced through a make-to-order or a make-to-stock processing strategy?
-
Does providing customized products generally involve less capital investment or less skilled labor, when compared to more standardized products?
Study smarter with the SolutionInn App