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
Likurg_2 [28]
4 years ago
14

Write a function negateOdds that takes a list of integers and returns a list of integers with all of the odd integers negated. n

egateOdds :: [Integer] -> [Integer]
example: [1,2,3,4,5] should return [-1,2,-3,4,-5]
Computers and Technology
1 answer:
aleksley [76]4 years ago
5 0

Is this computer science?

If so, then the function you would need for your code is this...

_____

if (someValue%2 != 0) {

 value *= -1;

        }

_____

//basically <u>number%2 == 0</u> means even so "!" means false so "not even" meaning "odd."

Assuming you are doing an array list (given a set value) or a for-loop with an

int someValue = Integer.parseInt(args[i]); inside (not given a set value and not restricted)

Otherwise ignore me....lol

You might be interested in
. In an airport, a system consisting of sensors, bar code readers and remote controls is MOST LIKELY used for
labwork [276]

Answer:

baggage handling

.......

3 0
3 years ago
Read 2 more answers
Which of the following types of advertising is the most difficult for consumers to ignore?
ICE Princess25 [194]
There are many types of advertisements to entice people and persuade them to buy a product some of these include Info-mericals, Celebrity Appeal and Bandwagon for example.

But the MOST difficult to ignore is Product Placement  
5 0
4 years ago
Read 2 more answers
1) what are two functions of a pick or count condition?
viktelen [127]
1.  The best option is C) pick an object at random, and keep track of how many copies of an object are left in a game.
2.   The best option is D) clockwise and counterclockwise.
3.    your 3rd question does not seem to be clear to me.
3 0
3 years ago
Choose all items that represent characteristics of an HTML element. used to include additional information in an attribute consi
Sphinxa [80]

Answer:

Explanation:

We could find different kind of tags in HTML, in this case, we can choose the tag <p> we're going to see all the items about this tag.

We can close the tag with the symbol /

<p> example </p>

We can add id or class in this tag

<p id="example"> example </p>

<p class="example"> example </p>

this help up to add CSS code, but we can add style direct in the HTML code:

<p style="color: red;"> example </p>

In this example the text going to be color red

8 0
4 years ago
Geraldo would like to compare two areas of text, Text1 and Text2, to each other. What steps should he take?
Phoenix [80]

Answer:

Can you elaborate on this?

7 0
3 years ago
Other questions:
  • Which of the following is true regarding Moore’s Law? A.) explained the growth in computing capabilities between 1965 and 1995 B
    14·1 answer
  • 1. Why is it important to evaluate the website on which you plan to shop? (1 point)
    7·2 answers
  • What do you think the need for so many different form factors and server types are?
    13·1 answer
  • What are comments meant to do?
    12·1 answer
  • Describe data center technology and its relevance to modern-day cloud computing. Support your opinion with cited information.( S
    14·1 answer
  • Write a line of code to convert time to hours. Remember there are 60 minutes in an hour. Then write a line of code to calculate
    9·2 answers
  • You can use your student ID card to get discounts in all of the following except
    6·2 answers
  • Which step in the software development life cycle involves making improvements based on user feedback?
    13·2 answers
  • 8. Explain strategies employed by the operating system to ensure safety of programs and data in
    15·1 answer
  • Identify the true statements about the approach to privacy around the world. a. Uncertainty concerning the nature, extent, and v
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!