Trace the following Bowling Score algorithm (taken from Section 2.9). Use the setup shown below the algorithm.
1 totalScore ← 02 count ← 03 print "Enter score (–1 to quit): "4 input score5 while score ≠ –16 {7 totalScore ← totalScore + score8 count ← count + 19 print "Enter score (–1 to quit): "10 input score11 }12 avg ← totalScore / count13 print "Average score is " + avgTrace setup:
Input
94
104
114
–1
Line#
score
totalScore
count
avg
output
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.