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
balandron [24]
3 years ago
5

Create a Divisible application that displays a random integer between 1 and 100 and displays appropriate messages stating whethe

r the integer is even or odd, if the integer is divisible by 2, and if the integer is divisible by 3 when the Generate Number button is clicked. The application interface should look similar to:
Computers and Technology
1 answer:
mrs_skeptik [129]3 years ago
3 0

Answer:

function myFunction() {

 myNumber = Math.floor(Math.random() * 100) + 1 ;

 var values = ["Number is even", "Number is odd"] ;

 var stringNum = " ";

 if (myNumber % 2 === 0){

     stringNum += values[0];

 } else {

     stringNum += values[1];

 document.getElementById("demo").innerHTML = stringNum;

}

Explanation:

The javascript source code is used by the browser to make the web application interactive, making a clickable event for the button to generate an H1 header for the web page.

The myFunction is assigned to an onclick event of a html button tag to display if a random number between 1 and 100 is even or odd.

You might be interested in
How long does it take rblx to re open deleted acc
dedylja [7]

Answer:

(Probably) unknown

Explanation:

First off, you have to get rblx to agree to re-open a deleted, which I can imagine would take a herculean effort and most likely a stream of emails and phone calls. If they happen to archive deleted accounts, they may be able to recover it, but this is done by humans, so there is no definitive way to find out how long it would take a human to do this. If deleted accounts aren't archived, then you're outta luck because they won't be able to get it back.

4 0
3 years ago
Read 2 more answers
Select the correct answer.
Naddika [18.5K]

Answer:

E

Explanation:

4 0
3 years ago
When you right-click certain areas of the Word or other Office app windows, a command menu will appear. Group of answer choices
klasskru [66]

Answer:

The answer is "False".

Explanation:

In the word or other office application when we right-click on a certain area of the office, it will provide a common task, like double-click and pick objects.

  • The right mouse button also refers to use and open the pop-up menu, which changes depending on where you select.
  • It allows the computer to mouse additional features, typically known as an optional lowering screen, that's why the given statement is "false".
3 0
4 years ago
What are the five types of alignment in Word?
Basile [38]
There are four types of alignment in word.
Left-aligned text
Right-aligned text
Center-aligned text
Justified text
6 0
3 years ago
Read 2 more answers
A user is trying to delete a file located on an NTFS volume on his Windows 8 computer but is unable to do so. Why is this?
Molodets [167]

There can be several reasons why the user is not able to delete a file on the NTFS Volume or disk partition of the computer. Possible scenarios are as follows.

1. The user does not have sufficient permission to perform the task as the file itself may not be owned with the user. The best way is to make sure the user is an administrator.

2. The file is corrupted which prevents to properly access, running a chkdsk will help to validate with this.

3. Another common scenario is that the file is actually currently in use.

4 0
3 years ago
Other questions:
  • What is the output of this code? import java.util.HashSet; class A { public static void main(String[ ] args) { HashSet set = new
    15·1 answer
  • What 2 major agricultural inventions did jethro tull create?
    10·2 answers
  • A spreadsheet is a software program for storing, managing, and retrieving information. true or false?
    15·2 answers
  • Which access database object is best to use for the basis of a report when specific criteria must be applied to the report?
    12·2 answers
  • Match the metric units with these measurements
    8·1 answer
  • What is the most important trait of the first pilot project in the AI Transformation Playbook?
    10·1 answer
  • You are a network consultant who has been asked to attend an initial meeting with the executive management team of ElectroMyCycl
    10·1 answer
  • Please help I don’t know
    5·1 answer
  • How many questions do you have to answer before you can use direct messages on Brainly?
    13·2 answers
  • Suppose Uber was considering a new algorithm to recommend ride destinations in the app. Which type of research strategy should t
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!