Define an array to be a Mercurial array if a 3 does not occur between any two 1s. Write a function named isMercurial that returns 1 if its array argument is a Mercurial array, otherwise it returns 0

Answers

Answer 1

The Mercurial array program is an illustration of arrays, loops and conditional statements

How to write the program?

The program written in Python, where comments are used to explain each action is as follows:

#This defines the function

def checkMercurialarray(myarr):

   #This checks if the array contains 3

   if myarr.count(3) > 0:

       #If yes, this checks if the elements before and after 3 is 1

       if myarr[myarr.index(3)- 1] == 1 and myarr[myarr.index(3)+ 1] == 1:

           #This returns 1 if true

           return "1"

   #This returns 0

   return "0"

Read more about Python programs at:

https://brainly.com/question/26497128

#SPJ1


Related Questions

The questions of economics address which of the following? Choose three answers.
who
what
where
when
why
how

Answers

Answer:

Economists address these three questions: (1) What goods and services should be produced to meet consumer needs? (2) How should they be produced, and who should produce them? (3) Who should receive goods and services? The answers to these questions depend on a country's economic system.

So the answer would be WHAT, WHY & WHO. Hope this helps

Explanation:

As a student you would most likely use the ________ collaboration tool set because it is free and takes not time to learn. Group of answer choices maximum

Answers

Collaboration toolsets are the programs and apps that make the work more effective and creative. Students should use a minimal collaboration toolset.

What is a minimal collaboration toolset?

A minimal collaboration toolset is a platform, application, or program that is free of cost and requires no time to learn. It is used in emails and other text platforms.

It shares content through email and shares document files. This minimal collaboration toolset uses all text but lacks voices and videos.

Therefore, the minimal collaboration toolset is the correct blank.

Learn more about the collaboration toolset here:

https://brainly.com/question/15176746

#SPJ1

Which button on a desktop computer begins a reboot of the computer without power being removed from the computer's components?

Answers

Answer:

1. Click the Start button in the lower-left corner of your screen. You can also press the Windows key on your keyboard to open the Start menu.

2. Choose the Power icon.

3. When you click the power button, you will have the option to put your computer to sleep, restart it, or power it down.

Explanation:

Have a good day

What is the purpose of the website for David and his friends, and why did they choose that type of website?

Dave and his friends create short films and a web series. They want to distribute their work online. Dave and his friends should set up

a(n)

website in order to generate

by providing users access to their content.

Answers

A website is a great way for Dave and his friends to distribute their short films and web series. It allows them to reach a wider audience and share their work with people all over the world. They can also use the website to promote their brand and generate income through advertising or merchandise sales.

What is the website about?

There are several different types of websites that Dave and his friends could choose from, depending on their goals and the features they want to include. One popular option is a video hosting platform, such as You Tube or Vimeo, which provides an easy way to upload and share video content.

Another option is a blog or portfolio website, which would allow them to showcase their work and write articles or blog posts about the creative process. They could even use a combination of both depending on the series and content.

Therefore, the type of website that Dave and his friends choose will depend on their goals and the features they want to include. They could consult a web developer to help them make the best choice for their needs.

Learn more about website  from

https://brainly.com/question/28431103

#SPJ1

In the following citation for a website, which detail is optional, according to
MLA style?
Manufacturers Association for Plastics Processors. Home page. Web. 6 Mar.
2014 .
A. Web.
B. 6 Mar. 2014.
C.
D. Home page

Answers

According to MLA style, the detail which is optional in the given citation for a website is: C. mapping link.

What is an information source?

An information source can be defined as a system or medium through which information, knowledge and ideas may be gotten (generated) and used by an individual.

What are citations?

Citations can be defined as references or links to all of the sources from which an author, writer, or researcher got his or her information from.

The characteristics of a MLA citation.

Generally, MLA citation often comprises the following information:

Author's last name and first name.Title of source.Title of container.Other contributors.VersionThe name of the publisher.Publication date.Location.

According to MLA style, the detail which is optional in the given citation for a website is mapping link.

Read more on citations here: https://brainly.com/question/8789070

#SPJ1

Complete Question:

In the following citation for a website, which detail is optional, according to

MLA style?

Manufacturers Association for Plastics Processors. Home page. Web. 6 Mar.

2014 .

A. Web.

B. 6 Mar. 2014.

C. Mapping link

D. Home page

Which statement would cause polarization?
a.
"I miss you."
b. "I agree with you."
C.
"You never listen to me."
d. "Can I talk to you?"

Answers

C. “you never listen to me” would cause polarization

You are writing an algorithm and want to tell the computer what to do if the
user does not perform an action. Which type of statement should you include
in your algorithm?
A. Return
B. When-if
C. If-else
D. And-or

Answers

Answer:

you are writing an algorithm and went to tell computer what to do If the return

The type of statement, i.e., if-else should be include in your algorithm. The correct option is C.

What is if-else statement?

An "if-else" statement is a conditional statement that determines whether a particular condition is true or false and then executes different code based on the outcome of that evaluation.

An "if-else" statement could be used in the context of a user action to check whether the user has performed a specific action and then execute different code depending on whether the user has performed that action or not.

To exit a function and return a value to the calling code, use a "return" statement. A "when-if" statement and a "and-or" statement are not standard programming constructs and are rarely used in code.

Thus, the correct option is C.

For more details regarding algorithm, visit:

https://brainly.com/question/22984934

#SPJ7

Jeremy knows that there is a keyboard shortcut in Word, but he does not know what it is. What should Jeremy do to find out what the keyboard shortcut is?

Answers

I think he should ask someone who uses word to help him ;)

A program has a class Potato , which is derived from the class Vegetable , which is derived from the class Food . This is an example of _______

Answers

Inheritance

If you have a potato, it has the features/characteristics of a vegetable
A potato is healthy, and it gets this from being a vegetable
A vegetable gets its features/characteristics from food
A vegetable can be eaten, just like food
We can then say that a vegetable inherits the ability to be eaten from food
And that the potato inherits this from being a vegetable
The potato class inherits from the vegetable class the healthiness, but the vegetable class doesn’t inherit healthiness from the food class

You have double-clicked a device in Device Manager to open its Properties window. Where can you find information about IRQs the device might use

Answers

To find information about IRQs the device might use, make alteration to the View menu option and then change it to Resources by type.

How do one find information about IRQs?

The best way to see IRQ information in Windows is through the use of Device Manager.

Note that for one to be able to find information about IRQs the device might use, one has to makes some changes to the View menu option and then one can change it to Resources by type to be able to see the Interrupt request (IRQ) part.

Learn more about Device Manager from

https://brainly.com/question/869693

#SJ1

Your friend Cameron’s little sister is visually impaired. Cameron is worried that his sister will not be able to use technology and will be at a disadvantage in life. What could you tell Cameron to reassure him that his sister will still be able to use technology?

Answers

All modern technology has things to help disabled people

An information system’s _________ is the likelihood that the system or resource will be compromised by a ________ that will result in its ________ to further attacks.

Answers

Answer:

vulnerability      hack/unauthorized access    liklihood/predisposition

Explanation:

What is output by the following code?

for x in range (4):
for y in range (3):
print("*", end=" ")
print("")
Group of answer choices

* * * *
* * * *
* * * *
* * * *
* * * *

* * *
* * *
* * *
* * *

* * * * *
* * * * *
* * * * *
* * * * *

* * * *
* * * *
* * * *

Answers

Answer:

* * *

* * *

* * *

* * *

Explanation:

The inner loop will print 3 times *

For every outer loop, that 3 times * will be printed again => 4 times in this case

The end=" " is to add new line in each inner loop

A(n) _____ is an organization's management support system that combines many databases to improve management decision making. data mine information center data station data warehouse information network

Answers

A data warehouse is an organization's management support system that combines many databases to improve management decision making.

What is a management support system?

A decision support system, executive information system, as well as the knowledge-based or expert system functional capabilities are known to be factors that are all integrated into an  management support system.

Therefore saying that A data warehouse is an organization's management support system that combines many databases to improve management decision making is a true statement.

Learn more about management support system from

https://brainly.com/question/25491895
#SPJ1

Program _______ graphically present the detailed sequence of steps needed to solve a programming problem.

Answers

Program Pseudocode graphically present the detailed sequence of steps needed to solve a programming problem.

What are Pseudocode?

These are known to be a set of codes that a program has graphically depicted all of its sequence of steps that can be sued to handle a programming problem.

Note that Pseudocode is a form of artificial and man made informal language that is often used by programmers to create  algorithms.

Learn more about Program from

https://brainly.com/question/153827

#SPJ1

One way to protect against a security threat to a computer system is to __________. Avoid external links with inconsistent URLs create a disaster recovery plan open online pop-up notifications post personal information online

Answers

One way to protect against a security threat to a computer system is to Avoid external links with inconsistent URLs.

What is malware?

Malware is any programme that is purposely designed to disrupt a computer, server, client, or computer network, leak private information, obtain unauthorised access to information or systems, deny users access to information, or otherwise interfere with the user's computer security and privacy.

One way to protect against a security threat to a computer system is to Avoid external links with inconsistent URLs. The reason for this is that such links may contain malware or spyware.

Learn more about Malware:

https://brainly.com/question/14276107

#SPJ1

What is the primary difference between sort and filter?

Answers

Answer:

Filter only shows the messages that match a particular criterion

A machine learning cloud application provides meaningful data with the company's local customer information and purchase history. The company considers this data sensitive. How should the company manage this data when interfacing with the cloud service

Answers

Cloud storage is a service prototype that stores the data on remote storage sources generally on the net. The company can manage the data by keeping data on the local storage.

What is local storage and cloud storage?

Local storage is the storage place present in the system either in the hard drives or in the form of a solid-state drive (SSD). Cloud storage is the web storage platform that stores the data on the internet.

The cloud storage maintains, backs ups, and manages the files and folders stored on the cloud platform. Cloud storage is the virtual platform that is available to users based on the space needed.

Therefore, the data on local storage is managed when interfacing with the cloud system.

Learn more about cloud storage here:

https://brainly.com/question/17328624

#SPJ1

In 2008, researchers at Princeton University demonstrated techniques to retrieve RAM contents after the computer had been powered off. They then extracted drive encryption keys from RAM and used them to decrypt an encrypted drive. This is called a(n):

Answers


It’s called a “Cold Boot” attack

___ is a type of social engineering where a hacker lures individuals into entering personal information into a website controlled by the hacker.

Answers

A type of social engineering where a hacker lures unsuspecting individuals to enter personal information into a website controlled by the hacker is phishing.

What is phishing?

Phishing can be defined as a type of social engineering (cyber attack) which involves making an attempt to obtain sensitive user informations, especially by disguising one's self as a trustworthy entity in an electronic communication, which is usually over the Internet.

This ultimately implies that, a type of social engineering where a hacker lures unsuspecting individuals to enter personal information such as usernames, passwords and credit card details or bank account details into a website controlled by the hacker is called phishing.

Read more on phishing here: https://brainly.com/question/23850673

#SPJ1

Which term best describes the set that makes up an algorithm?
A. Steps
B. Documents
C. Statements
D. Patterns

Answers

Answer:

A

Explanation:

An algorithm is a series of steps to get to a final result.

The term that best describes the set that makes up an algorithm is steps. The correct option is A.

What is algorithm?

An algorithm is a set of step-by-step instructions that are followed in order to complete a specific task or solve a particular problem.

Each step in the algorithm is typically a distinct command or operation designed to accomplish a specific goal or modify a specific aspect of the data being processed.

Documents, statements, and patterns are not the best terms to describe the collection of elements that comprise an algorithm.

While an algorithm can be documented or described in written or visual form, the term "documents" does not adequately describe the nature of the instructions themselves.

Similarly, while an algorithm may be made up of individual commands or operations, the term "statements" does not convey the concept of a step-by-step process.

Finally, while an algorithm may contain repeating patterns or structures, the term "patterns" does not imply a linear sequence of steps that must be performed in a specific order.

Thus, the correct option is A.

For more details regarding algorithm, visit:

https://brainly.com/question/22984934

#SPJ7

Which software is used to play, create, and modify audio and video files?
software is used to play, create, and modify audio and video files.

Answers

Answer:

Adobe premiere pro, Maya.

Explanation:

There are many programs that do the following. I have listed two of the most well known softwares that can do this.

Lab 8-1: Working with Boot Loader and Runlevels what is the root password

Answers

The root account on a Linux or Unix Operating System is the account with the most advanced privileges. The password to this account is called the "Root Password"

What is a bootloader?

The first thing that happens when the computer is powered on is that very important software is triggered. It is this software that helps the operating system (OS) to boot or load. This piece of software is called the bootloader.

By default, Unix OS does not have a root password. This must be set by the user. However, if this has been set and was lost, it may be reset using the following steps:

Boot to Recovery ModeDrop out to Root SheetRemount the File System with Write Permissionshere, type exactly the following command: mount -o rw,remount /Press "Enter" At this point, you should be able to make changes to the data on the hard drive. Next, enter passwd usernameretype the password and user name to confirm, thentype shutdown -r to restart the system.

Learn more about root passwords at:

https://brainly.com/question/26617114

it's 'p' at sign 'ssw0rd

20 Points!
Select the correct answer.
Look at this web page from the National Oceanic and Atmospheric Administration’s (NOAA) website. How does the page use contrast?

a web page on the NOAA website

A.
by providing a search box for users
B.
by using a consistent type of font for all text
C.
by using an image of an actual school of fish
D.
by using lighter font against a darker background

Answers

B. By using a consistent type of font for all text. Hope this helps and have a great day

Answer:

By using lighter font against a darker background

Explanation: Contrast, the state of being strikingly different from something else in juxtaposition or close association! Or opposites for short!

Please help with this question in java.
Computers .​

Answers

Here is the program~

/*Pattern.Java.*/

import java.util.*;

public class Pattern_Prog

{

public static void main (String args[ ])

{

Scanner input = new Scanner(System.in);

int length;

System.out.print("Enter a word : ");

String word = input.next( );

length = word. length( );

for(int i = 0; i<= length; i++)

{

for(int j = 0; j<i; j++)

{

System.out.print(" ");

}

System.out.println(word.substring(0,length-i));

}

input.close( );

}

}

Hope it helps you!!

If non-series-rated overcurrent devices (standard molded-case circuit breakers) are to be installed in the main switchboard, breakers with adequate ____ must be installed in the panelboards.

Answers

Breakers with adequate short-circuit must be installed in the panelboards.

What are these equipment about?

Common Overcurrent Protection Devices (OCPDs) are known to be Breakers or fuses that are often used  to protect the full unit from too much current.

Note that Equipment such as switchboards and panelboards are often installed in an electrical system and they have to be of adequate measure of short-circuit current condition.

Learn more about overcurrent devices  from

https://brainly.com/question/14284905

which of the following is a benifit of googling yourself ?

Answers

Answer:

you are protecting yourself from identity theft

The __________ process is designed to find and document vulnerabilities that may be present because there are misconfigured systems in use within the organization.

Answers

answer.

I don't know what it is

At the center of a star network is the _____, which manages the network and acts as a communications conduit for all network traffic.

Answers

Answer:

switch

Explanation:

At the center of a star network is the _____, which manages the network and acts as a communications conduit for all network traffic.

a. scale b. log c. portal d. switch

A:

d. switch

Customer records containing names, addresses, phone numbers, and purchase histories would be most likely stored in: customer relational networks database management systems spreadsheets information processing networks transactional networks

Answers

Customer records are the personal information of the customer that is registered in a store. Customers' records in stores are stored in the database management systems.

What is a database management system?

A database management system (DBMS) is a computer-based system that stores and manages the data stored by the users. It uses software to save, retrieve and run data-related queries.

DBMS is used to store and manage a large amount of information and allows users to manipulate them. This allows the users to interact and access the data of the customers.

Therefore, the customer's records are stored in database management systems.

Learn more about database management systems here:

https://brainly.com/question/4325836

#SPJ1

Other Questions
Under Pennsylvania's 1776 constitution, any man who was 21 or older, paid taxes and had lived in one place for a year could vote. At the time, how did Pennsylvania's voter requirements compare with those of other states can someone please help me what is 8435 times 56 The tax rate is 6.8% what is the tax on $9.95 round to the nearest hundredth PLSSS HELP IF YOU TURLY KNOW THISS Captures sunlight to make food for the cell through photosynthesis. What is the difference between health-related and skill-related fitness?. In three to four sentences, describe how fables can help you learn about people. Ignore the other questions I just need help with numbers 18 and 25 how do you work it out please help me out I would of have helped you Groupthink tends to stimulate rational discussion within groups. please select the best answer from the choices provided t f The Jones family plans a trip to the amusement park and purchase a family package for $128.00. They also want to but lunch and souvenir cups. The chicken platter costs $8.50 each and the burger platter costs $9.50 each. The souvenir cups each costs $100.00, which includes unlimited refills. Mr. and Mrs. Jones have a budget and are trying to decide who will order which platter and who will buy a souvenir cup. Let x represent the number of chicken platters, y represents the number of burger platters, and z represent the number of souvenir cups. Which technique can be used to remove air bubbles from a syringe? a) Hold the syringe downward, shake vigorously for 10 seconds, and expel the bubbles through the needle using the syringe plunger. Hold the syringe upright, provide a firm tap or flick to the b) barrel, and expel the bubbles through the needle using the syringe plunger. Hold the syringe upright, shake vigorously for 10 seconds, c) and expel the bubbles through the needle using the syringe plunger. Hold the syringe downward, provide a firm tap or flick to the d) barrel, and expel the bubbles through the needle using the syringe plunger. How do you do this I don't understand A monopoly is a firm that sells all or nearly all of the goods and services in a given market. What determines if a firm is a monopoly producer Why would other European countries not accept Jewish people who were trying to escape at the time? Read the rough draft of a works cited page. works cited gregor, saul. harnessing the wind. chicago: skyline publishing, 1998. cayman, felicia. the windmill way. topeka: heart of america press, 2010. tudor, tanya. off-shore sources. portsmouth: sunshine house, 2008. diaz, carlos. alternate energy. new york: academic press, 2003. using mla guidelines, which citation should be listed first on this page? gregor, saul. harnessing the wind. chicago: skyline publishing, 1998 cayman, felicia. the windmill way. topeka: heart of america press, 2010. tudor, tanya. off-shore sources. portsmouth: sunshine house, 2008. diaz, carlos. alternate energy. new york: academic press, 2003. Evaluate the measure x in the figure. What is the area of Vivian's backyard Find the area of this triangle, round to the nearest 10th A 22 ohm resistor and a 33 ohm resistor are connected in series and placed across a 120-v potential differancea. What is the equivalent resistance of the circuit?b. What is the current in the circuit?c what is the voltage drop across each resistor?d what is the voltage drop across the two resistors together? Glaucoma is a disease of the eye that is manifested by high intraocular pressure. Thedistribution of intraocular pressure in the general population is approximately normal withmean 16 mm Hg and standard deviation 3.2 mm Hg. If the normal range for intraocularpressure is between 10 and 22 mm Hg, than what proportion of the general population wouldfall within this range?