subject

Suppose that sales is a two-dimensional array of 10 rows and 7 columns wherein each component is of the type int , and sum and j are int variables.

which of the following correctly finds the sum of the elements of the fifth row of sales? 1.sum = 0; for(j = 0; j < 10; j++)sum = sum + sales[5][j];

2.sum = 0; for(j = 0; j < 7; j++)sum = sum + sales[4][j];

3.sum = 0; for(j = 0; j < 10; j++)sum = sum + sales[4][j];

4. sum = 0; for(j = 0; j < 7; j++)sum = sum + sales[5][j];

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
The output voltage of a power supply is assumed to be normally distributed. sixteen observations are taken at random on voltage are as follows: 10.35, 9.30, 10.00, 9.96, 11.65, 12.00, 11.25, 9.58, 11.54, 9.95, 10.28, 8.37, 10.44, 9.25, 9.38, and 10.85
Answers: 1
You know the right answer?
Suppose that sales is a two-dimensional array of 10 rows and 7 columns wherein each component is of...
Questions
question
Mathematics, 05.06.2020 19:57
Questions on the website: 13722361