58. What is this code doing? The list named numbers contains integers. Assume all variables are cor- rectly initialized. valuel - 0 value2-0 FOR EACH nun in numbers ( valuel- valuel num value2 value2. 1 } value3 valuel / value2 (A) Calculating how many numbers are in the list (B) Calculating the sum of all the values in the (C) Calculating the average of the values in the list (D) Calculating the minimum value in the list 59. What should project teams do to produce a bet- ter software product? (A) Break down the problem into manageable units. (B) Code while requirements are being final- ized to have more time for testing, (C) Spend testing time only on the compli- cated sections. (D) Not allow any changes from the user. 60. A soccer league tracks certain stats by team as seen in the table below. Which of the following CANNOT be determined by the data? (A) If a team wins more often when the num- ber of red cards is less than 1 per game (B) If a team wins more when they were the home team (C) If days where the temperature was 80°F were also rainy (D) Team winning percentage Team Wins Losses 55 22 12 42 11 23 37 19 15 Average number of 61. What is this block of code doing? price - p numitems num taxRate foodTax ant Paid 20.00 inv currinv amt Owe IF (amt Paida antOve) ( Page 10/12 } ELSE ( red cards Game day temperature per game higher than 80°F 0 17 (price nunItems) taxRate changeant Paid - antove inv- inv - 1 } i. Calculates the tax rate for an item. ii. Calculates current inventory numbers. iii. Calculates the change owed the customer or if the customer needs to pay more for their purchase. DISPLAY("Please pay an additional $", antove-ant Paid) (A) i and ii (B) i and iii (C) ii and iii (D) i, ii, and iii Q Rain day before a game 10 + Home games won 19 12

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Please answer this questions and show the work and explain how you got the answer!
58. What is this code doing? The list named numbers
contains integers. Assume all variables are cor-
rectly initialized.
valuel - 0
value2 - 0
FOR EACH nun in numbers
(
valuele valuel+ num
value2 value2 1
}
value3 valuel / value2
(A) Calculating how many numbers are in the
list
(B) Calculating the sum of all the values in the
list
(C) Calculating the average of the values in the
list
(D) Calculating the minimum value in the list
59. What should project teams do to produce a bet-
ter software product?
(A) Break down the problem into manageable
units.
(B) Code while requirements are being final-
ized to have more time for testing,
(C) Spend testing time only on the compli-
cated sections.
(D) Not allow any changes from the user.
60. A soccer league tracks certain stats by team as
seen in the table below. Which of the following
CANNOT be determined by the data?
(A) If a team wins more often when the num-
ber of red cards is less than 1 per game
(B) If a team wins more when they were the
home team
(C) If days where the temperature was 80°F
were also rainy
(D) Team winning percentage
Team Wins Losses
55 22 12
42 11
23
37 19
15
Average
number of
61. What is this block of code doing?
price p
numitems - num
taxRate foodTax
Page 10 12
amt Paid 20.00
inv currInv
amtowe (price numItems) taxRate
IF (ant Paida antOve)
(
}
ELSE
(
change ant Paid- ant Ove
invinv -1
DISPLAY("Please pay an
additional $", antowe-amt Paid)
}
i. Calculates the tax rate for an item.
ii. Calculates current inventory numbers.
iii. Calculates the change owed the customer
or if the customer needs to pay more for
their purchase.
(A) i and ii
(B) i and iii
(C) ii and iii
(D) i, ii, and iii
red cards Game day temperature Rain day before
per game higher than 80°F
a game
0
17
Q
10
Home games won
19
4-
12
Transcribed Image Text:58. What is this code doing? The list named numbers contains integers. Assume all variables are cor- rectly initialized. valuel - 0 value2 - 0 FOR EACH nun in numbers ( valuele valuel+ num value2 value2 1 } value3 valuel / value2 (A) Calculating how many numbers are in the list (B) Calculating the sum of all the values in the list (C) Calculating the average of the values in the list (D) Calculating the minimum value in the list 59. What should project teams do to produce a bet- ter software product? (A) Break down the problem into manageable units. (B) Code while requirements are being final- ized to have more time for testing, (C) Spend testing time only on the compli- cated sections. (D) Not allow any changes from the user. 60. A soccer league tracks certain stats by team as seen in the table below. Which of the following CANNOT be determined by the data? (A) If a team wins more often when the num- ber of red cards is less than 1 per game (B) If a team wins more when they were the home team (C) If days where the temperature was 80°F were also rainy (D) Team winning percentage Team Wins Losses 55 22 12 42 11 23 37 19 15 Average number of 61. What is this block of code doing? price p numitems - num taxRate foodTax Page 10 12 amt Paid 20.00 inv currInv amtowe (price numItems) taxRate IF (ant Paida antOve) ( } ELSE ( change ant Paid- ant Ove invinv -1 DISPLAY("Please pay an additional $", antowe-amt Paid) } i. Calculates the tax rate for an item. ii. Calculates current inventory numbers. iii. Calculates the change owed the customer or if the customer needs to pay more for their purchase. (A) i and ii (B) i and iii (C) ii and iii (D) i, ii, and iii red cards Game day temperature Rain day before per game higher than 80°F a game 0 17 Q 10 Home games won 19 4- 12
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps

Blurred answer
Knowledge Booster
Linked List Representation
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education