subject

3. A two-dimensional array has been defined to hold the quantity of each of 5 different healthy
snack products sold in a tuckshop 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.
[1]

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 13:30, lissa34
Qr or codes let any piece of print host a link to online information.
Answers: 3
image
Computers and Technology, 22.06.2019 20:10, yqui8767
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
image
Computers and Technology, 22.06.2019 21:00, bryanatwin1536
Describir textbook icon_person mira los dibujos y describe lo que está pasando. usa los verbos de la lista.
Answers: 1
image
Computers and Technology, 24.06.2019 02:00, akatherine1738
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
You know the right answer?
3. A two-dimensional array has been defined to hold the quantity of each of 5 different healthy

Questions in other subjects:

Konu
Mathematics, 30.07.2021 23:00