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
Vikentia [17]
3 years ago
8

Int[] myArray1= new int[24]; int[] myArray2= new int[10]; float[] myArray3= new float[8]; int index1, index =0 for(int index1 =0

; index1<24; index1++){ myArray1[inex1]=index1*2; index2=index1%10; index3=index1%8; myArray2[index2] = index3 + index 2 + myArray1[index1]; myArray3[index23 = myArray1[index2] + index3;
Computers and Technology
1 answer:
anastassius [24]3 years ago
3 0

Answer:

The value of myArray2[index2] when index1 = 12 is 30

Explanation:

In the source code, the formula for myArray2[index2] is;

   myArray2[index2] = index2 + index3 + myArray1[index1],

   myArray1[index1] = index1 * 2,

   index2 = index % 10 (equal to the remainder) and

   index3  = index % 8

When index1 increases to 12 in the for-loop statement, the "myArray1[index1]" is equal to 24, index2 is equal to 2 and index3 is 4. The total sum is equal to 30 and assigned to "myArray2[index2]".

You might be interested in
Someone please help fast! I’m taking the test rn and I don’t understand this!!!!!!
andrezito [222]

Answer:

the mistake that was made by allen is that he was not suppose to hire a highly proficient technician to install the heating and cooling system in the granary.

7 0
3 years ago
Kelly completes a bachelor's degree in animation from a top school in New York. She would now like to look for a job that will p
nikdorinn [45]
I believe she would have a best chance in a media production house, animation is a form of media and would be best put to use there.
8 0
3 years ago
Read 2 more answers
What is Access? When would you use Access instead of Excel?
SpyIntel [72]

Answer:

Access is a database management system from Microsoft.

Explanation:

Access allows users to view, edit and delete data, manage database tables, forms, queries, reports and macros.

Access should be use instead of Excel when you need to manage data and have it organize, easy to search and available to different users. If you need to be able to track information that is in different categories but is related, Access is a better option.

4 0
4 years ago
An upper-layer packet is split into 10 frames, each of which has an 80% chance of arriving undamaged. If no error control is don
Arisa [49]

Answer: The message must be sent 9.313 approximately 9 times to get the entire data through.

Explanations: To find how many times the message must be sent on average to avoid error control in data link later.

E = 1/P

E = The average number of attempt before successful transmission.

P= Total probability of transmission without error.

STEP1 : FIND TOTAL PROBABILITY;

Since it each frame has a probability of 80% to be successful.

For each frame p = 80/100 = 0.8

For the 10 frame; total probability

P= (0.8)^10 = 0.1074

STEP2: FIND THE AVERAGE NUMBER OF OF TRIAL BEFORE A SUCCESSFUL TRANSMISSION WITHOUT ERROR;

Using equation above

E = 1/P

E= 1 ÷ 0.1074 = 9.313

Therefore they must be an average of 9.313 approximately 9 trials before a successful transmission without error.

5 0
3 years ago
Read 2 more answers
19. Squares. Write a program class named SquareDisplay that asks the user for a positive integer no greater than 15. The program
Mrrafil [7]

Answer:

// program in java.

// package

import java.util.*;

// class definition

class SquareDisplay

{

// main method of the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

    // variable

       int num;

       // scanner object to read input

Scanner scr=new Scanner(System.in);

System.out.print("Enter an integer in the range of 1-15:");

 // read integer from user

num=scr.nextInt();

 // read until input is not in range 1-15

while(num<0 || num>15)

{

    System.out.print("wrong input!!enter again:");

     // read again

    num=scr.nextInt();

}

// print square of X

for(int a=1;a<=num;a++)

{

    for(int b=1;b<=num;b++)

    {

        System.out.print("X");

    }

    System.out.println();

}  

   }catch(Exception ex){

       return;}

}

}

Explanation:

Read an integer from user and assign it to variable "num".Check if input is not  in range 1-15 then ask again until user enter a number between 1-15 only.Then  print a square of character "X" with the help of two nested for loops.

Output:

Enter an integer in the range of 1-15:-4                                                                                  

wrong input!!enter again:20                                                                                                

wrong input!!enter again:4                                                                                                

XXXX                                                                                                                      

XXXX                                                                                                                      

XXXX                                                                                                                      

XXXX

3 0
3 years ago
Other questions:
  • Write a program that prompts the user for the shift value (e.g. 3) and then a plain-text message to encode. Encrypt the message
    5·1 answer
  • Which technology was used in fourth generation of computer​
    13·2 answers
  • "You are setting up a new subnetwork on an existing network. Management has asked that you use existing cabling that the company
    14·1 answer
  • Can anyone fill in the space please
    6·1 answer
  • Which kind of testing runs the system in a simulated environment using simulated data?a) validation testing. b) verification tes
    5·1 answer
  • Software refers to the physical parts of a computer.<br> a. True<br> b. False
    11·2 answers
  • Will mark brainliest
    14·1 answer
  • The Zoom feature allows you to either increase or decrease the size of your document on the screen,
    6·1 answer
  • Please help i have 15 mins
    5·1 answer
  • Assume that you have implemented a sequence class. Describe the mySequence object (i.e., items with the correct order and the po
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!