print out the last even number from an array of integers, if there is no even number, then print out a sentence indicating so.

Answers

Answer 1

Answer:

See the sample algorithm below.

Explanation:

array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 22];

function last_even(arr) {

    for( i = arr.length-1; i >= 0; i--) {

         if (arr[i] % 2 == 0) {

              console.log(arr[i]);

              break;

         }

         else {

              console.log("There is no even number!");

         }

    }

}

last_even(array);

Print Out The Last Even Number From An Array Of Integers, If There Is No Even Number, Then Print Out

Related Questions

Why are the social and ethical consequences of emerging technology hard to
predict?

Answers

Answer:

Technology is rapidly evolving over a short period of time. Which leads to a change in how people perceive and subsequently react to these fast paced advances.

Answer: try this one: It is impossible to see how technology will be applied to situations that have not yet occured.

Explanation: if it’s wrong please tell me

What is the value of the var variable after the execution of the following snippet of code:
int var;
var = -1;
var = var - 1;
var = var - var;

Answers

Answer:

The value of var is 0

Explanation:

Given:

The code snippet above

Required

Find the value of var after program execution

This line declares var as type integer

int var;

This line initializes var to -1

var = -1;

This line subtracts 1 from var; var - 1 = -1 -1 = -2

var = var - 1;

At this stage the value of var is -2

This line subtracts the value of var from var; i.e. -2 - (-2) = -2 + 2 = 0

var = var - var;

At this stage, the value of var is 0

Technician A says backup sensors use LEDs to detect objects. Technician B says that a backup sensor won't work correctly if the paint is thicker than 0.002 inch. Which technician is correct

Answers

Answer:

Technician B

Explanation:

As in the question,  it is mentioned that according to the Technician A the backup sensors used LED for tracking the objects and as per the technician B the backup sensor does not work correctly unless the paint is thicker than 0.002 inch

Therefore according to the above explanation, the technician B is correct as it provides the valid reason

i want pizzzzzzzaaaaaaaaaaa

Answers

sameeeeeeeeeeeeeeeeeeeee

Which one of the following statements referring to mobile Internet
access is FALSE?
3G stands for Third
Generation and 4G
for Fourth
Generation.
A USB modem or Internet
dongle is a device with
which you can connect to
a 3G/4G network to
access the Internet.
A 3G/4G network is a high
speed data network used by
suppliers of mobile
cellphones for broadband
services and Internet
connection.
A USB modem looks
like a flash disk and
operates without a
SIM card.​

Answers

Technically, the last statement is false. All cellular devices operate using a SIM card, they are essentially how a network service provider (I.e. AT&T, Verizon, et. al.) identify their devices and know what level of service to provide to the device when it sends/receives signals from their tower. Some USB wireless broadband devices do look like USB thumb drives, however, they will either contain an integrated SIM card or have a spot for a replaceable SIM card.

Why would you want to hyperlink objects into your own Google Slides presentation? (Select all that apply.) Select All Correct Responses For extending the learning experience for students. To make sure the presentation is linear So students can use the Slides for review and can go to additional resources outside of the presentation. To make the presentation more graphically appealing

Answers

The correct answers are A.  For extending the learning experience for students. C. So students can use the Slides for review and can go to additional resources outside of the presentation. D. To make the presentation more graphically appealing

Explanation:

The use of hyperlink objects in presentations means objects such as images, texts, or icons are associated with links or websites students can easily access by clicking on the specific image or element. This might be used in educational contexts to allow students to have a complete learning experience by providing alternative and external sources outside the presentation. For example, if the topic is space hyperlinks to NASA website can be included. This means, hyperlink objects extend learning experiences and provide additional resources (Option A and D).

Besides this, this resource can make a presentation more appealing as links to images, videos, and other visually interesting resources can be included (Option D). However, it also breaks the linearity of the presentation as students will need to move to other websites as they go through the presentation.

A port allows you to plug hardware into your CPU. Select one: A. False B. True

Answers

Answer: The answer is true.

Crack the secret message: Crrp, Crrp, Crrp Zh’uh jrlqj wr wkh prrq. Li brx zdqw wr wdnh d wuls, Folpe derdug pb urfnhw vkls. (hint: the original letters were shifted,for example if it is shifted by 1 that means Z becomes A , A becomes B, etc. You need to know the number of shifts)

Answers

Answer:

Zoom, Zoom, Zoom We’re going to the moon. If you want to take a trip, Climb aboard my rocket ship.

Explanation:

I got it. This is a caesar cipher with 3 shifts.

What does DOS stand for?

Answers

Answer:

Disk Operating System

Explanation:

"DOS is a platform-independent acronym for Disk Operating System which later became a common shorthand for disk-based operating systems on IBM PC compatibles."

What is the features of Mark 1​

Answers

Answer:

Okay:

Mark I was enourmous in size, measuring 8 feet high, 51 feet long and three feet deep. It weighed 5 tons, used 530 miles of wire and 730,000 separate parts. The operation of these parts was powered and synchronized by a long horizontal rotating shaft. A four horsepower engine drives the mechanical parts.

Harvard Mark I, an early protocomputer, built during World War II in the United States. While Vannevar Bush was working on analog computing at the Massachusetts Institute of Technology (MIT), across town Harvard University professor Howard Aiken was working with digital devices for calculation. He had begun to realize in hardware something like the 19th-century English inventor Charles Babbage’s Analytical Engine, which he had read about. Starting in 1937, Aiken laid out detailed plans for a series of four calculating machines of increasing sophistication, based on different technologies, from the largely mechanical Mark I to the electronic Mark IV.

Explanation:

hope it is helpful to you

Draw a truth table & logic circuit corresponding to the following logic statement
X = 1 if ( ( M is 1 OR N is 1 ) AND ( M is 1 AND N is 1 ) ) OR ( O is NOT 1 )

Answers

Answer:

The truth table, as well as the logic circuit of the given statement, is attached below.

Explanation:

Logical gates seem to be the essential building blocks of just about any computerized signal. It becomes a digital device with one or even more inputs and therefore only single output. The arrangement among outputs and inputs would be focused on this kind of logic. Upon that basis, logic gates were already called as AND, NOT, OR gate, etc.

what is the best combos for Nix in Brawlhalla (PS4)?​

Answers

I have never played the game but chose the good ones.

Answer:

sycthe is simple. Do down light and then turn them around. Then do chase dodge to neutral air. its an infinite combo

Explanation:

You require your users to log on using a user name, password, and rolling 6-digit code sent to a keyfob device. They are then allowed computer, network, and email access. What type of authentication have you implemented

Answers

Answer:

Multi - Factor Authentication

Single Sign On

When testing for current in a cable with eleven ​color-coded wires, the author used a meter to test five wires at a time. how many different tests are required for every possible pairing of five ​wires?

Answers

Multiply 5 times 5, then times 11, and you'll get 275.

Mention 5 ICT tools that supports E- learning​

Answers

Answer:1text magnifiwe

2head wands

3 keyboard for celebral

percy

4 typing aids

5 large prints

If this helps then comment

Explanation:

Which of these is a biotic factor in a forest?
Will
O A. Climate
O O
O B. Terrain
O C. Trees
O D. Water​

Answers

Answer: trees

Explanation:

A section break would work better than a page break for which task? separating text by topic applying different formatting to text within a document viewing a document as an outline breaking up a small amount of text into several pages

Answers

Answer:

applying different formatting to text within a document

Explanation:

A section break is used to separate a documents into different sections, thereby making it possible to apply different formats to the sections such as having different headers and footers, using a single column and double column for different sections, applying different page numbers e.t.c.

A page break is used to end a page and start a new page even if the old page has not been filled with text.

which topology enables only one person, at one time, to send data to others on the network?

Answers

Question:

Which topology enables only one person, at one time, to send data to others on the network?

Answer:

Ring topology

explain any two stress management techniques.

Answers

Answer:

1) Meditate : Create a little space in your room where you can meditate (e.g. light candles and incense, play calming music). Reaching a meditative state takes practice but there are some great tips for beginners online. Meditation can help ease anxiety and improve concentration.

2) Watch something funny. Laughter really is the best medicine. It relieves physical tension, reduces stress and increases immunity…so watch your fave comedy and laugh your way to tranquility.

Hope this helps.....

Pls mark this answer as brainliest :)

                                                                      STAY COOL

write down a description of how a magnetic had drive works

Answers

Answer:

This is how a magnetic hard drive works

Explanation:

The hard drive contains a spinning platter with a thin magnetic coating. A "head" moves over the platter, writing 0's and 1's as tiny areas of magnetic North or South on the platter. To read the data back, the head goes to the same spot, notices the North and South spots flying by, and so deduces the stored 0's and 1's.

Hope it helps pls mark as brainliest

In the cases of int, byte, long, short (In Java) Can you give the heirachy in ascending order?​

Answers

Answer:

Byte Short Int Long

Explanation:

Byte's 8 bit, short's 16, int's 32, and long's 65.

Which type of keyword is "capital"?

an event

a title

an abbreviation

a vocabulary term

Answers

Answer:

a vocabulary term

Explanation:

Answer:(d) a vocabulary term

Explanation:

What visual practice provides more information about logical relations when creating an ERD

Answers

Answer:

Logical Data Model

Explanation:

An Entity Relationship Diagram (ERD) is a model or a diagram designed to reveal the relationship between various entities such as people, places, objects, and so on within an institution. Entity relationship diagram is also known as Entity relationship model. This model is used to design relational database by various sectors such as education, engineering, business, etc.

ERD is designed using conceptual data model, logical data model, and physical data model.

The visual practice or model that gives more insight into the logical relations among the entity is the logical data model.

The logical data model is used to illustrate more detailed operational and relational data among the entities. It is more detailed than the conceptual data.

So, the correct answer is logical data model.

Mention 2 precautionary
measures to be observed
when using ICT tools​

Answers

Answer:

ICT is the abbreviated form of Information and Communication. It included different technologies like mobile phones, computers, USBs etc.

Following are two precautionary measures which should be observed when using any kind of ICT:

Use of Antivirus: It can used to protect anything placed inside the technology especially from hacking and viruses which can create many issues.Backup Data: Creating a backup of the data stored in the device is important as it can be recalled when the device malfunctions. Backup of the data can be created through using USBs, CDs etc or through cloud storage

Consider the following code snippet: int score = 0; double price = 100; if (score > 0 && price < 200 && price / score > 10) { System.out.println("buy"); } Which of the following statements is true on the basis of this code snippet? The output is buy. The code snippet compiles and runs, but there is no output. The code snippet doesn't compile. The code snippet causes a divide-by-zero error.

Answers

Answer:

The code snippet compiles and runs, but there is no output.

Explanation:

The condition is

score > 0 && price < 200 && price / score > 10

score = 0

price = 100

[(0) > 0]  and [(100) < 200] and [100)/(0) > 10]

false and ........

Since the first condition is false, the program will not validate the other conditions because the conditional "and" is false when at least one of the conditions is false

What are the useful techniques in program design?

Answers

A broad question, with many answers.

When designing a program you can use:

Setting up requirements, possibly in a use-case form ("as a ... I want to ... so that ...")Mapping the verbs and nouns in your requirements to classes and operations Drawing UML diagrams of the subject matterCreating flow charts and sequence diagrams Identify component boundaries with thin interfaces to keep complexity organized and local

What are examples of some Exotic currencies?
A) EURUSD, AUDUSD
B) GBPCHE, EURUSD
C) AUDCHF, NZDJPY
D) MXN, ZAR, HKD

Answers

Answer:

D) MXN, ZAR, HKD

Explanation:

Exotic currencies refer to currency that are used in countries with emerging economies therefore they lack liquidity, are extremely volatile and have very low volumes. The exchange rate of exotic currencies are usually very high because of its lack of liquidity, therefore trading these currencies are expensive. Examples of exotic currencies are South African rand (ZAR), Mexican peso (MXN), Hong Kong dollar (HKD), Chinese yuan (CYN), Turkish lira (TRY) and so on.

_________ is the start up sequence a computer conducts.

Answers

Answer:

Booting

Explanation:

Booting is the start up sequence a computer conducts when it is being turned on. The booting is done by the operating system. The booting process is usually started when a hardware on the computer is pressed or by a software command. For a windows computer, the BIOS is used to start the booting sequence. These boot sequence is called boot order or BIOS boot sequence.

A user is having a difficult time printing certain types of documents to her laser printer. When she sends complex, mult-page, multi-color PDF files to the printer, it refuses to print. What is most likely the solution

Answers

Answer:

Add RAM to the printer

Explanation:

Adding RAM to the printers gives the following advantages:

printer prints the documents faster with reduced print time. printer prints complex multi page, multi-color documents especially PDF files.Print server sends the job according to the capacity of the printer so when the RAM is added the print server can send more jobs and the printing process becomes faster and printer will not refuse to print large documents. As a result printer can accept more print jobs.It is also beneficial when the documents or files to be printed are of high resolution or are heavy files.

What are limitations of AI

Answers

Explanation:

Limitations of artificial intelligence. One of the main barriers to implementing AI is the availability of data. Data is often siloed or inconsistent and of poor quality, all of which presents challenges for businesses looking to create value from AI at scale.

Answer:

Risks and limitations of artificial intelligence in business

Businesses are increasingly looking for ways to put artificial intelligence (AI) technologies to work to improve their productivity, profitability and business results.

However, while there are many business benefits of artificial intelligence, there are also certain barriers and disadvantages to keep in mind.

Limitations of artificial intelligence

One of the main barriers to implementing AI is the availability of data. Data is often siloed or inconsistent and of poor quality, all of which presents challenges for businesses looking to create value from AI at scale. To overcome this, you should have a clear strategy from the outset for sourcing the data that your AI will require.

Another key roadblock to AI adoption is the skills shortage and the availability of technical staff with the experience and training necessary to effectively deploy and operate AI solutions. Research suggests experienced data scientists are in short supply as are other specialised data professionals skilled in machine learning, training good models, etc.

Cost is another key consideration with procuring AI technologies. Businesses that lack in-house skills or are unfamiliar with AI often have to outsource, which is where challenges of cost and maintenance come in. Due to their complex nature, smart technologies can be expensive and you can incur further costs for repair and ongoing maintenance. The computational cost for training data models etc can also be an additional expense.

Software programs need regular upgrading to adapt to the changing business environment and, in case of breakdown, present a risk of losing code or important data. Restoring this is often time-consuming and costly. However, this risk is no greater with AI than with other software development. Provided that the system is designed well and that those procuring AI understand their requirements and options, these risks can be mitigated.

See also Industry 4.0 challenges and risks.

Other AI limitations relate to:

implementation times, which may be lengthy depending on what you are trying to implement

integration challenges and lack of understanding of the state-of-the-art systems

usability and interoperability with other systems and platforms

If you're deciding whether to take on AI-driven technology, you should also consider:

customer privacy

potential lack of transparency

technological complexity

If you're considering writing a tender document to procure AI, you can seek help from the Northern Ireland Artificial Intelligence Collaborative Network(link is external).

AI and ethical concerns

With the rapid development of AI, a number of ethical issues have cropped up. These include:

the potential of automation technology to give rise to job losses

the need to redeploy or retrain employees to keep them in jobs

fair distribution of wealth created by machines

the effect of machine interaction on human behaviour and attention

the need to address algorithmic bias originating from human bias in the data

the security of AI systems (eg autonomous weapons) that can potentially cause damage

the need to mitigate against unintended consequences, as smart machines are thought to learn and develop independently

While you can't ignore these risks, it is worth keeping in mind that advances in AI can - for the most part - create better business and better lives for everyone. If implemented responsibly, artificial intelligence has immense and beneficial potential.

Other Questions
which order pair comes from the table? what is the measure of x Question 14 of 252 PointsWhich of the following is a cost of mining aluminum from new bauxitedeposits?A. It helps preserve plants and animals in rain forests.O O OB. It requires a large amount of energy.C. It takes less energy to transport this lightweight metalD. It can be recycled over and over again. 1. Characteristics of oligopoly An oligopolistic market structure is distinguished by several characteristics, one of which is market control by a few large firms. Which of the following are other characteristics of this market structure? Check all that apply. Either similar or identical products Difficult entry Neither mutual interdependence nor mutual dependence No entry Mutual interdependence PLEASE ANSWER THIS GEOMETRY QUESTIONS ASAP FOR ME PLEASE!! Imagine that the caption of this photo explains that the family was living in this car. How would this information would most likely affect a reader?It would make the reader question the environment.It would make the reader wonder about the time period.It would make the reader curious about the time period.It would make the reader feel concern for the family. Which of the following damages would be covered under the Liability Coverage of the Personal Auto policy? A Damage to a neighbor's riding lawn mower in the care of the insured B Damage to a rental car rented to the insured C Damage to property being transported by the insured D Damage caused to a rented garage by the insured auto The city of Raleigh has 9500 registered voters. There are two candidates for city council in an upcoming election: Brown and Feliz. The day before the election, a telephone poll of 350 randomly selected registered voters was conducted. 112 said they'd vote for Brown, 207 said they'd vote for Feliz, and 31 were undecided.a. What is the population of this survey?b. What is the size of the population?c. What is the size of the sample?d. Give the sample statistic for the proportion of voters surveyed who said they'd vote for Brown.e. Based on this sample, we might expect how many of the 9500 voters to vote for Brown? hat is an advantage of discussing a topic or complex task with a group? A. It makes you maintain a specific role throughout the discussion. B. It shows you how to follow group discussion instructions. C. It allows you to explore points of view that differ from your own. D. It gives you an opportunity to have a conversation with friends. The tabletop below is made from right triangles, each the same size. Your company charges $0.20 per square inch for sanding the tabletop. Which of the following is closest to the tabletops area, in square inches? 550 950 2,800 3,950 5,600 Each of these geometric shapes has a different number of sides. Arrange the shapes in order from the shape with the greatest number of sides to the shape with the fewest number of sides.1. triangle 2. square3. rectangle4. octagon5. hexagon6. pentagon How many subheadingd must you list under a heading Calculate the angular momentum of a solid uniform sphere with a radius of 0.150 m and a mass of 13.0 kg if it is rotating at 5.70 rad/s about an axis through its center. Using side lengths only, could the triangles be similar? Triangle X Y Z. Side X Y is 1.5, X Z is 1, Z Y is 2. Triangle Q S R. Side Q R is 1, R S is 1.5, S Q is 0.5. Which Modernist work makes use of stream of consciousness? John played a note on his tuba that vibrated the air 50 times per second. Ifhe played the note for 2 seconds, how many times did the air vibrate? According to Chinese legend, the man who drained water from the oceans to give land to the Xia wasa Pangub YuHuangd ShangdiC Which is one way that analyzing ice benefits scientists who study ancient climates? Scientists can analyze frozen volcanic dust to help predict eruptions. Scientists can drill deep into the ice to collect ice cores. Scientists can use pollen grains in ice to make inferences about the climate area. Scientists can study tree rings in ice to learn more about past climates. To which of the following would Kant and Nozick agree? a) If one is able to do what one wants, one is free. b) To be free is to pursue ones desires so long as such pursuit does not harm others. c) Individual rights constrain what can be done in the name of maximizing overall utility. d) Individual rights should be protected insofar as they maximize overall utility. e) All of the above. Submitting a rsum to a potential employer means you do not need to complete an employment application. True False