Question: Code Example 5 - 1 1 . count = 1 2 . item _ total = 0 3 . item = 0 4 . while
Code Example
count
itemtotal
item
while count :
item intinputEnter item cost:
itemtotal item
count
averagecost rounditemtotal count
printfTotal cost: itemtotal
Average cost: averagecost
Refer to Code Example : If the user enters and at the prompts, the output is:
Total cost:
Average cost:
Which line should be changed to fix this logic error?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
