Question: Visual Logic Assignment Eight Write a Visual Logic program named VLogic8.vls that implements another version of the supermarket checkout program from assignment 7. This time,
Visual Logic Assignment Eight Write a Visual Logic program named VLogic8.vls that implements another version of the supermarket checkout program from assignment 7. This time, use a counter and a sentinel so any number of items may be purchased and totaled up at the checkout. Here are two sample runs: Enter the price of the item please, or 0 to quit 2.59 nter the price of the item please, or o to quit 11.29 Enter the price of the item please, or 0 to quit 4.25 Enter the price of the item please, or 0 to quit 0 The bi11 for those 3 items is $18.13 8 Enter the price of the item please, or 0 to quit 12.25 Enter the price of the item please, or 0 to quit 1.39 Enter the price of the item please, or 0 to quit 7.49 Enter the price of the item please, or 0 to quit 3.95 Enter the price of the item please, or 0 to quit 6.79 Enter the price of the item please, or 0 to quit 0 The bi11 for those 5 items is $31.87 ource uploads/downloads/1418837733 237128.pdf tems are being purchased Begin Count-0 Total 0 True True Fail Input: Number True Exit Loop Count-Count+ Total Total Number Average Total /Count Output: The average of those"& Count&numbers is"& Average Note that the counter Count increases by just 1, but the accumulator Total increases by the value of another variable, Number. End Enter a number, or 0 to quit 12 Enter a number, or 0 to quit 13 Enter a number, or 0 to quit 14 Enter a number, or 0 to quit o The average of those 3 numbers is 13 Enter a number, or 0 to quit 70 Enter a number, or 0 to quit 80 Enter a number, or 0 to quit 90 Enter a number, or 0 to quit o The average of those 3 numbers is 80
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
