Visual logic virtual store


Assignment:

Visual Logic Virtual Store

Use the concepts and scenario from Assignment to help "Your" Virtual Business to increase the functionality of its online shopping cart. When a customer checks out, the shopping cart must store the required data pertaining to each item the customer is buying. Your job is to design a program that will prompt the user for the required data and then store it. The required data includes the item name, the price of each item, and the number of items being purchased. When complete, your program should include three (3) arrays, two (2) loops, one and / or conditional statement, and one variable.

Using Visual Logic, design a flowchart that is also a fully functional program to add functionality to the online shopping cart. According to your design, the program must:

1. Include a header, "Welcome to xxxx Shop". xxxx is your first and last name.

2. Continually accept data regarding the purchase of different items as specified below until the user enters a sentinel value, or until six  items are entered, whichever comes first.

3. Prompt the user for each item and accept the name of the item (e.g., "Led light bulbs"), the price, and the number of items sold in a month.

4. Store the required data in three arrays (e.g., one for the item name, one for the price per item, and one for the number of items being purchased) with corresponding index values. Note: For example, index value 3, when applied to the "itemName" array, would give us the name of the third item that the customer is buying. That same index value of 3, when applied to the "pricePerItem" array, would give us the price per item of that same third item that the customer is buying.

5. Store up to six values in each of the three arrays.

6. Provide functionality in which the user ends the program by typing a sentinel value, and the program tells the user what the sentinel value is. Note: An acceptable message may read "Type n to end the program.", where "n" is the sentinel value. If the user does not end the program in this way, then the program ends when it has collected the data for six items.

7. Print an itemized receipt with the following data after the last item in the purchase has been saved to the array.

o Item name
o Price per item
o Quantity of items purchased
o Subtotal price for each item, calculated as price per item multiplied by the quantity of items
o Total number of items for the entire order
o The cost of shipping which is based on the total number of items, calculated as 40 cents per item. Note: For example, if the customer purchased four items, the cost of shipping would be (.40 * 4 = $1.60).
o Grand total price of all items and shipping.

Note: Use the "console" option in the output command to accomplish this task. An example of an acceptable output has been provided below:

Item name
Price per Item
Number of Items
Subtotal
Light Bulbs
Towels
$4
$3
3
5
$12
$15
Total
Shipping
8
$27
$3.20
Grand Total
$30.20

Solution Preview :

Prepared by a verified Expert
Accounting Basics: Visual logic virtual store
Reference No:- TGS02031584

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)