Case-Based Critical Thinking QuestionsCase 1You have just starting working at Quantum Company. As a new programmer, you have been asked to review and correct various pseudocode.The following pseudocode is not working correctly. The code should total the array elements. What code needs to be changed?start Declarations num count = 0 num total = 0 num scores[6] = 2,4,6,8,10,12 while count < 6 total = total + scores count = count + 1 endwhilestop
A. Change the while to:
while count < 7
B. move count = count + 1 after the endwhile
C. Change the total = to:
total = scores + scores[count]
D. Change the total = to:
total = total + scores[count]
Answer: D
Computer Science & Information Technology
You might also like to view...
What enables a computer and camera to talk to each other?
a.Device drivers b.Memory cards c.PictBridge d.Tagging
Computer Science & Information Technology
Blu-ray discs are often used for high-definition video
Indicate whether the statement is true or false
Computer Science & Information Technology