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

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 01:30
Suppose a cpu with a write-through, write-allocate cache achieves a cpi of 2. what are the read and write bandwidths (measured by bytes per cycle) between ram and the cache? (assume each miss generates a request for one block.)
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
Hypertension occurs when blood pressure is too high.
Answers: 1
question
Computers and Technology, 25.06.2019 08:10
Which of the following statements is false? a. package access is rarely used. b. use the access modifier package to give a method or variable package access. c. classes in the same source file are part of the same package. d. if a program uses multiple classes from the same package, these classes can access each other's package access members directly through references to objects of the appropriate classes, or in the case of static members, through the class name.
Answers: 1
question
Computers and Technology, 25.06.2019 10:30
Which of the following if statements uses a boolean condition to test: "if the item is on sale, you can buy it"? a: if( onsale < = "yes" ): b: if( onsale > = "yes" ): c: if( onsale == "yes" ): d: if( onsale ! = "yes" ):
Answers: 2
You know the right answer?
3. A two-dimensional array has been defined to hold the quantity of each of 5 different healthy
Questions
question
Mathematics, 11.10.2019 21:50
Questions on the website: 13722363