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
adoni [48]
4 years ago
8

Show the printout of the following code. public class Test { public static void main(String[] args) { double[][] m = {{1, 2, 3},

{1.5, 2.5, 3.5}, {0.1, 0.1, 0.1}}; System.out.println(sum(m)); } public static double sum(double[][] m) { double sum = 0; for (int i = 0; i < m.length; i++) sum += m[i][i]; return sum; } }
Computers and Technology
1 answer:
gtnhenbr [62]4 years ago
7 0

Answer:

The answer to the given question is "3.6".

Explanation:

The printout description of the given java program can be given as:

In this program, the printout of the following code is 3.6. because in this program we define an array and assign elements on the array and calculate the sum of the elements but in the loop, we calculate the sum of rows value that is i [1][1]= 1.0, i [2][2]=2.5 and i [3][3]=0.1  then we calculate sum that is equal to 3.6.

That's why the answer to this question is "3.6".  

You might be interested in
Sort the layout options for two types of masters in PowerPoint.
noname [10]

Answer:

The program photo is showing the correct answers and the correct place for the two that you missed.

Explanation:

3 0
3 years ago
It is believed that Taiwan is the original home of these early Oceania explorers. Maori Lapita Polynesians Aborigines
Lena [83]
The answer is Lapita.
Lapita is a prehistoric culture of people from c. 1600 BCE to c. 500 BCE in the Pacific Ocean. It is believed that they are the ancestors of other historic cultures such as Polynesia and Micronesia.  Scholars assumed the origin of the Lapita is from Austronesians from Taiwan. The domesticated spread farther into Ocenia.
5 0
4 years ago
Read 2 more answers
As computer words get larger and larger, there is a law of diminishing returns: the speed of execution of real application progr
otez555 [7]

Answer:

Explanation:

I can pick a reason out of many, and that would be the software. The fact is that, even as they are computers and machines, the softwares themselves have particular design cap. A software that was designed for systems with a narrow word size will most likely have issues as more and more words are used on it. I don't know if you understand what I'm saying, everything has a cap, once that particular meter is approaching, systems tend to slow onwards.

When it comes to the hardware part using the same technology, it might take a longer time to do basic arithmetic on larger inputs.

When you're under using a system, it tends to have a lot of space, excess, to perform its functions, but as soon as it is nearing its limit, it will slow down so as to accommodate all the processes at once.

3 0
3 years ago
Write a recursive function, replace, that accepts a parameter containing a string value and returns another string value, the sa
kirill [66]
You should state what language you want your answer to be in before you ask programming questions. Here is what you're looking for in Java:

<span>public static String replace(String str) {
    return str.replace(' ', '*')<span>;
</span>}</span>
6 0
3 years ago
Derek, a project manager. is involved in an activity that occurs during the system-level requirements analysis. In which activit
Vilka [71]

Derek is involved in the option C.) work breakdown structure activity of providing insights about the design.

<h3>What is work breakdown structure?</h3>

A Work Breakdown Structure (WBS) is known to be a kind of an hierarchical outline  or division of the tasks that is known to be needed to complete a  given project.

Note that the WBS “breaks down” is seen as the structuring of any given  project into a way that is said to be manageable in its deliverables.

Note also that the deliverable is sent on a task and as such, Derek is involved in the option C.) work breakdown structure activity of providing insights about the design.

Learn more about work breakdown structure from

brainly.com/question/6197566
#SPJ1

Derek, a project manager, needs to create a plan for a software development project. Which approach or document will help him define the tasks required to carry out that project?

A.) tracking application

B.) tracksheet

C.) work breakdown structure

D.) project application

8 0
2 years ago
Other questions:
  • ?an ip address reservation is made by creating an association between an ip address and what type of client identifier?
    7·1 answer
  • Two good guidelines for good readability on a website are ______ (choose two)
    14·1 answer
  • Which of the following technologies allows you to decouple the physical storage hardware from the storage requirements of the ap
    6·1 answer
  • How are additional slides added to presentations? select all that apply
    10·1 answer
  • If you were looking for a record in a very large database and you knew the ID number, which of the following would be the most d
    6·1 answer
  • Anyone know the answer I need help
    12·1 answer
  • You are managing an FTP server installed in Ubuntu Server. The server has created a very large log le, vsftpd.log. Which command
    14·1 answer
  • Each symbol of an octal number corresponds to 3 bits of a binary number. is it true or false​
    5·1 answer
  • Write the issue related to the cyber ethnic. ​
    7·2 answers
  • Inappropriate use of technology makes it easier for cyber bullies to <br> others.
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!