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 19:00
If your accelerator suddenly gets stuck what should you do
Answers: 2
question
Computers and Technology, 22.06.2019 19:40
Solve the following javafx application: write a javafx application that analyzes a word. the user would type the word in a text field, and the application provides three buttons for the following: - one button, when clicked, displays the length of the word.- another button, when clicked, displays the number of vowels in the word.- another button, when clicked, displays the number of uppercase letters in the word(use the gridpane or hbox and vbox to organize the gui controls).
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
question
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
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, 22.04.2021 18:00
question
English, 22.04.2021 18:00
question
Mathematics, 22.04.2021 18:00
question
Mathematics, 22.04.2021 18:00
Questions on the website: 13722362