Web Development and Design Foundations with HTML5 (8th Edition)
8th Edition
ISBN: 9780134322759
Author: Terry Felke-Morris
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 14.8, Problem 2CP
Explanation of Solution
Program:
<!--HTML Tag-->
<html>
<!--Body Tag-->
<body>
<!--Script Tag-->
<script>
//Declaration of variable
var userAge;
//Prompt the input from user
userAge=prompt("Enter user's Age");
/*Condition to check age*/
if (userAge < 18)
{
/*If true, display the "You are under 18" message*/
alert("You are under 18");
}
//Otherwise
else
{
/*If false, display the "You are 18 or older" message*/
alert("You are 18 or older");
}
//Close the script tag
</script>
<!--Close Tag-->
</body>
<!--Close Tag-->
</html>
Explanation:
- The HTML tag was included using “<html>”...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Write JavaScript codes to validate a name text field so that when a user submits the form with
the name field empty or with numeric value an alert message should be displayed to the user.
The form submission should be accepted when the user enters a non-numeric value with a
success alert message.
Rules:
1. Kindly code it in a proper way
2. The symbols and values are posted here:
r1 = outer radiusr2 = inner radiusC1 = outer circumferenceC2 = inner circumferenceA1 = area of circle of r1, area within outer circleA2 = area of circle of r2, area within inner circleA0 = shaded area, outer area minus inner areaA0 = A1 - A2π = pi = 3.1415926535898√ = square root
3. Example of the code is this Annalus Calculator
https://www.calculatorsoup.com/calculators/geometry-plane/annulus.php
4.. Please don't reject
CODE THE FOLLOWING (SEE ATTACHED PHOTO):
Q1. Write a JavaFX program to display the text College of Applied Sciences as shown in the following
figure.
Show Text
College of Applied Sclences
Q2. Write a JavaFX program to design a window as shown in the following figure.
Hello World!
Add
Subtract
Multiply
Divide
First Number:
Second Nu
Result
Add the code to do the required event handling for the buttons in the panel.
Chapter 14 Solutions
Web Development and Design Foundations with HTML5 (8th Edition)
Ch. 14.4 - Prob. 1CPCh. 14.4 - Prob. 2CPCh. 14.4 - Prob. 3CPCh. 14.6 - Prob. 1CPCh. 14.6 - Prob. 2CPCh. 14.6 - Prob. 3CPCh. 14.8 - Describe a method that can be used to gather a...Ch. 14.8 - Prob. 2CPCh. 14.8 - Prob. 3CPCh. 14.9 - Prob. 1CP
Ch. 14.9 - Prob. 2CPCh. 14.9 - Prob. 3CPCh. 14.18 - Prob. 1CPCh. 14.18 - Prob. 2CPCh. 14.18 - Prob. 3CPCh. 14 - Prob. 1MCCh. 14 - Prob. 2MCCh. 14 - Prob. 3MCCh. 14 - Prob. 4MCCh. 14 - Prob. 5MCCh. 14 - Prob. 6MCCh. 14 - Prob. 7MCCh. 14 - Prob. 8MCCh. 14 - Prob. 9MCCh. 14 - Prob. 10MCCh. 14 - Prob. 11MCCh. 14 - Prob. 12FIBCh. 14 - Prob. 13FIBCh. 14 - The ________ object is assumed to exist and it is...Ch. 14 - Prob. 15FIBCh. 14 - A form control button can be used with a(n)...Ch. 14 - Prob. 17FIBCh. 14 - Prob. 18FIBCh. 14 - Prob. 19SACh. 14 - Prob. 20SACh. 14 - Prob. 1AYKCh. 14 - Prob. 2AYKCh. 14 - Prob. 3AYKCh. 14 - Prob. 1HOECh. 14 - Prob. 2HOECh. 14 - Prob. 3HOECh. 14 - Prob. 4HOECh. 14 - Prob. 5HOECh. 14 - Prob. 6HOECh. 14 - Prob. 7HOECh. 14 - Prob. 8HOECh. 14 - Prob. 1WRCh. 14 - Prob. 2WRCh. 14 - Prob. 3WR
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Question 20 Write JavaFX statement to display the upper half of a circle with radius 50 centered at (100, 100). Response Feedback: (None Given)arrow_forwardUsing JavaFX Write a program to design a graphical user Interface for Salon Reservation System. Your Main Window Should have the 5 following Buttons Along with the LOGO placed at the top of the window of the company : 1- Add booking 2- Update booking 3- Delete booking 4- Search booking 5- Servicesarrow_forwardMatome’s catering provides meals for parties and special occassions. Write a GUI application that prompts the user for the number of guests attending an event and then computes the total price, which is R25 per person. Display the company motto, and then display the number of guests, price per guest, and total price. Also display a message that indicates true or false depending on whether the job is classified as a large eventâ€"an event with 25 or more guests. Save the file as MatomeEventPrice.arrow_forward
- Matome’s catering provides meals for parties and special occassions. Write a GUI application that prompts the user for the number of guests attending an event and then computes the total price, which is R25 per person. Display the company motto, and then display the number of guests, price per guest, and total price. Also display a message that indicates true or false depending on whether the job is classified as a large eventâ€"an event with 25 or more guests. Save the file asaskeMatomeEventPrice. runn the program.thank you in advancearrow_forwarduse java GUI The form should contain five command buttons, two labels only, and three picture boxes. The three picture boxes, each containing a flag, are on top of one another, but only one should be visible at a time. For each picture box: Be sure to add the image as a local resource. Set the Size property to 100, 50 Click the Size Mode list arrow, then click StretchImage in the list. For the Labels: One label will have your name as the programmer – see bottom left corner of the windows above. The other label will be used to display the name of the capital city. When a country button is clicked assign the name of the city into this label.arrow_forwardusing javascript, design an add button that when you click it, it displays 4 input text, one for id, another for type, a third for the price, and one for callory.arrow_forward
- Task 2: Write a Java Servlets program for calculating the total number of hits on a web page designed by you. The web page should contain at least one title, one label and one output tag which displays the result of the calculation i.e. the number of hits on that page. The number of hits should be counted only for the one lifecycle of the servlet. Note that the program should have the comments embedded in it to explicitly explain why that code is being used.arrow_forwardMatome's catering provides meals for parties and special occassions. Write a GUI application that prompts the user for the number of guests attending an event and then computes the total price, which is R25 per person. Display the company motto, and then display the number of guests, price per guest, and total price. Also display a message that indicates true or false depending on whether the job is classified as a large event an event with 25 or more guests. Save the file as MatomeEventPrice.arrow_forwardDevelop the JS code to perform the following: Ask the user for a number. Perform a test to determine if the number is greater than 100. If the number is greater than 100, display "Congratulations!". Save your code as an HTML file. Pseudocode is NOT required. Be sure to include comments. Be sure to ZIP the file. Submit the ZIP file as your response.arrow_forward
- Using java swing framework your interface, provide a label and 4 buttons. Initially, your label will display number 0. Use one button to change the display value in increment of 1, and another button to change the display value in decrement of 1. Add two buttons to increase and decrease the font size of the label.arrow_forwardJS PLEASE! create a very simple javascript code that calculates both the tax and the tip total of a random bill. The user should be able to input a random bill and there should be 10% tax and 7% tip applied and the output should be the total bill after tax and tip have applied. (Nothing fancy it should look bear bones) (no html and design the question should come up at the top of the page rather than it actually being on the website) Thank you!arrow_forwardA Radio Button is a way to restrict users to having only one choice. Examples are: Male/Female, Yes/No, or answers to surveys and quizzes Write a script using HTML form elements and PHP codes that will return the value a Radio Button that has a value of "Male" and a second Radio Button has a value of “Female”. A code should be added to detect if the user clicked the Submit buttonarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTNew Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,