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;

Answers

Answer 1

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]".


Related Questions

which fields in the contact form is used to control the order in which contacts are displayed in the current view?

Answers

Answer:

The answer is "File As"

Explanation:

The file is a data collection, that is processed either by filename in a single system. It could be a text, an image, a sound or a streaming server, a software collection, an and app, and other data collection. In this, the File As the field is used to order in connections that are displayed in the original understanding was controlled by using the contact-form sector.

Computer design software requires _____ to be used properly and successfully by architects.
a. an understanding of details and construction
b. an eye for design and a knowledge of architecture
d. architectural talent and an eye for design

Answers

a I hope it helps you out

Answer:

architectural talent and an eye for design

Explanation:

hope it helps

anyone please answer this its important !!!!!!!!!!!!!​

Answers

Answer:

what

Explanation:

In Scratch, you have to choose backdrops from a limited number in the Scratch image library.
Group of answer choices

True

False

Answers

I would say it would be True

Answer:

True

Explanation: im Awsome

write a deffrentiate between inkjet peinter and laser printer​

Answers

A inkjet printer uses ink, while a laser printer doesn’t need ink and it’s named laser because it’s like a laser that prints the objects.

Also a laser printer can print 3D objects while the ink printer can only print on paper.

Which of the following actions is most likely to be effective in reducing the digital divide at a local level? A Creating an application that offers coupons and discounts for local businesses Offering a discount to utility customers who pay their bills online instead of by mail C. Providing free community access to computers at schools, libraries, and community centers Requiring applicants for local government jobs to complete an online application​

Answers

Answer: C

Explanation:

The action that is most likely to be effective in reducing the digital divide is Providing free community access to computers at schools, libraries, and community centers.

What is digital divide in a community?

The notion of the "digital divide" is said to be a form of growing gap that is said to exist between the underprivileged people of society, such as the poor people.

Conclusively, Note that this may be due to different reasons and to reduce it, providing free community access to computers at schools, libraries, and community centers will help.

Learn more about digital divide from

https://brainly.com/question/7478471

What is an example of a recent development in technology

Answers

Artificial Intelligence (AI) and Machine Learning. ...

Robotic Process Automation (RPA) ...

Edge Computing. ...

Quantum Computing. ...

Virtual Reality and Augmented Reality. ...

Blockchain. ...

Internet of Things (IoT) ...

5G.

Answer:

every day new things are made and different.

Help me asap please

Answers

Number 3 is the answer good luck

Which of the following represent features of free software licensing? Check all of the boxes that apply.
is concerned with defending users' freedom of use
is always free of cost
makes source code available for editing
allows users to redistribute modified software as proprietary
is an idea that was developed by the Open Source Initiative (OSI)

Answers

Answer: A :is concerned with defending users’ freedom of use

C:makes source code available for editing

Explanation:

Answer:

a and c

Explanation:

CAN SOMEONE PLEASE HELP ME OUT I REALLY NEED THE ANSWER!

Answers

Answer:

This will work for most languages, but this is mainly for c#. Double check what language your using before putting in this answer.

          Console.WriteLine("What grade are you in?");

           int grade = Convert.ToInt32(Console.ReadLine());

           if (grade == 9)

           {

               Console.WriteLine("Freshman");

           }

           if (grade == 10)

           {

               Console.WriteLine("Sophomore");

           }

           if (grade == 11)

           {

               Console.WriteLine("Junior");

           }

           if (grade == 12)

           {

               Console.WriteLine("Senior");

           }

           if (grade < 8)

           {

               Console.WriteLine("Not in High School");

           }

Explanation:

The first line asks what grade are you in, then when the user types in the grade it saves it in a variable. We then use that variable for the conditionals. The conditional states, whatever grade level your in, it prints your high school year title. If anything is lower than 8, it will print not in high school.

Which of these helps improve readability?

using all uppercase text

putting two spaces after a period

using left-aligned text

using an image instead of text

Answers

Answer:

using left-aligned text

Explanation:

Using left-aligned text helps improve readability. The correct option is 3.

What is readability?

The ease with which written text can be read and understood by its intended audience is referred to as readability. It is a measure of how clear and simple the language used is.

Because it creates a clean and consistent left margin that helps guide the reader's eye from line to line, using left-aligned text can help improve readability.

Using all uppercase text can make text more difficult to read because it is more difficult to distinguish between letters and words. It can also give the appearance of shouting or aggression.

Putting two spaces after a period was once taught in some typing classes, but it is now discouraged because it can disrupt the visual flow of text and create uneven spacing between words.

Thus, the correct option is 3.

For more details regarding readability, visit:

https://brainly.com/question/19540657

#SPJ3

PLEASE HELP. How do you do this? ANSWER only if you know Please.

Answers

I think it might be 16. But I don’t really now so I say wait for another person’s answer this one might not be correct

Answer:

16

Explanation:

answer = num1 + num2 // 3+2 = 5

answer = answer + num1 // 5+3 = 8

return answer*num2 // 8*2 = 16

What does the image depict:
a. a distributed database
b. a parallel database
c. an extranet
d. an intranet

Answers

Answer:

b

Explanation:

i guess

Answer:

b. A parrallel database

Explanation:

10. A loop statement is given as:
for(i=10;i<10;i++)
{
Statement
}
For how many times will the given loop statement be executed:
(a) none
(b) 1 time
(c) 10 times (d) infinite​

Answers

Answer: a. None

Explanation:

The loop will not run as the condition always returns false.

i=10 and the condition given: i<10 which is false always. So, the loop will not run.

ASAP!
Use the drop-down menus to complete the statements about Contacts and the Contacts View.

A ( Task, calendar, or contact ) is an object stored in Outlook that contains information about individual people you want to communicate with.

Use the ( Mail, people, or calendar ) icon in the Navigation pane to see the Contacts View page.

Answers

Answer:

Contact

People

Explanation:

Write a function that takes two arguments and returns their sum.
In the main part of your program (the part that isn't inside a function), call your
function to test it out.

Answers

Answer & Explanation #1

To answer your first query. You can write a function that takes two arguments and returns their sum like this:

#Python program to add two numbers using a function

def add_num(a,b): #function for addition

   sum=a+b

   return sum #return value

num1=25  #variable declaration

num2=55

print("The sum is",add_num(num1,num2)) #call the function

Answer & Explanation #2

As for your error, I believe it is an indent error in your first return statement. All you must do is indent the return statement.

What does the aperture on a camera control?

Answers

Answer:

Aperture controls the brightness of the image that passes through the lens and falls on the image sensor.

Explanation:

Which of the following elements is used to insert a blank line or return in an HTML document?
a. BRK
b. BRE
c. BREAK
d. None of these​

Answers

Answer:

b

Explanation:

corect me if wronggggggg

The element that is used to insert a blank line or return in an HTML document is <br>. The correct option is d.

What is HTML?

The preferred markup language for documents intended to be viewed in a web browser is HTML, or HyperText Markup Language.

Technologies like Cascading Style Sheets and scripting languages like JavaScript can help.

Pages that are presented on the internet are frequently created using HTML.

Each page has a specific collection of HTML tags on it, including hyperlinks that lead to other pages. Every page we see on the internet is created using some form of HTML code.

A line break in text is produced by the HTML element <br> (carriage-return).

Thus, the correct option is d as none of the options are correct.

For more details regarding HTML, visit:

https://brainly.com/question/15093505

#SPJ6

What are examples of primary keys that most likely would be used for customers in a department store database? Check all that apply.


genders

blank values

years of birth

customer IDs

phone numbers

social security numbers

Answers

Answer:

customer IDs

phone numbers

social security numbers

Explanation:

A primary key may be defined as the special choice of the attributes which uniquely specify tuple in the relation. It is the set of columns where values uniquely identify each of the rows in the table.

It is use to find the unique record form the table or database. It is the key in the relational database which is unique for each record. It can be a unique number such as identification number, vehicle number, etc.

In the context, the primary keys which is used for the customers in a departmental store database are :

-- customer IDs

-- phone numbers

-- social security number

All these are unique set of number and they are the primary keys for a customer as they are uniquely identifies a particular customer. No other person is given the same phone number or phone number.

is megan the stallion hot

Answers

Answer:

Explanation:

Cool

Answer:

oh im not sure lol

Explanation:

Stella has captured this candid photograph of a man who was reunited with his son. She has used facial retouching in each of the images. Which images could she print along with the mans interview?

Answers

Answer: The last picture it looks better.

Explanation: Welcome!

Answer:

4

Explanation:

The space where text and content is entered and positioned for onscreen reading or printing

A. Page

B. Page margins

C. Insertion point

Answers

Answer:

Page.

Explanation:

A page typically occupies the largest portion of a document layout as it houses the main writeup or content of the document. The text contained in a document is written on a the main page of the document. The main page is surrounded by the page margin, which is an area which separates the tips or edges of an entire papwr and the writing area (page) of the document. The insertion point refers to an indicator which shows the position which a typed character will fall or be placed. Content written on a document's page is what is printed when the document is to be printed out and test entered on the page are what is seen by the reader.

What is the “spot healing brush” tool used for?

Answers

Explanation:

it's essentially a texture replacement tool, meaning that it tries to create a seamless repair by replacing damaged or unwanted texture from one area in an image with good

the tag that describes the content of the web page is ________________

Answers

Answer:

<body>

Explanation:

the content of the web page must be body.

Harvey is not happy with the software that allows the programmer to write and run code and wants to find something new. If Harvey is looking online for a replacement, which of these would be the best search terms to use?

A. database editor

B. binary translator

C. alphanumeric variable

D. integrated development environment

Answers

Answer:

D. integrated development environment

Explanation:

Given that an integrated development environment is a form of computer software App that allows the users or programmers to develop a software App in a way the enables them to carry out different operations including source code development, build and test automation, and debugging activities.

For example NetBeans, Eclipse, IntelliJ, and Visual Studio.

Hence, in this case, the correct answer is "integrated development environment."

Answer:

It's d

Explanation:

What is the output of the following program?
for num in range(3):
print (num * 3)
OUTPUT:

Answers

Answer:

0

3

6

Explanation:

Question # 2
Multiple Choice
The ____
is a character used to separate data items in a line.
O extension
O delimiter
O relative path
O path

Answers

Answer:

The answer is delimiter

If Anyone can help me out that'll be great

Answers

Answer:Sorry but it shows 2 things only which doesn't tell us what u need help with.

Explanation:

Which of the following are ways that
employees can check their behaviors at work
after reviewing the written policies? (choose
all that apply)
observing coworkers
checking in with a supervisor frequently
discussing their employment contract with
legal department

Answers

Answer:

A and b

Explanation:

Answer: A AND B

Explanation:

As a programmer, why do you think that skills and training are needed? Give five reasons.

Answers

Answer:

1.to have good communication

2.to have problem solving capability

3.to learn concepts and apply them to problems

4.to improve your mathematical skills

5.so as to be proficient with programming languages

hope this helps

Other Questions
AnYbOdY PlAy DOKI DOKI? Perform the operation. Enter your answer in scientific notation.7 106 5.4 106 = In ,=70,=50 . . The first expedition to sail around the world was led by _____.-da Gama-Columbus-Dias-Magellan HELP PLS ASAP!!!!!! WILL GIVE FIRST ANSWER BRAINLIEST!!!! which of the following is a characteristic of a nation-state?a. a sovereign government b. a large population c. a strong economy d. an official language Which of the following statements best characterizes how digital Internet-based streaming is trending?Digital Internet-based streaming services are becoming increasingly popular, but this trend is not expected to last.Digital Internet-based streaming services have not caught on, and they are expected to eventually disappear entirely.Digital Internet-based streaming services are not popular now, but they are expected to become popular in the near-future.Digital Internet-based streaming services are becoming increasingly popular, and this trend is expected to continue. The map shows the prevalence of food insecurity in the United States.A map labeled Prevalence of Food Insecurity, Average 2012 to 2014. The following notes have a food insecurity above U S average: Maine, Ohio, Kentucky, North Carolina, Tennessee, Alabama, Mississippi, Missouri, Arkansas, Louisiana, Kansas, Oklahoma, Texas, and Oregon.According to the map, which states have an above-average prevalence of food insecurity?Arkansas (AR), Maine (ME), Kentucky (KY)Florida (FL), California (CA), New York (NY)Wisconsin (WI), Vermont (VT), North Dakota (ND)South Dakota (SD), New Hampshire (NH), Alaska (AK) A weight lifter lifts a 360-N set of weights from ground level to a position over his head, a vertical distance of 1.95 m. How much work does the weight lifter do, assuming he moves the weights at constant speed Which discovery supported the endosymbiotic theory? The expression the scramble for Africa is used to describe the postcolonial power struggles on the African continent.Please select the best answer from the choices providedTF Kiran owns a T-shirt shop in a beach community. For many years, he owned the only T-shirt shop in the area. Recently, several other T-shirt shops have opened next to Kirans shop. What is likely to happen? Joanie has two 12-inch long wood pieces and two 16-inch-long wood pieces. What is the combined length of the wood pieces?A. 28 inchesB. 32 inchesC. 56 inchesD. 192 inches Predict How would the world be different if Germany had won World War I (WWI)? what percent of 11 is 54.7 The following histogram shows the number of items sold at a grocery store at various prices:Histogram titled Items Sold with Price Range on the x axis and Number of Items Sold on the y axis. Bar 1 is 0 to 2 dollars and 50 cents and has a height of 1. Bar 2 is 2 dollars and 51 cents to 5 dollars and has a height of 0. Bar 3 is 5 dollars and 1 cent to 7 dollars and 50 cents and has a height of 5. Bar 4 is 7 dollars and 51 cents to 10 dollars and has a height of 1.50 POIINNTTS SSWhich of the following data sets is represented in the histogram? {1, 0, 5, 1} {0.99, 5.01, 5.25, 6.79, 6.99, 7.50, 7.51} {0.75, 2.50, 7.50, 7.50, 7.50, 7.50, 10.00} {2.50, 2.51, 5.00, 5.01, 7.50, 7.51, 10.00} How do aspects of the setting (specifically the Valley of ashes and the two eggs) in the Great Gatsby contribute to the overall meaning of the text and to the development of the plot? Fill in the blank with the correct word to complete the sentence.Frau Meier_____in der Kirche.O trinkstO gewinntO tanzenO singt 4. A car travels 120 miles in the same amount of time that it takes a truck to travel 100 miles. The car travels 10 miles per hour faster than the truck. Find the speed of the truck 1 question for brainless :)Jorge has planted some bean seeds in potting soil in clay pots and sets the pots on a sunny window ledge. Write a hypothesis related to which plant part Jorge will observe first-the bean pods or the leaves. Explain why you think your hypothesis is correct.