Fill in each blank with the correct answer/output.

int[] vals = {7,5,3,9,0,37,93,16,68,6,99};

System.out.println(vals[vals[1]+vals[4]]);

Answers

Answer 1

Answer:

37

Explanation:

Given int[] vals = {7,5,3,9,0,37,93,16,68,6,99};

In programming, the position of each value in the list are known as index. The first value is always assigned index of 0 not 1, the second value is assigned index of 1 and so on. For example;

val[0] = 7 i.e value with index 0

val[1] = 5

val[4] = 0

In order to print out this value

System.out.println(vals[vals[1]+vals[4]]);

Substituting the index value val[1] and val[4] into the argument given

vals[vals[1]+vals[4]]

= vals[5+0]

= vals[5]

= 37 (value at the 5th index)

System.out.println(vals[vals[1]+vals[4]]);

= 37

This means that the system will print out 37 to the console


Related Questions

the hose is 2 inches in diameter. What circumference does the plug need to be? remember to type just a number

Answers

Answer:

6.28

Explanation:

This problem bothers on the mensuration of flat  shapes, a circle.

Given data

Diameter d= [tex]2in[/tex]

Radius r =  [tex]\frac{d}{2} = \frac{2}{2} = 1in[/tex]

We know that the expression for the circumference of a circle is given as

[tex]C= 2\pi r[/tex]

Substituting our given data and solving for C we have

[tex]C= 2*3.142*1\\C= 6.28[/tex]

this really isn't a question but it is mainly for Brianly I have 40+ so bainlist answers but on my rank it says I have 0/15 is this a computer bug or what because I've been on this app for a little bit more than a year now
I have a snip to prove how many brainliest answers I have provided below

Answers

Answer:

i have it but i have it fixed

Explanation:

might be a visual bug, try refreshing your page. if this doesnt work you can ask someone with a higher rank to help you.

Consider sending a 1,600-byte datagram into a link that has an mtu of 500 bytes. suppose the original datagram is stamped with the identification number 291. how many fragments are generated? what are the values in the various fields in the ip datagram(s) generated related to fragmentation?

Answers

Explanation:

Step one

The maximum size of data field in each fragment = 480

(because there are 20 bytes IP header) Thus the number of required

fragments  [tex]=\frac{1600-20}{480} \\\\= \frac{1580}{480} \\\\=3.29\\\\[/tex]

thus the number of required fragment is 4

Step two

Each fragment will have identification number 291. each fragment except the last one will be of size 500 bytes (including IP header). the offset of the fragments will be 0, 60, 120, 180. each of the first 3 fragments will have

flag = 1; the last fragment will have flag =0

Using the appropriate formula, the number of fragments which would be present in the datagram to be sent would be 4

The minimum length of IP header = 20 bytes

Maximum transmission unit (mtu) = 500 bytes

Hence, the payload would be calculated thus :

mtu - header ;Payload = 500 - 20 = 480

Hence, the maximum size of data field per Fragment = 480 bytes

The number of fragments required :

[tex]\frac{datagram \: size - Header \: size}{payload} [/tex]

[tex] Number \: of \: fragments = \frac{1600 - 20}{480} = 3.29[/tex]

Hence, the number of fragments is 4

Size per Fragment would be 500 bytes each ; the last Fragment would be about 100 bytes

Each Fragment would bear the identification number 291.

Learn more : https://brainly.com/question/16289731

What are the Positive and negative sites of the internet

Answers

Answer:

A positive of the sites of internet is that it can be very helpful to you like brainly. It can also educate you and help when you cant do you something like we have online classes since we can't go to school because of Corona

A negative of the sites of the internet is that sometimes people will try to trick you to do irresponsible things. Some will trick you for your address, credit card number, or using things unwisely. Because people don't know who is behind the screen they might be a criminal but they also don't know who you are until they get your address or information.

Explanation:

1).
What is a resume?
A collection of all your professional and artistic works.
A letter which explains why you want a particular job.
A 1-2 page document that demonstrates why you are qualified for a job by summarizing your
skills, education, and experience.
A 5-10 page document that details your professional and educational history in great detail.

Answers

Answer:

option 1

Explanation:

its not a job application cause your not appling for a job, a resume is a list of all the things you have done that would be beneficial to a job. for example, previous jobs, skills you have, hobby that pertain to a job you want, education and other professional things.

Hope this helps:)

Which jobs are most likely to be replaced by robots and what effect will this have

Answers

Answer:

Here we go. Generally the robots are designed in order to do the work which has very much risk and Humans find it too laborious or hard to do. The robots will be used for the army, or as laborers. In my country Nepal, there's a restaurant where robots are used as waiters. They take order from you and provide you the food. The robots can be used for various purposes but I don't think they will be appointed for the job of higher authority. The use of robots will have massive effect in human life. The use of robots and appointing them in various jobs will cause the problem of unemployment. The poor will be affected and their existence may get into problem. This is one effect but there can be many effects from the use of robots. Using robot in army can reduce human deaths but also people get unemployed. There is both advantage and disadvantage from their use.

Which of the following is a country that cruise ships commonly sail under the flag of?
O United States
O Canada
O Panama
O South Africa
< Previous

Answers

Answer:

Panama

hope this helps!

Exercise 3.16.4: Happy Face Solita
Write a program that draws a smiley face!
Only draw the smiley face if the user responds that they are happy! Save the
user input to a variable called happy
Hints
• First determine how to draw the smiley face
• Then use an if statement to decide whether or not to call the functions!

Answers

Answer:

do you have a picture of the assignment?

A customer seeks to buy a new computer for a private use at home.The customer primarily needs the computer to use the Microsoft PowerPoint application for the purpose of practice presentation skills.As a sales person what size hard disc would you recommend and why?

Answers

Answer:

The most common size for desktop hard drives is 3.5 inches,  they tend to be faster and more reliable, and have more capacity. But they also make more noise.

Explanation:

If you are continually deleting and installing programs or creating content, the disc must have good reliability.

Keep in mind that larger hard drives are also a little slower, so it is preferable to opt for two smaller ones. Large hard drives are partitioned so there is no problem gettin

chbdg good performance, but if you put everything on one big disk and it breaks, you will lose everything.

If you buy 2 small disks, check that the motherboard does not limit the speed of a second hard disk.

Have you ever seen a Magic 8 ball? You ask it a yes-no question and then shake it to get a random response like “Signs point to yes!”, “Very doubtful”, etc. If you’ve never seen a Magic 8 ball, check out this video.

We encourage you to work in pairs for this challenge. Come up with 8 responses to yes-no questions. Write a program below that chooses a random number from 1 to 8 and then uses if statements to test the number and print out the associated random response from 1-8. If you need help with random numbers, see lesson 2.9.

public class Magic8Ball
{
public static void main(String[] args)
{
// Get a random number from 1 to 8

// Use if statements to print out 1 of 8 responses


}
}
1
public class Magic8Ball
2
{
3
public static void main(String[] args)
4
{
5
// Get a random number from 1 to 8
6

7
// Use if statements to print out 1 of 8 responses
8

9

10
}
11
}

Answers

Answer:

ok ok ok

]ok

ok

okm

ok

Explanation:

What are scientists going to explore next on Kepler-186f? A) evidence of the existence of life B) types of plant life that exist C) evidence of volcanic activity D) evidence of volcanic activity

Answers

Answer:

the answer is  a)

Explanation:

Answer:

the answer is a

Explanation:

Who must yeild at T-intersections?

Answers

Answer: the driver on the street

Explanation:

Don is creating a very long document, and he would like to create an introductory page that contains the title of the document and the name of the author along with the date.

Answers

Answer:

This is a very good choice, to do so Don can insert a cover page. He can go to the options menu, pick the "insert" lash, and then to the "pages" square in the far left of the toolbox. There he will find a "cover page" section that will automatically add a cover page at the beginning of the document.

Explanation:

The reasons for this answer are that in the first place, it is very difficult to go o the first page of the document and move everything down because the format would be lost. Then, he would require to edit everything. It would also result in the same in case he only added a white page and started writing. So he needs a specific object that wouldn't damage the format if edited on the first page.

Mention one application of AI from the real world and describe the use of of this application what is the type of learning used in this application

Answers

Answer:

The real world AI application is Google Duplex. It is able to receive orders for making reservations. Then it calls the shop or the place and deals with the person and talks to him very fluently and informs you about the reservation. Some other general types of AI application are Google Assistant, Siri , Amazon Alexa and so on. But google Duplex is lot more advanced than them.

Create a story that depicts the events leading up to a vehicle crash fatality, the crash itself, and the emotional aftermath on the family and victims of the crash. In this scenario the crash should be written from your own perspective of losing a close family member in a crash caused by another person making a poor choice (i.e. texting, dui, road rage).

Answers

Answer:

About 5 years ago my girlfriend and I were taking a summer camping trip in southern Alberta. I was in the passenger seat trying to find the campground on a map when she drove over the crest of a hill, was blinded by the sun drove into the ditch. It was a seriously steep ditch but we weren't going very fast so all was fine. I looked over at her and laughed before returning my attention to the map, assuming she could safely bring the vehicle back onto the road.

The next thing I knew, the SUV launched onto the pavement and she lost control and we began swerving. I remember feeling the wheels on the driver's side lift off the ground, then the impact as I was slammed into the door and glass exploded into my face. We barrel rolled and we rolled over-front for a seriously long way.

At some point during the chaos I looked over at her to make sure she was "ok", and just as I did so I watched as she was thrown into the ground through her door window and the corner of the roof just above her seat was crushed inward. The way it looked to me was that she had just been crushed between the ground and the roof of the vehicle. I passed out at that point.

When I came to I had somehow already unbuckled myself from my seat and the vehicle was on its roof. I crawled over to her seat and was in absolute shock to see that she was still in one piece. I removed her from her seat and got us out through the windshield before carrying her for about a half a kilometer down the road, still in shock and fueled entirely by adrenaline.

We were found by a driver who had gone past the wreckage and we were eventually taken to a hospital. I broke 3 ribs on my right side and dislocated my right shoulder, she was severely concussed and scraped up but otherwise mostly okay. However she was 7 weeks pregnant at the time and we found out while in hospital that her body had rejected it under the immense and sudden stress.

We are still together and have 3 amazing and beautiful children, but she still holds onto a lot of guilt surrounding the accident and the loss.

Explanation:

Manuel is working on a project in Visual Studio. He wants to keep this program showing on the entire desktop, but he also needs to have several other applications open so that he can research the project. ​

Answers

Answer:

d. Task View

Explanation:

Based on the scenario being described within the question it can be said that the best feature for this would be the Windows 10 task view. This is a task switcher and  virtual desktop system included in the Windows 10 operating system, and allow the individual user to quickly locate, manage, open or hide different windows/tasks. Such as having several projects open in different monitors running at the same time.

the blue course at the ski club is 5.8 km long. The red course is 10.3 km long. Mark skied the blue course 15 times and Katy skied the red course 15 times. How much further did Katy ski than Mark?​

Answers

Answer:

67.5km

Explanation:

mark = 5.8 x 15 = 87km

Katy = 10.3 x 15 = 154.5km

154.5 - 87 = 67.5km

Other Questions
plzz help its timed ill give brainliest Which option is a characteristic of an unreliable narrator?A. intends to deceive othersB. deceives others, whether intentionally or unintentionallyC. does not intend to deceive othersD. recounts events in a distant narrative style The name used to identify a reduction made from the original selling price.Question 8 options:a) Cut Rateb) Markdownc) Decreased) Markup i need the correct form of haber and the past participle of the veryLos huespedes (llegar) al hotel Because the trees that produce the sap to make rubber need to be cut down to make it, rubber is considered a nonrenewable resource.TRUEFALSEPlease help me!! Which of the following is false? Economists who advocate discretionary monetary policy argue that it is more likely to achieve the desired economic results because the monetary authority has the flexibility to shape the best monetary policy to the existing circumstances. Here is an example of zero crowding out: The government spends $100 more and the private sector doesnt spend any less. Here is an example of complete crowding out: The government spends $100 more and the private sector spends $100 less. Not all economists believe that rule-based monetary policy is preferable to discretionary monetary policy. none of the above PLEASE ANSWERRRRR! EASY!!!!!!!!!!!!!People use water to cook, clean, and drink every day. An estimate of 17.2% of the water used each day is for drinking. If a family uses 68.8 gallons of water a day for drinking, how many gallons do they use every day? What is the value of x? Leave answer in simplest radical form.860 Some people take the early retirement option at age 62. According to the Social Security Administration, if you retire at age 62, your retirement benefits will be permanently reduced by 25%. If your monthly benefit, at full retirement age (67), would have been $1300 per month, and you retire at age 62, how much would you lose in total annual income over one year? Use the Distributive Property to write an expression equivalent to 4(p-12). Do you think that it is okay that teens are using tobacco protects? There is no right or wrong answer. A piepie is divided into 2020 equal pieces. GlennGlenn and SophieSophie each ate one fourth 1 4 of the piepie on MondayMonday. The next day, SophieSophie ate one fifth 1 5 of the piepie that was leftover. How many of the pieces of the original piepie remain? Explain your reasoning. Together, GlennGlenn and SophieSophie ate one fourth 1 4 piece(s) on MondayMonday, and SophieSophie ate one fifth 1 5 piece(s) the next day. To find the number of pieces that remain, add these numbers to the total number of pieces. So, 0.450.45 pieces of the original piepie remain. PLZ HELP ANSWER ALL QUESTIONS PLZ1. The main purpose of a written report may be to _____.A.revise a hypothesisB.summarize other scientists' resultsC.design a procedure for an experimentD.analyze data without drawing conclusions2. The tone of a presentation is _____.A.why you are presenting the resultsB.how you are presenting the informationC.where you are making the presentationD.when you are making your presentation3. Before giving an oral presentation, you should _____.A.revise your hypothesisB.practice your presentationC.come up with some good jokesD.find an audience that will clap a lot4. A lab report should usually start off by explaining _____.A.the question you investigatedB.whether you got the right answerC.how you designed your procedureD.what you thought about the experiment5. Which of these is NOT something that you need to include in your lab report?A.your hypothesisB.the data you collectedC.your step-by-step procedureD.the intended audience for the report6. It is important to include _____ in a lab report.A.your hypothesisB.fun facts about scienceC.results from other experimentsD.the audience you are writing for7. Including a step-by-step procedure in your lab report _____.A.allows others to replicate your workB.ensures that your report has the correct toneC.guarantees that your conclusions will be correctD.is not necessary if your audience is other scientists8. Scientists present their results in order to _____.A.think of a better hypothesisB.analyze their data thoroughlyC.create more accurate conclusionsD.increase human knowledge of science9.Which of these is an example of tone?A.speaking in a serious wayB.the auditorium of a schoolC.presenting on Friday at 2:30 p.m.D.a group of professional scientists what is the molarity of 2.3 mol of Kl dissolved in 0.5 L of water HELP PLZZZZZZZZZZZZZThe original story and the film version of Sir Arthur Conan Doyle's "The Adventure of the Speckled Band" share these two major themes: the danger of jumping to conclusions and blank . However, the two versions differ in certain ways. For example, in the original story, Helen Stoner gets engaged blank years after her sisters death, while in the film version, the engagement takes place one year later. The film version also establishes a more intimate connection between Watson and Helen as blank Using a credit card is the same as borrowing money. what is the distance between the points (-4,0) and (-7, -14) ? Plz helpThe story :The Song of Wandering Aengus answer the following questions1.what are the primary actions that take place in the 3 stanzas2.find end rhymes and other examples of repetition in the second stanza3.what is the quest of Aengus in the poem4.what word suggest that Aengus is chanting a song What is a benefit of placing barriers on trade? Can someone help me?!?!?! This is due in 15 minutes!!!!!!!!!!!!!! (Will mark Brainliest!)Question 4:How does being civic minded apply in our current situation with the coronavirus?THANK YOU IN ADVANCE!!!!!