D B) Ⓒ 32. A programmer is writing a program to calculate a student's course grade using the process described. The programmer has the following procedures available. Procedure Call Min (numList) Sum (numList) The student's individual assignment scores are stored in the list scores. Which of the following can be used to calculate a student's course grade and store the result in the variable finalGrade? finalGrade finalGrade Explanation Returns the minimum value in the list numList Returns the sum of the values in the list numList finalGrade finalGrade Sum (scores) / LENGTH (scores) finalGrade - Min (scores) finalGrade Sum (scores) / (LENGTH (scores) finalGrade + finalGrade - Min (scores) Sum (scores) Min (scores) finalGrade / LENGTH (scores) 65490 1) finalGrade Sum (scores) - Min (scores) finalGrade finalGrade / (LENGTH (scores) - 1) +S 87,5 21175 16 10

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 9PP
icon
Related questions
icon
Concept explainers
Question
Please show work of the correct answer annotate how you got the answer!! Please answer both! Not an graded assignment!
35.
LEO
BotMover
BotMover
BotMover
BotMover 1
BotMover 0
A programmer notices the following two procedures in a library. The procedures do similar, but not identical
things.
• Procedure MaxTwo (x, y)) returns the greater of its two integer parameters.
Procedure Max Three (x, y, z) returns the greatest of its three integer parameters.
Which of the following procedures is a generalization of the MaxTwo and Max Three procedures?
(A) Procedure Min (x, y), which returns the lesser of its two integer parameters
(B) Procedure Max (numList), which returns the maximum value in the list of integers numList
(C) Procedure MaxFour (w, x, y, z), which returns the greatest of its four integer parameters
(D) Procedure OverMax (numList, max), which returns the number of integers in numbrist that
exceed the integer value max
Transcribed Image Text:35. LEO BotMover BotMover BotMover BotMover 1 BotMover 0 A programmer notices the following two procedures in a library. The procedures do similar, but not identical things. • Procedure MaxTwo (x, y)) returns the greater of its two integer parameters. Procedure Max Three (x, y, z) returns the greatest of its three integer parameters. Which of the following procedures is a generalization of the MaxTwo and Max Three procedures? (A) Procedure Min (x, y), which returns the lesser of its two integer parameters (B) Procedure Max (numList), which returns the maximum value in the list of integers numList (C) Procedure MaxFour (w, x, y, z), which returns the greatest of its four integer parameters (D) Procedure OverMax (numList, max), which returns the number of integers in numbrist that exceed the integer value max
32.
A
A programmer is writing a program to calculate a student's course grade using the process described. The
programmer has the following procedures available.
Procedure Call
Min (numList)
Sum (numList)
The student's individual assignment scores are stored in the list scores. Which of the following can be used to calculate
a student's course grade and store the result in the variable finalGrade?
finalGrade
finalGrade
Explanation
Returns the minimum value in the list numList
Returns the sum of the values in the list numList
Sum (scores) / LENGTH (scores)
finalGrade - Min (scores)
finalGrade
finalGrade finalGrade - Min (scores)
finalGrade
finalGrade
Sum (scores) / (LENGTH (scores) - 1)
finalGrade Sum (scores) - Min (scores)
finalGrade finalGrade / LENGTH (scores)
65+90
Sum (scores) - Min (scores)
finalGrade/ (LENGTH (scores) - 1)
87.5
2175
pal
15
10
3. An administrator at the school has data about hundreds of students in a particular course. While the administrator
Transcribed Image Text:32. A A programmer is writing a program to calculate a student's course grade using the process described. The programmer has the following procedures available. Procedure Call Min (numList) Sum (numList) The student's individual assignment scores are stored in the list scores. Which of the following can be used to calculate a student's course grade and store the result in the variable finalGrade? finalGrade finalGrade Explanation Returns the minimum value in the list numList Returns the sum of the values in the list numList Sum (scores) / LENGTH (scores) finalGrade - Min (scores) finalGrade finalGrade finalGrade - Min (scores) finalGrade finalGrade Sum (scores) / (LENGTH (scores) - 1) finalGrade Sum (scores) - Min (scores) finalGrade finalGrade / LENGTH (scores) 65+90 Sum (scores) - Min (scores) finalGrade/ (LENGTH (scores) - 1) 87.5 2175 pal 15 10 3. An administrator at the school has data about hundreds of students in a particular course. While the administrator
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Control Structure
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr