Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions