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
djverab [1.8K]
3 years ago
6

Write a program to assign distinct number between 1 and 200 into an int array of 100 elements in ascending order (you may reuse

the code from practice

Computers and Technology
1 answer:
Alexus [3.1K]3 years ago
7 0

Answer:

import java.util.Arrays;

public class num2 {

   public static void main(String[] args) {

       int []intArray = new int[100];

       for(int i=0; i<intArray.length; i++){

       intArray[i] = i+1;

       }

       System.out.println(Arrays.toString(intArray));

   }

}

Explanation:

Firstly create an array of size 100 with this statement

int []intArray = new int[100];

Using a for loop add elements into the array starting at i=0+1 (to acheive an asceending order) since i will run from 0-99.

see the attached code and output

You might be interested in
QUICK 50 POINTS WILL GIVE BRAINLY!!!
Goshia [24]

Answer:

1. grab a bowl spoon and ice cream

2. take your spoon and put a desired amount of ice cream

3. add topping if needed

4. clean up and enjoy!!

Explanation:

6 0
3 years ago
Read 2 more answers
Which of the following statements about light emitting in diodes is correct
andriy [413]

<span>The options attached to the question above are as follows:</span>

<span>
A. Light-Emitting diodes are used as indicators in circuits

B. Light-Emitting diodes are used as defectors in circuits

C. Light-Emitting diodes have very short life-spans in circuits

D. Light-Emitting diodes conduct current in either direction in circuits</span>

ANSWER

The correct option is A.

Light emitting diodes [LED] refers to a semi conductor diode that glows when current flows through it by converting electrical energy into light. LED has many applications and one of it is that is used as an indicator in electric circuits. The circuit symbol of LED is made up of two arrow marks, which is used to indicate the radiation that is emitted by the diode.

3 0
4 years ago
What is a disadvantage of communicating on social media?
ElenaW [278]

Answer:

Lack of privacy

Explanation:

6 0
3 years ago
Select the correct answer.
vredina [299]
The answer is B I did the test
4 0
3 years ago
Como se genera la electricidad con energias no renovables
IrinaK [193]

Answer:

efeiueur eiuube erferve

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Click _______ to view each individual record of a mail merge document.
    5·2 answers
  • What are options in the Advanced tab in the Share Workbook dialog box? Check all that apply
    14·2 answers
  • The most commonly used software in the school systems that include word processor, spreadsheet, database management system, and
    6·1 answer
  • A raised dot (ú) shows where the enter key was pressed. true or false.
    13·1 answer
  • Tsunami warning systems that utilize satellite technology to send an alarm have recently been developed and installed. these sys
    14·1 answer
  • Which of the following is the amount of space available on a screen to display information?
    8·1 answer
  • A(n) _____ investigates, analyzes, designs, develops, installs, evaluates, and maintains a company’s information systems.​
    10·1 answer
  • Please help me with this this is Computer chapter Advanced HTML of class 8th​
    10·1 answer
  • Technology is defined as human ________________ in action that involves the generation of knowledge and processes to develop sys
    15·1 answer
  • The protection of intellectual property (ip) is an example of what kind of information security need?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!