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 cognitive psychologist was interested in the ability of men and women to multitask-a cognitive skill thought to engage short-term or working memory. The psychologist observed a sample of 5 men (n =...
-
Now look at Fowler's work on design pattems. Look at the organizational pattern created by Fowler as a way to document the structure of a solution so that its use by others is optimized. and at the...
-
Determine the conjugate of \(5 \sqrt{15}+8 \sqrt{13}\).
-
Quality Hardwoods Company distributes hardwood products to small furniture manufacturers. The adjusted trial balance data given below is from the firms worksheet for the year ended December 31, 2016....
-
eBook Problem Walk-Through Bond Valuation with Annual Payments Jackson Corporation's bonds have 13 years remaining to maturity. Interest is paid annually, the bonds have a $1,000 par value, and the...
-
Part of developing a long-term R&D strategy is to locate facilities in countries that are widely known to be competitive. Your company seeks to develop R&D facilities in Asia to counter recent...
-
2.3 Sinbad Bhid's constitution has a provision for 80 million ordinary shares, and its paid-up share capital comprised 60 million shares paid-up to RM72 million. To raise funds Sinbad Bhd made a...
-
John has just resigned from his $8,000-a-month job to start up his own accounting service firm. He has paid a non-refundable 3-month advanced rental payment of $9,000 for an office space. To ensure...
-
What are the benefits to the contractor from accurate cost value reconciliation?please discuss in detail all the benefits .;
-
n July 1, the total inventory for Save-Mor Merchandisers was $614,100. Net purchases during the month were $317,900 and sales amounted to $611,400. Gross margin on sales was 65%.Estimate the cost...
-
What are the three most important requirements for cost accounting? What part does cost accounting play in price setting? What are some of the benefits of cost accounting? What are the drawbacks of...
-
What Is Recruitment? Explain The Purpose And Importance Of Recruitment.? Explain Recruitment Process? What Are The Various Internal And External Sources Of Recruitment? Explain The Internal And...
-
What information should always be recorded when using a balance? The number and manufacturer name
-
Horse serum containing specific antibody to snake venom has been a successful approach to treating snakebite in humans. How do you think this anti-venom could be generated? What are some advantages...
-
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...
-
Everyone has a different tolerance for risk. Some people will try anything once, including skydiving and whitewater rafting. Others take every precaution to avoid danger.
-
What are the main types of investment alternatives?
-
A friend wants to invest a \($500\) bonus she received. What would you advise?
Study smarter with the SolutionInn App