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
Virty [35]
3 years ago
13

Declare an array named a of 10 elements of type int and initialize the elements (starting with the first) to the values 10, 20,

...., 100, respectively.
Computers and Technology
1 answer:
kherson [118]3 years ago
5 0

Answer:

int a[10] = {10,20,30,40,50,60,70,80,90,100};

Explanation:

In the above statement, we declare the integer data type array variable that is 'a' then, pass its index value that is 10 which means it contains only 10 values and initialize the components of the array variable that is starting with 10 and end at 100 in the difference of 10. So, the following declaration is correct according to the statement.

You might be interested in
Walter is developing a website for the logistics service he offers. He wants to make the website attractive, bright, and visuall
vlada-n [284]

Walter develop the website by:

  • Registering for a domain name
  • Research for a web hosting firm.
  • Have and Prepare your content done.
  • Lastly, create or build your website.

<h3>Can a person develop my own website?</h3>

The use of CMS that is website building platform is known to be a type of platform that can also help one in building websites and handling or monitoring its online content.

Note that by following the above steps,  Walter can create or develop his own website.

Learn more about website from

brainly.com/question/13171394

#SPJ1

6 0
2 years ago
Explain why the cosmic horizon is much smaller than the universe itself
sashaice [31]
The cosmic horizon is what your eye allows you to see, and that is only a small fragment of the universes actual size
3 0
3 years ago
State five differences between Dos and Windows.​
nalin [4]
1. DOS is single tasking OS. Windows is multi-tasking OS.

2. DOS consumes quite low power. Windows consumes high power.

3. DOS memory requirements are quite low. Windows memory requirements are quite high as compared to DOS.

4. DOS has no support for networking. Windows supports networking.

5. Multimedia is not supported in DOS. Windows supports multimedia likes games, videos, audios etc.
6 0
3 years ago
Calcula cuánto costará tener encendido toda la noche (8 horas) un radiador de 2500 W sabiendo que el precio del kWh es de 16 cén
Zinaida [17]

Answer:

I know you're going to delete my answer... But I have an essay which needs to be completed online and I need to ask a urgent question!

If you have a better reason WHY you need me to answer the RIGHT answer... Please reply.

Explanation:

3 0
3 years ago
Write a client program ClientSorting2 and in the main() method: 1. Write a modified version of the selection sort algorithm (Sel
TEA [102]

Answer:

The program in Java is as follows:

import java.util.*;

public class Main{

 public static void SelectionSorter(String[] my_array){

     System.out.print("\nAfter sort: ");

     for (int ind=0; ind < 22; ind++ ){

         int min = ind;

         for (int k=ind+1; k < 23; k++ )

         if (my_array[k].compareTo(my_array[min] ) < 0 ){ min = k;  }

         String temp = my_array[ind];

         my_array[ind] = my_array[min];

         my_array[min] = temp;    }

   for (int j=0; j < 23; j++){   System.out.print(my_array[j]+" ");}

    }

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 String [] myarray = new String [23];

 for(int i= 0;i<23;i++){ myarray[i] = input.nextLine();  }

 System.out.print("Before sort: ");

 for ( int j=0; j < 23; j++ ){        System.out.print(myarray[j]+" ");    }

 SelectionSorter(myarray);

}

}

Explanation:

This defines the function

 public static void SelectionSorter(String[] my_array){

This prints the header for After sort

     System.out.print("\nAfter sort: ");

This iterates through the array

     for (int ind=0; ind < 22; ind++ ){

This initializes the minimum index to the current index

         int min = ind;

This iterates from current index to the last index of the array

         for (int k=ind+1; k < 23; k++ )

This compares the current array element with another

         if (my_array[k].compareTo(my_array[min] ) < 0 ){ min = k;  }

If the next array element is smaller than the current, the elements are swapped

<em>          String temp = my_array[ind];</em>

<em>          my_array[ind] = my_array[min];</em>

<em>          my_array[min] = temp;    }</em>

This iterates through the sorted array and print each array element

   for (int j=0; j < 23; j++){   System.out.print(my_array[j]+" ");}

    }

The main begins here

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

This declares the array

 String [] myarray = new String [23];

This gets input for the array elements

 for(int i= 0;i<23;i++){ myarray[i] = input.nextLine();  }

This prints the header Before sort

 System.out.print("Before sort: ");

This iterates through the array elements and print them unsorted

 for ( int j=0; j < 23; j++ ){        System.out.print(myarray[j]+" ");    }

This calls the function to sort the array

 SelectionSorter(myarray);

}

}

3 0
3 years ago
Other questions:
  • Travis completes his assignments on a word processor. He wants to make sure that his documents are free from spelling or grammat
    9·2 answers
  • What is the greatest distance that can separate the USB 2.0 device from the computer?
    8·1 answer
  • A technology company only hires applicants who are under the age of 30. This company could face possibly _________ consequences
    9·2 answers
  • Which kinds of Internet content do you think you need permission to use? Check all that apply.
    8·2 answers
  • Do you think that feedly will help you create an effective personal online learning environment? Why or why not?
    15·1 answer
  • Your mother wants to purchase a larger hard drive for her computer and asks you to see what type of drive interface she has. her
    6·2 answers
  • What is an effective way to record change management? (5 points)
    9·1 answer
  • What is the Best IPTV service provider in the USA?
    9·1 answer
  • Company Wizzy is having trouble with network security. Issues with authentication, viruses, malware/spyware, and other network i
    12·1 answer
  • How can you prevent someone with access to a mobile phone from circumventing access controls for the entire device
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!