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
solmaris [256]
3 years ago
12

Create a static method called fillArray, which takes an integer array as an input parameter, along with an integer initial value

. It should then fill the array with values starting from the initial value, and counting up by 1s. For example, if the data array has length 5, and if the initialValue is 3, then after execution the array should hold this sequence: 3 4 5 6 7. public static void fillArray (int[] data, int initialValue) {
Computers and Technology
1 answer:
JulijaS [17]3 years ago
3 0

Answer:

public class print{

   

   public static void fillArray(int[] arr, int initialValue){

       

       int n = arr.length;

      for(int i=0;i<n;i++){

          arr[i] = initialValue++;

      }

       for(int i=0;i<n;i++){

           System.out.print(arr[i]+" ");

      }

       

   }

    public static void main(String []args){

       

        int[] array = new int[5];

        int initialValue =3;

       

        fillArray(array,initialValue);

       

    }

}

Explanation:

Create the function with two parameter first is array and second is integer.

Then, declare the variable and store the size of array.

Take the for and fill the array from the incremented value of initialValue  by 1 at every run of loop.

After loop, print the element of the array.

Create the main function which is used for calling the function and also declare the array with size 5 and initialValue with 3. After that, call the function with this argument.

You might be interested in
6. How can you encrypt an entire drive, including files and folders belonging to other users? a. EFS b. User Account Control c.
matrenka [14]

Answer:

A.

Explanation:

Encrypting File System (EFS) is a file system which enables you to encrypt files, thus making them unviewable by any account but your own.

6 0
3 years ago
Briefly explain how an operating system may be described as an "interrupt-driven program." as system calls) from
Reptile [31]

Answer: Interrupt-driven program is defined as the program that permits to executes by stopping the execution of the currently running program.The completion of the program is indicated by the interrupt as a signal from assistant action .

Operating system is the system that carries out the functions and task of computer system.It has the major mechanism in which every alteration and changes are remarked such as state of hardware, event alteration, software component changes etc by the interrupt system.

Through interrupt system the operating system conducts new assignment and task for the compensation of changes that occurred in the system by halting the current working. Resources are invoked to fulfill the requirement of the work load.Thus, operating system can act in interrupt driven system's  manner.

7 0
3 years ago
________ reveals functional requirements regarding the exchange of data and services between systems.
77julia77 [94]
The answer to this question is b
4 0
2 years ago
Drag the correct type of update to its definition.
Deffense [45]

Answer:

Base band : A list of radio frequencies

PRI : The chip that controls the radio frequency waves within a device

PRL: The connection between a mobile device and radio tower

Explanation:

Base-band is the range or band of frequencies. It contains a number of between upper and lower limit of the frequency. For example if the range of transmission of the signal is 2khz to 3khz. The frequencies between this range are called base band.

PRI is the chip that is used to control the different frequencies received at the device. This chip control the radio frequencies that are allowed to the devices. It is the short form of primary rate interface.

PRL is the list named as Preferred Roaming List. It has stored the information of the mobile devices that are connected to the mobile phone. This list is used while communicating between mobile device and tower.

8 0
3 years ago
Which file types have .exe and .omg as their extensions?
Tatiana [17]
I know that Windows computer files use the extension exe.

3 0
3 years ago
Other questions:
  • For local travel addresses and street names should be
    14·1 answer
  • Which branch of science helps avoid or minimize stress-related injuries at workplace?
    12·2 answers
  • how can you create fades with the smart tool? How can you specify the types of fade curves that are used with the smart tool?
    13·1 answer
  • What is one of the most effective security tools available for protecting users from external threats?
    15·1 answer
  • python Write a program that will take a file named Celsius.dat that contains a list of temperatures in Celsius (one per line), a
    9·1 answer
  • In Access, it is possible to have _______________ fields, that is, fields that can contain more than one value.
    9·1 answer
  • A group consists of 10 kids and 2 adults. On a hike, they must form a line with an adult at the front and an adult at the back.
    10·1 answer
  • Viruses which activate themselves after a specific time is called
    10·2 answers
  • Guidewords for the word “serpent” may be
    8·2 answers
  • What will be the result from running the following program?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!