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 different between a compiler and a translaror

Answers

Answer:

Compiler converts the program from one computer language to another computer language that is translating from a higher level language to a lower level language. A translator usually has a fixed body of code that is required to translate the program.

Answer:

Answer: Compiler converts the program from one computer language to another computer language that is translating from a higher level language to a lower level language. ... A translator usually has a fixed body of code that is required to translate the program.

Explanation:

Explain in detail how we could collect solar energy from space and get it to earth

Answers

Answer: Reflectors or inflatable mirrors spread over a vast swath of space, directing solar radiation onto solar panels. These panels convert solar power into either a microwave or a laser, and beam uninterrupted power down to Earth. On Earth, power-receiving stations collect the beam and add it to the electric grid.

Hoped This Helped!!!!

Answer: Reflectors or inflatable mirrors spread over a vast swath of space, directing solar radiation onto solar panels. These panels convert solar power into either a microwave or a laser, and beam uninterrupted power down to Earth. On Earth, power-receiving stations collect the beam and add it to the electric grid.

Explanation:


If a homozygous dominant parent is crossed with a homozygous recessive parent, the offspring will be:




Answers

Answer:

it will be heterozygous.

Explanation:

The required if a homozygous dominant parent is crossed with a homozygous recessive parent, the offspring will be heterozygous.

What is a homozygous dominant parent?

A homozygous dominant parent is an individual who possesses two copies of the same dominant allele for a particular trait. In genetics, an allele is a variant form of a gene. A dominant allele masks the expression of a recessive allele when both are present in a heterozygous individual.

Here,

If a homozygous dominant parent (having two dominant alleles, such as "AA") is crossed with a homozygous recessive parent (having two recessive alleles, such as "aa"), all of their offspring will be heterozygous (having one dominant and one recessive allele, such as "Aa"). The phenotype (appearance) of the offspring in this case will reflect the dominant trait.

Thus, the required if a homozygous dominant parent is crossed with a homozygous recessive parent, the offspring will be heterozygous.

Learn more about homozygous dominant parent here:
https://brainly.com/question/1084870
#SPJ6

differentiate between status bar and task bar​

Answers

Answer: The taskbar is for starting tasks, while the status bar shows information.

Explanation:

The taskbar is often at the bottom of the desktop, while the status bar may be at the bottom of a program's window.

The status bar displays information, but the taskbar is used to initiate tasks.

What is the status bar?

A graphics controller called a status bar displays an informational area there at bottom of windows. To organize the information, it might be split into sections. Since several status bars offer additional capabilities, their main duty is to provide knowledge about just the window's present state.

The status bar may appear at the bottom of a program's screen, although the taskbar is frequently at the bottom of the workspace.  They both have their own functions that help in running a system.

The status bar is presented at the bottom of internet browser displays or other software windows; a toolbar provides simpler access to operations generally carried inside the application.

Learn more about status bar, here:

https://brainly.com/question/3521461

#SPJ2

Which composer below was not part of the classical period?
A. Beethoven B. Bach
C. Mozart

Answers

Explanation:

B. Bach

Thanks for your point

Once a business determines that change needs to occur, what ahould the
business create?
A. Business operation
B. Business analysis
C. Business model
D. Business strategy

Answers

Answer:

D. Business strategy

Explanation:

Kono Dio Da!!

What does a photovoltaic cell do

Answers

Answer: Photovoltaic simply means they convert sunlight into electricity.

Explanation:

Answer:

Photovoltaic cells have the basic commitment to convert the sun’s energy into usable electricity.

Explanation:

Trust me it’s right

To what extent can u justify that computer is not the only ICT tool?​

Answers

ICT tool  integration in education is essential because technology enables teaching and learning to occur outside of the classroom.

Describe an ICT tool.

Digital infrastructures like computers, laptops, desktops, data projectors, software, printers, scanners, and interactive teaching boxes are examples of information communication technology equipment. In computer science, the focus is largely on programming and how computers function. Computing focuses more on the hardware and developing the software, whereas ICT is more about the people in the business and customising commercially available programmes to their needs. Learning how to drive a car is an effective analogy.

Why are computers seen as ICT tools?

Tools for information and communication technology are known as ICT tools. Computers, laptops, printers, scanners, software, data projectors, and interactive teaching aids are examples of digital infrastructures that fall under the category of ICT tools.

To know more about ICT tool visit:-

https://brainly.com/question/21298416

#SPJ1

Def sum_divisors(n): sum =1 # Return the sum of all divisors of n, not including n x=int(n**0.5) for i in range(2,(x//1)+1): if n%i==0: sum=sum+i if n%i==0 and n/i!=i: sum=sum+(n/i) return sum print(sum_divisors(0)) # 0 print(sum_divisors(3)) # Should sum of 1 # 1 print(sum_divisors(36)) # Should sum of 1+2+3+4+6+9+12+18 # 55 print(sum_divisors(102)) # Should be sum of 2+3+6+17+34+51 # 114

Answers

Answer:

This is a python program that counts the number of divisors of a given number and calculates the sum of the divisors.

Explanation:

The first line defines a function "sum_divisors" with an argument "n". The square root of the argument is converted to integer and assigned to the variable "x", then a for loop is used to iterate through the range 2 to the calculated nth number of divisors in the argument.The return keyword returns the sum value.

The function is called with several arguments and printed with the print function.

Jeanne writes a song, and Raul wants to perform
it. What should Raul do?
A. Copy the music and lyrics and take them to
the show to use.
B. Ask Jeanne for permission to use her song in
the show
C. Claim that he wrote the song
D. Have his teacher copy the song and give it to
Raul.

Answers

B) ask jeanne for permission

Answer- B: Ask Jeanne for permission to use her song in the show.

Explanation:


Describing How to Change the Order of Slides
Isabela realizes her presentation is not flowing well. She decides to sort the slides in a new way. Which view would
be most helpful to complete this task?


Answers

Answer:

the answer is B. Outline view

Answer:

b

Explanation:

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

These statements describe a network server.

assigns MACs
manages network resources
provides network security
translates data sent between networks

Answers

Answer:

The statement that describes a network server is:

manages network resources

Explanation:

A server is a computer built and programmed to fulfill network needs. They might be able to perform regular computer tasks, but they are designed specially to connect several computers, create a space those computers can share, provide connectivity management to them and be able to receive, send, create, and copy data inside that network. In other words, it creates a space of interaction, allows interaction, and transfer data from this network to other networks and from other networks for its managed network.

An encryption system works by shifting the binary value for a letter one place to the left. "A" then becomes: 1 1 0 0 0 0 1 0 This binary value is then converted to hexadecimal; the hexadecimal value for "A" will be:

Answers

Answer:

The hexadecimal equivalent of the encrypted A is C2

Explanation:

Given

Encrypted binary digit of A = 11000010

Required

Hexadecimal equivalent of the encrypted binary digit.

We start by grouping 11000010 in 4 bits

This is as follows;

1100 0010

The we write down the hexadecimal equivalent of each groupings

1100 is equivalent to 12 in hexadecimal

So, 1100 = 12 = C

0010 is represented by 2 in hexadecimal

So, 0010 = 2

Writing this result together; this gives

1100 0010 = C2

Going through the conversion process;

A is first converted to binary digits by shifting a point to the left

A => 11000010

11000010 is then converted to hexadecimal

11000010 = C2

Conclusively, the hexadecimal equivalent of the encrypted A is C2

The Principal of a school requires to store the information about the students of his school.
Which application software should he use to create a database? (Do it as homework)

Answers

Answer:

Microsoft office access would be a good application to create a database......it has various advantages such as storage and retrival of data, etc.

Explanation:

By Ms Excel the school principle write everything and to create students profile principle sir or headmaster use Microsoft so that students id cards will be created.

Write the corresponding Python expression of the following mathematical expression.

Answers

Answer:

The code:

# Import math Library

import math

# Print the value of 2pi

print (math.pi * 2) ## output would be: 6.28318530718

Explanation:

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.

Any material that comes into contact with the body must be __________.

Answers

Answer:

]Disinfect using a fresh bleach solution or other disinfectant. ... If you have been exposed to blood or potentially infectious materials at work, what actions ... How should you dispose of contaminated sharps, such as glass or needles that ... ( )Body openings - infected material comes into contact with your eyes, nose or mouth.

Explanation:

Company B is setting up commercial printing services on their network. Which of these are advantages of centrally managed commercial printers? Check all that apply.

Answers

Answer:

Centralized management of printing activities, allowing administrators to manage all print devices using a network.

Explanation:

The advantages of centrally managed commercial printers are:

Printers can be easily created and deployed in virtual sessions such as Citrix or VMwareCentralized management of printing activities, allowing administrators to manage all print devices using a network.Reduces the number of printer related issues thereby increasing productivity.It provides a way of keeping record those who are printing and what have been printerAll print related jobs can be easily managed from a central controlled network.Increased security as a print server allows you to total control over who can print what and where High availability and redundancy due to pooling of printers Easily customize printer profile

what is an if then block and how does it work on code.org

Answers

Send more information this question doesn’t make any sense

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:

Other Questions
_________ activity focuses on how to provide the materials from the suppliers. This system makes the connection between the customer and business functions. It manages the transactions to receive raw and semiraw materials from the suppliers as well as the company and its customers. How many units to order is one of the key issues in supply chain management. Depending on the customers order, the company gives orders to the suppliers, and then the suppliers orders to the suppliers suppliers. Consider the following number line: A A B B C C 1.1 1.1 0 0 Select a reasonable value for Point B Bstart color #11accd, B, end color #11accd. Choose 1 answer: Choose 1 answer: (Choice A) A 2.1 2.12, point, 1 (Choice B) B 5.4 5.45, point, 4 (Choice C) C 0.9 0.9minus, 0, point, 9 (Choice D) D 0.77 0.77minus, 0, point, 77 What do meterologist do? Explain why coloured water moved up the stalks how can worry dolls play a part in the creation of a ceramic piece What are some possible consequences of the rapid settlement of Oregon? 1 pointThe probability of rain on Sunday is 0.7 and the probability of rain on Monday is 0.2.What is the probability that it rains on BOTH Monday and Tuesday?Write your answer as a decimal rounded to the nearest hundredth (2 decimal places).Type your answer... If y= 1/4x and x = -12, find y. ) A concentration cell is based on the aqueous reactionCu2+(1.00 M) Cu2+(0.0100 M)The cell consists of copper electrodes dipping into solutions of Cu2+ ions. The anions present are sulfate ions. Draw a neat diagram to represent this cell, showing and labeling all necessary components including: anode, cathode, electron flow, cation flow and anion flow. Simplify, using the distributive property and then combining like terms. 2(x+y)+(2x2y) The number of people, N, that Denis can invite to his party is dependent on the amount of money, x, in dollars,that he saved up for the party and can be modeled by the function N(x)=x/25.The amount of money thatDenis saved for the party, M, in dollars, is dependent on the number of overtime hours, h, he worked this weekand can be modeled by the function M(h) = 50h + 150.Find an explicit expression that models the number of people that Denis can invite to his party if he worked hovertime hours this week. George Weston Limited, a Canadian food processing and distribution company, is one of the world's largest producers of breads. Refer to the scenario. The company owns the Wonder bread brand. When Weston introduced whole grain white bread, which gives kids the bread texture and colour they recognize and love and parents the vitamins they want for their children, what was it an example of? Find the parallelogram. can someone help ASAP please Humanism is an intellectualmovement thatA emphasizes prayer and the Bible.B leads to happier lives.C encourages people to learn Latinand Greek.D focuses on the potential ofhumans to achieve. The right to keep and bear arms is found in which amendment?FifthTenthSecondFirst Which of the following statements is NOT TRUE of the Industrial Revolution time period? A it began in England during the 19th centuryB Its ideas eventually spread to America during the 20th centuryC It eventually led to an increase in European imperialism to gain more resources D Automobiles were the first industry to become mechanized in England ...the river dictates all travel" is an example of what A. MetaphorB. SimileC. Personification how is the Texas Bill of Rights different from the US Bill of Rights? what will happen to the volume of a cylinder if the length if the height is tripled? A. DoubleB. Stay the sameC. TripleD. 9 times as large