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 19:00
How is the number 110 written when expanded out to place values in the base 2 (binary) number system? options: 2 x 4 + 3 x 2 + 4 x 1 1 x 2 + 1 x 2 + 0 x 2 1 x 100 + 1 x 10 + 0 x 1 1 x 4 + 1 x 2 + 0 x 1
Answers: 1
question
Computers and Technology, 23.06.2019 00:20
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
This graph compares the cost of room and board at educational institutions in texas.
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
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.04.2021 01:00
question
Mathematics, 27.04.2021 01:00
question
Mathematics, 27.04.2021 01:00
question
Mathematics, 27.04.2021 01:00
Questions on the website: 13722361