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
kotegsom [21]
3 years ago
15

write a function that returns a list, where each member of list contains previous day’s value multiplied by 2.​

Computers and Technology
1 answer:
sergeinik [125]3 years ago
5 0

Answer:

Explanation:

The following code is written in Java, the function takes in a list with the previous day's values. The function then uses that list, loops through it and multiplies each individual value by 2 and returns the modified list. The first red  square represents the test case for the function, while the second red square in the image represents the output.

 public static ArrayList<Integer> doubleIt(ArrayList<Integer> mylist) {

       for (int x = 0; x<mylist.size(); x++) {

           mylist.set(x, mylist.get(x)*2);

       }

       return mylist;

   }

You might be interested in
Where are the implementation instructions defined in a remote access policy definition?
nataly862011 [7]
The implementation instructions are in the procedure section and yes it describes how to support the two different remote access users and requirements.
8 0
3 years ago
Harry needs to make a presentation on endangered species of animals. Which presentation software elements can he use to display
Alina [70]

Answer:choice A is correct,since presentation.it has many issues which can't fit exactly into table but Incase it includes numbers table can be used

7 0
3 years ago
Why do attackers prefer to conduct distributed network attacks in static environments? (Select two.)
kozerog [31]

Answer:

These devices tend to employ much weaker security than traditional network devices and they're typically more difficult to monitor than traditional network devices.

Explanation:

3 0
2 years ago
Which are the two places where auto sum button is available?​
Pavel [41]

Click on the AutoSum button from the Editing group of the ribbon. Excel will highlight the ... The AutoSum option can be found in two areas :.

7 0
2 years ago
ted must send highly sensitive data over his pptp connection. what feature of pptp will give him the confidence that his data wo
Mandarinka [93]

Answer:

Encryption

Explanation:

PPTP (Point to Point Tunneling Protocol) is an old way of implementing networks, PPTP uses Generic routing encapsulation tunnel to encapsulate data sent on the network and Microsoft Point to Point Encryption (MPPE) those encryption mechanism ensures that data/packets sent through the network are encrypted.

5 0
3 years ago
Other questions:
  • Write a small program basic c++, that defines a negative integer (between ‐1 and ‐255), converts it to a positive value and then
    10·1 answer
  • If the floating-point number representation on a certain system has a sign bit, a 3-bit exponent, and a 4-bit significand. What
    8·1 answer
  • Write a Java program that creates a two-dimensional array of type integer of size x by y (x and y must be entered by the user).
    7·1 answer
  • Fill in the blanks to complete a summary of this part of the passage. For the power of Patents
    6·2 answers
  • What is the final gear reduction of a compound gear reduction of 36 to 12 for the first stage and 60 to 12 for the second stage?
    7·1 answer
  • The element of website design that refers to the website's aesthetic appeal and the functional look and feel of the site's layou
    10·1 answer
  • 9) Which date is assigned the serial number of 1?
    10·2 answers
  • What Is The First Computer Brought In Nepal ? <br>​
    10·1 answer
  • Which port security violation mode does not generate messages or increment the violations counter?
    5·1 answer
  • By the mid-1990s, how did revenue generated from video games compare to revenue generated from movies?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!