Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 2: Virtual Store Due Week 9 and worth 190 points Use the concepts and scenario from Assignment 1 to help Your Virtual Business to

Assignment 2: Virtual Store Due Week 9 and worth 190 points Use the concepts and scenario from Assignment 1 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 (1) and / or conditional statement, and one (1) 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: Include a header or an output which shows: Welcome to XXXX Shop. Note: XXXX is your first and last name. Continually accept data regarding the purchase of fruit as specified below until the user enters a sentinel value, or until six (6) items are entered, whichever comes first. Prompt the user for each item and accept the name of the fruit (e.g., dried apples), the price per pound, and the number of pounds sold in a month. Store the required data in three (3) arrays (e.g., one (1) for the item name, one (1) for the price per item, and one (1) 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. Store up to six (6) values in each of the three (3) arrays. 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 (6) items. Print an itemized receipt with the following data after the last item in the purchase has been saved to the array.

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

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions