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: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 14:00, ahmetagayew2004
In a file-oriented information system, a transaction file stores relatively permanent data about an entity is created and saved for backup and recovery purposes stores records that contain day-to-day business and operational data is a temporary file created by an information system for a single task
Answers: 3
image
Computers and Technology, 21.06.2019 22:30, 341404143
Ted wants to go out to a neighborhood park and shoot pictures of dew drops on grass. he wants to get a low-level angle of the dew drops. which support equipment should ted use? a. mini tripod b. pistol grip c. monopod d. body mount
Answers: 2
image
Computers and Technology, 22.06.2019 11:10, 17795
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
image
Computers and Technology, 22.06.2019 22:10, Metlife
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≤ n ≤ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
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 in other subjects:

Konu
Mathematics, 03.09.2021 01:50
Konu
Geography, 03.09.2021 01:50
Konu
Mathematics, 03.09.2021 01:50