subject

A two-dimensional array has been defined to hold the quantity of each of five different healthy snack products sold in a shop during the past three months. The array is declared as follows:

sales = [ [0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0] ]

Indexing of the array starts at 0, so the sales of the first product in the second month is held in sales[1][0].

(a) Write a statement to assign the value 13 to the fifth product in the third month.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
You know the right answer?
A two-dimensional array has been defined to hold the quantity of each of five different healthy snac...
Questions
question
Mathematics, 27.02.2021 04:10
question
Social Studies, 27.02.2021 04:10
Questions on the website: 13722361