1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tresset [83]
4 years ago
5

Validate that the user age field is between 18 and 100. If valid, set the background of the field to LightGreen and assign true

to userAgeValid. Otherwise, set the background to Orange and userAgeValid to false.
Computers and Technology
1 answer:
Andreyy894 years ago
3 0

Answer:

function userAgeCheck(event){

   

 // if age is in range 18 to 100

   // parseInt() converts string into integer

   if( parseInt(userAge.value) >= 18 && parseInt(userAge.value) <= 100 ){

       // set color to light green

       document.body.style.backgroundColor = "green";

       

       userAgeValid = true;

   }

   else{

       // set color to orange

       document.body.style.backgroundColor = "orange";

       

       userAgeValid = false;

   }

}

Explanation:

You might be interested in
What is the bleed space in a design?
pav-90 [236]

Answer:

The bleed is the part on the side of a document that gives the printer a small amount of space to account for movement of the paper, and design inconsistencies. Artwork and background colors often extend into the bleed area. After trimming, the bleed ensures that no unprinted edges occur in the final trimmed document.

Explanation:

8 0
3 years ago
Spam and i report
defon

Answer:

option d is the correct answer

8 0
3 years ago
Read 2 more answers
Relational tables need to be​ ______________ to help avoid duplicate data.
Svetlanka [38]
Relational tables need to be DISTINCT to help avoid duplicate data.

Distinct is defined as readily distinguished or recognizably different in nature from something of similar type.

Being distinct is the first integrity rule that a relational table follows. It ensures that the data in the table are always accurate and accessible.
5 0
3 years ago
Write a program that accepts a whole number as input, multiplies that number by 12, and then outputs the product
kenny6666 [7]

The program accepts a whole number as input, multiplies that number by 12, and then outputs the product

Explanation:

This program asks user to enter two integer numbers and displays the product.

The scanner class is used as input functions.

The code is shown below :  

import java.util.Scanner;

public class Demo {

public static void main(String[] args) {

Scanner scan = new Scanner(System.in);

System.out.print("Enter number: ");

int num1 = scan.nextInt();

scan.close();

int product = num1*12;

System.out.println("Output: "+product);

   }

}

5 0
4 years ago
Read 2 more answers
What does this program does?
tester [92]
Peoples from around the world help you answer the question you have.
4 0
4 years ago
Other questions:
  • Suppose a computer has 16-bit instructions. The instruction set consists of 32 different operations. All instructions have an op
    6·1 answer
  • Which osi layer is responsible for combining bits into bytes and bytes into frames?
    8·1 answer
  • the part of the computer that contains the brain , or central processing unit , is also known the what ?
    12·1 answer
  • If I want to copy a worksheet, I right-click the sheet on the bottom of the screen and click what menu item?
    13·1 answer
  • An experienced user has installed Oracle VM VirtualBox on her workstation and is attempting to use it to create a virtual machin
    6·1 answer
  • Assume that name and age have been declared suitably for storing names (like "Abdullah", "Alexandra" and "Zoe") and ages respect
    5·1 answer
  • These operating systems were referred to as command-based.
    12·1 answer
  • What happens if the user sysadmin invokes the mail command interface and there are no unread mail messages?
    13·1 answer
  • PI
    12·1 answer
  • Imagine how the situation could be handled. Come up with as many ideas as possible: There's no one "right" answer! Then, highlig
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!