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
svetoff [14.1K]
2 years ago
5

Code for the alert box is

Computers and Technology
1 answer:
Georgia [21]2 years ago
4 0

Answer:

(a) alert("Some text");

Explanation:

When coding in Javascript the correct code for creating an alert box is

alert("Some text");

This will generate an alert box at the top center of the user's screen that has the text which you have written inside the quotation marks. This is the simplified version of the original code which is also what is more commonly used. The original code would be

window.alert("Some text");

You might be interested in
Reasons for the growth of decision-making systems include:
liraira [26]

Answer: d) All of the above

Explanation: Decision making system is the system that helps in making the judgement about any particular matter.The process of decision making involves steps like identification of the objective, gathering data, knowing about the possible consequence of the decision, implementation and evaluation of the decision.

It helps in forecasting about the future judgement that we can make and its consequences, works in quick manner, and manage the information of the business organization.Thus all the mentioned point are correct. Thus, the correct option is option(d).

5 0
2 years ago
Ask the user to enter the number of elements in a list of numbers. Take in the numbers from the user and then output the list th
m_a_m_a [10]

Answer:

#Section 1

   lst= []

   lstNo=int(input("Enter even number of elements in List: "))

   for i in range(0, lstNo):

       pr=int(input(": " ))

       lst.append(pr)

   print(lst)

#Section 2

   nlst=[]

   dlst=[]

   n =len(lst)

   i=0

   while (i < n/2):

       nlst.append(lst[i])

       i = i+1

   j = n-1

   while j >= n/2:

       dlst.append(lst[j])

       j = j-1

   dlst.sort()

   for a in range(len(dlst)):

       nlst.append(dlst[a])

   print(nlst)

       

Explanation:

#section 1:

An empty list is declared to hold the list inputs by the user <em>lst= [] </em>

The program then prompts the user to enter an even number of elements that will be contained in the list.

The for loop is used to iterate from zero(0) to the number of elements stated, in order to get the input that is appended to the list.

lastly, the list is printed out.

#Section 2:

In this section two new lists are created to hold one half of the value respectively.

The first list collects the first half of the list using a while loop and stores it, it does not perform any sorting on it.

The second list collects the second half using a while loop and sorts the list using the<em> .sort()  </em>method which arranges elements in an ascending order.

Finally, the second list that has been sorted is added to the first and the result is printed to the screen.

A picture of how the code will run has been attached.

 

4 0
3 years ago
How many of the colonists of Jamestown died before they made it to shore, due to the difficult voyage?
erma4kov [3.2K]
Almost all of the colonist of Jamestown died before they made it to shore, due to the difficult voyage.
8 0
2 years ago
Write a qbasic program to display integer numbers 1 to 100 using the for next loop<br>​
Natasha2012 [34]

Answer:

CLS

FOR i = 1 TO 100

PRINT i

NEXT i

END

3 0
3 years ago
I need it in code please (python)
Marianna [84]
Python coded) pythooonn
8 0
3 years ago
Read 2 more answers
Other questions:
  • Today, air travel allows large numbers of people to move quickly over long distances. Which of the following is a likely effect
    8·1 answer
  • The Table Tools tab provides which two additional tabs?
    5·1 answer
  • How can you keep your files organized on your computer?
    13·2 answers
  • dr. olson likes to conduct research on the nature of prejudice and its effect on behavior. dr olson is probably a (n) - psycholo
    8·2 answers
  • What is the unit used to describe the intensity of sound?
    5·1 answer
  • Adam is an Engineering student but has decided that he does not want to work in that field, but in the Manufacturing career clus
    11·2 answers
  • Why are control components necessary in traditional software and generally not required in object-oriented software?​
    11·1 answer
  • How do cyber criminals target user’s end devices?
    11·2 answers
  • Mario kart is mercedes lol
    13·2 answers
  • Which of the following is an example of an incremented sequence?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!