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)...
-
A laser beam is directed at the Moon, 380,000 km from Earth. The beam diverges at an angle θ (Fig. 837) of 1.4 x 10-5 rad. What diameter spot will it make on the Moon? Moon Earth Laser beam
-
Let S=$100, K=$90, =30%, r=8%, =5%, and T=1 year What is the Black Scholes price of a European call option?
-
Table B. 24 contains data on home rental prices and home sales. Use all possible regressions to build a model for these data. Perform a residual analysis on the final model and comment on model...
-
FlashCo. manufactures 1-GB flash drives (jump drives). Price and cost data for a relevant range extending to 200,000 units per month are as follows: Sales price per unit (current monthly sales volume...
-
Income Statement The revenues and expenses of Zenith Travel Service for the year ended August 31, 20Y4, follow: Fees earned Office expense Miscellaneous expense Wages expense $989,435 227,570 19,790...
-
Cecil C. Seymour is a 64-year-old widower. He had income for 2022 as follows: The cost of the annuity was $46,800, and Cecil was expected to receive a total of 260 monthly payments of $450. Cecil has...
-
Ten years ago, Samsung Electronics Company sold a bunch of low-end electronics under various brand names such as Wiseview, Tantus, and Yepp. New management decided to ditch these names and brand all...
-
What does the tax law include in amount realized?
-
Doagile methods hinder object-oriented programming? Why?
-
Job security, health security, and so on come under: Security needs Social needs Esteem needs Self-actualization
-
Why must a preliminary conceptual model be made during the Inception phase?
-
Explain in detail how a delegate message that appears in a sequence diagram must be implemented.
-
SQL Queries Help For the SYSDES team, list the evaluatees and evaluators and theevaluation scores. Show the full name of evaluates and evaluator,the evaluation ID, the evaluation item and the score....
-
A local politician is concerned that a program for the homeless in her city is discriminating against blacks and other minorities. The following data were taken from a random sample of black and...
-
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...
-
Can you create a graphic that highlights each incidence where Fairmont was not in compliance with company policy that requires explicit approval of all hours of eighty hours or more?
-
In addition to financial reporting fraud, what other types of asset misappropriation schemes were perpetrated by the Rigas family members?
-
Why was Adelphia cable company formed?
Study smarter with the SolutionInn App