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
Pedro would like to create a computer program to add two numbers. The commands for the algorithm he created are:
Usimov [2.4K]
Press the equal number.

For example:
Press the equal button: = (this step can go first or last)
Enter the first number: 5
Press the addition button: +
Enter the second number: 4
Press the equal button: =
3 0
3 years ago
. The total processing speed of microprocessors (based on clock rate and number of circuits) is doubling roughly every year. Tod
horsena [70]

Answer:

130 bits

Explanation:

If the length of a key = N bits

Total number of key combinations = \frac{2^{N} }{2}

For a key length of 100, the total number of key combinations will be  \frac{2^{100} }{2} = 2^{99} combinations. This is a whole lot and it almost seems impossible to be hacked.

The addition of  one bit to the length of the symmetric key in 1 year is sufficient to make the key strong, because even at double its speed, the processor can still not crack the number of combinations that will be formed.

Therefore, if a bit is added to the key length per year, after 30 years, the length of the symmetric session key will be 130 bits.

8 0
3 years ago
________ floods a computer with requests until it shuts down and refuses to answer any requests for information.
MrRissso [65]

Answer:

DDoS

Explanation:

Distributed Denial of Service

5 0
3 years ago
Can someone please help me to point out what's wrong with this C program:
eimsori [14]

Answer:

Syntax error lies in almost every statement in the main function.

Explanation:

#include [ Didn't included the standard input/output library name in the header ]

Int count [ Didn't ended this declaration with ; and included lowercase datatype int ]

/* initialize count [ Didn't closed the comment with */ ]

count = 1 [ Didn't end the statement with ; ]

/* increment count */ [ correct ]

count++; [ correct ]

print the value of count */ [ Didn't initiated the comment with /* ]

So after removing the abovementioned errors, we get the correct code as:

#include <stdio.h>

int main (void) {

   int count;

   /* initialize count */

   count = 1;

   /* increment count */

   count++;

   /* print the value of count */

   printf("count = %d\n", count);

   return 0;

}

Run this code directly using this link: replit.com/languages/c

and see the output by yourself in realtime.

Thanks and Best Regards!

Umer

3 0
3 years ago
In an array-based implementation of a dictionary, if you represent the entries as an array of objects that encapsulate each sear
xxMikexx [17]

Answer:

The answer is "Option C".

Explanation:

Dictionary is a set of unsorted data values, that is used to save data like a map and which contains a key: value pair in comparison to many other types of data, which only carry a specific number as just an element.

If we use Dictionary as an array so, it uses a two-pointer variable, one for hold key, and the second is used to hold its value.

3 0
3 years ago
Other questions:
  • Your laptop LCD panel is blank when you boot up. You can hear the laptop turn on, and the keyboard backlight is on. You have che
    6·1 answer
  • What’s the most popular operating system
    9·2 answers
  • How do a router and switch differ when handling a message? Both a router and a switch use the message’s destination address to s
    10·1 answer
  • Which of the following describes a potentially damaging computer program that affects, or infects, a computer negatively by alte
    9·2 answers
  • What questions do they ask for the 08.03 Discussion- Based Assesment in Drivers Ed?? Thanks.
    11·1 answer
  • Does anybody know how to do 6.3 code practice on edhesive. NEED ASAP!!!​
    14·1 answer
  • What are creative commons?
    14·2 answers
  • Which computer are used by mobile employees such as meter readers.​
    6·2 answers
  • Guys i keep trying to get in touch with brainly but it says "your request could not be submitted" Can someone please help me ?
    9·2 answers
  • What would be the most professional choice of words for your response:
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!