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
Sergio039 [100]
3 years ago
5

Create an array of 10 fortune cookie sayings that will be randomly displayed each time the user reloads the page. The fortune wi

ll be sayings like: "Procrastination is the thief of time." Let the visitor get a new fortune when a button is clicked. g
Computers and Technology
1 answer:
vfiekz [6]3 years ago
4 0

Answer:

let cookieNumber = Math.floor(Math.random() * 10)

switch (cookieNumber) {

  case 1:

   document.write('Fortune 1')

   break;

  case 2:

   document.write('Fortune 2')

   break;

   case 3:

   document.write('Fortune 3')

   break;

  case 4:

   document.write('Fortune 4')

   break;

  case 5:

   document.write('Fortune 5')

   break;

  case 6:

   document.write('Fortune 6')

   break;

  case 7:

   document.write('Fortune 7')

   break;

  case 8:

   document.write('Fortune 8')

   break;

  case 9:

   document.write('Fortune 9')

   break;

  case 10:

   document.write('Fortune 10')

Explanation:

The cookieNumber is generated using Math.random(), which is rounded to a whole number using Math.floor(). Then, a switch block is used to display a different fortune depending on the value of cookieNumber.

You might be interested in
Once goals and objectives are clearly defined, what should a successful company do next in its content strategy?
Usimov [2.4K]

Answer:

An effective Content Marketing strategy must have four core elements to be successful: brand positioning, owned media value proposition, business case, and strategic plan. Let's see why these elements are essential for Content Marketing and how you can start implementing each of them.

Explanation:

mark me as brainlist..

8 0
3 years ago
Read 2 more answers
Why is it a good idea not to change the subject line when replying to a message?
Lubov Fominskaja [6]

Answer:

C. so that the reply matches with the sender's original message.

Explanation:

The Sender Message Channel Receiver (SMCR) model of communication was developed and created by David Berlo in 1960. SCMR was developed from the Shannon-Weaver model of communication of 1949.

The SCMR model of communication comprises of four (4) main components and these are;

1. <em><u>Sender (S)</u></em>: this is typically the source of information (message) or the originator of a message that is being sent to a receiver. Thus, they are simply the producer of a message.

2. <em><u>Channel (C)</u></em>: this is the medium used by the sender for the dissemination or transmission of the message to the recipient. For example, telephone, television, radio, newspapers, billboards etc.

3. <em><u>Message (M)</u></em>: this is the information or data that is being sent to a recipient by a sender. It could be in the form of a video, audio, text message etc.

4. <em><u>Receiver (R)</u></em>: this is typically the destination of information (message) or the recipient of a message that is being sent from a sender. Thus, the receiver is any individual who is able to read, hear or see and process the message being sent or communicated in the communication process.  

Basically, the communication channel used in SCMR must connect the sender with the desired recipients.

Hence, it is a good idea not to change the subject line when replying to a message, so that the reply matches with the sender's original message.

8 0
3 years ago
Read 2 more answers
"The actual use and implementation of computer started after third generations". Justify this statement in your own words.​
allochka39001 [22]
After three generations from when technology started people realized the use of technology was helpful and started to implement it in their daily lives
7 0
2 years ago
Read 2 more answers
One way news orginaztions can influence people is by:
Vlad1618 [11]

A. Slanting information

Media many times takes information out of context and presents it in a manner that isn't accurate. This twists the words and meanings of what really happened

Hope this helped!

~Just a girl in love with Shawn Mendes

3 0
4 years ago
Read 2 more answers
In which basic function does the computer save information
fiasKO [112]

Answer:

Storage

Explanation:

At a fundamental level, computers operate through these four functions: input, output, processing, and storage. Input: the transfer of information into the system (e.g., through a keyboard). Output: the presentation of information to the user (e.g., on a screen). Processing: the retrieval or manipulation of information into a new form (e.g., results from a search engine). Storage: the storing or preservation of information for later use (e.g., files stored on a hard drive).

6 0
3 years ago
Other questions:
  • When checking an id, a server notices a tear in the lamination covering the id, but the other features appear to be valid. the s
    15·1 answer
  • Which font attribute would be most appropriate to make a papers heading stand out?
    7·2 answers
  • How can you differentiate between standard and protocol? Write at least on example of each of these terminologies?
    12·1 answer
  • What term best describes the way the dns name space is organized?
    9·1 answer
  • Which statement about images is correct? A) A virtual image cannot be formed on a screen. B) A virtual image cannot be viewed by
    12·1 answer
  • Help users calculate their car's miles per gallon. Write a program to allow a user to enter the number of miles driven and the n
    5·1 answer
  • Which stage of the waterfall model is most like the simple model's stage 5?
    12·1 answer
  • (True/False) KM typically means the same thing across different types of businesses.
    5·2 answers
  • The following pieces are known as (image shown above)
    15·2 answers
  • You are running a virtual machine that must boot through the network adapter and provide the best networking performance. Which
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!