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
Leni [432]
3 years ago
11

Given a two-dimensional array named scores with double type elements, write the embedded loop to navigate this array and multipl

y each element in the array by 10, and put the embedded loop inside a method named increase , and the only parameter of this method is a double type two-dimensional array. This method increase should have void as its return type.
Required:
Write the one line of code to invoke the increase method inside main. Do you need to receive the return value of increase with a local variable, why or why not?
Computers and Technology
1 answer:
bearhunter [10]3 years ago
7 0

Answer:

Following are the code to this question:

void increase(double scores[][]) //defining method increase

{

//defining loop to multiply the value by 10

for(int x=0;x<scores.length;x++)

{

for(int y=0;y<scores[x].length;y++)

{

scores[x][y]=scores[x][y] * 10; //multiply value

}

}

}

increase (scores);  //call method and pass the value

Explanation:

Description to this question can be described as follows:

  • In the above-given code, a method increase is declared, in which we pass a double array "scores", and inside the method two for loop is defined.
  • Inside the loop an integer variable "x and y"  is used, which multiply by 10 in the score array.
  • In the next line method is called, that accepts array value, in this method calling we can't need to receive the return value because it increases, and it does require a void return type.
You might be interested in
A company decides to create static design diagrams for an upcoming project. Which statement correctly describes the attribute of
kotykmax [81]

Answer:

A

Explanation:

4 0
3 years ago
Which of the following best describes the relationship between if/else and switch statements :
kvasek [131]
I want to say ‘A’ since if/else and switch statements are both conditional statements.
7 0
3 years ago
Which of the following applications can be used as a data source for a Microsoft® Word® mail merge? A.Outlook Contacts B.Microso
Xelga [282]
<span>Word can pull data from a variety of data sources to perform a mail merge. As part of the Microsoft Office suite, Word easily accepts data from Outlook, Excel, and Access, and other data sources such as web pages, OpenDocument text files, and delimited data files stored as plain text. And if you don't have an existing data source, you can create a new one in Word.
ALL OF THE ABOVE

</span>
8 0
3 years ago
Read 2 more answers
A listed electrical box for use in fire-resistive assemblies is being installed in a 2 hour rated wall. Assuming there are no ot
gtnhenbr [62]

Answer:

b. 1/8"

Explanation:

In This scenario this installation does not require any penetration protection as long as the space between the electrical box and the wall membrane does not exceed 1/8 of an inch. This is mainly a safety precaution to prevent accident's such as an electrical fire or electrocution as well as meeting the specs for the rest of the house to be built perfectly without modifications.

6 0
4 years ago
Triggers can be created in operational systemsto keep track of recently ------------------ records.o Deletedo Updatedo Inserted
Crank

Answer:

Inserted

Explanation:

Triggers can be created in operational systems to keep track of recently inserted records.

3 0
3 years ago
Other questions:
  • The risk of carbon monoxide poisoning can be reduced by
    12·1 answer
  • O novo funcionário da equipe de desenvolvimento de sistemas está aprendendo os termos mais utilizados no dia a dia da empresa. A
    7·1 answer
  • How does the government is i.t to run the country?
    9·1 answer
  • Manuel is working on a project in Visual Studio. He wants to keep this program showing on the entire desktop, but he also needs
    13·1 answer
  • The object-oriented techniques to manage errors such as dividing a value by 0 comprise the group of methods known as
    12·1 answer
  • Tina has made a database table in access containing field name class roll number and contact number she has set primary key for
    5·1 answer
  • When do you use FTP?
    10·2 answers
  • What is the significance of the following terms A A L U control unit in the CPU​
    13·1 answer
  • Define a function allEqual of type ''a list -&gt; bool that will return true will all element in the input list are all equal, f
    14·1 answer
  • ______________ memory is a small, high-speed, high-cost memory that servers as a buffer for frequently accessed data
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!