Fran''s virtual fruit stand

Assignment Help Basic Computer Science
Reference no: EM13760705

Assignment 2: Fran's Virtual Fruit Stand

Use the concepts and scenario from Assignment 1 to help Fran's Virtual Fruit Stand 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 per pound, and the number of pounds of that item 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:

Continually accept data regarding the purchase of fruit as specified below until the user enters a sentinel value, or until five (5) 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 pound, and one (1) for the number of pounds 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 "pricePerPound" array, would give us the price per pound of that same third item that the customer is buying.
Store up to five (5) 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 five (5) items.
Print an itemized receipt with the following data after the last item in the purchase has been saved to the array.

Item name
Price per pound of each item
Number of pounds purchased of each item
Subtotal price for each item, calculated as price per pound multiplied by the number of pounds
Total weight of the entire order (in pounds)
The cost of shipping which is based on the total weight of the entire order, calculated as 50 cents per pound. Note: For example, if the entire order weighs seven (7) pounds, the cost of shipping would be $3.50.
Grand total price of all items and shipping.

Reference no: EM13760705

Questions Cloud

Liabilities are the firms debts-both current and long-term : The systematic process of regulating organizational activities to make them consistent with the expectations in plans, targets, and standards of performance refers to organizational control.  Liabilities are the firm's debts, both current and long-te..
Research on professional communication : You will individually research a topic on some aspect of professional communication. You will then prepare a 1-2 page outline using the standard outline format (shown below) that would be used in a training session. At the end of your outline yo..
Good training room : What are the characteristics of a good training room? How does the facility affect the training or does it?
Analyze the relationships among the premise : Describe the purposes for and analyze the relationships among the Premise, Prospectus, and Proposal components of the Dissertation.
Fran''s virtual fruit stand : Use the concepts and scenario from Assignment 1 to help Fran's Virtual Fruit Stand 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 custo..
Lunix : Compare the total number of links in a 20 node network for:
Alternate hypotheses : Should Martha use an independent-samples t-test or a related samples t-test.
Prepare journal entries for the transactions : Prepare journal entries for the transactions listed above. Prepare a Stockholders' section of a classified balance sheet as of December 31, 2014.
Describe all pertinent and ethical issues : Describe the ethical issues. Describe all pertinent issues and suggest only one of the most obvious issues discussed.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How to create file autorun.inf on usb

How to create file autorun.inf on USB - You need to create file autorun.inf on USB. Who can help me? Thanks

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  Write subroutine in marie assembly that multiplies two value

Write a subtoutine in MARIE assembly that multiplies two values where the arguments for this subroutine are two pointers (each pointer pointing to a value). The routube, multiply (a,b), performs *a x *b where a's value is the address storing the valu..

  Distinct integers that has the following property

You have an array A[0], A[1], ..., A[n - 1] of distinct integers that has the following property:The values in the array increase up to index p for some p between 0 and n - 1, and then decrease for all indices beyond p through positio

  Evaluate an organizations strategic business units

Discuss the concept of perceived value and its importance to consumer behaviour and marketing. Discuss the theory and then give practical examples of how customers perceive various brands and how this impacts on their behaviour.

  Interactive java program that asks a user for some interest

Create an interactive Java program that asks a user for some text of interest and then displays the first email address found in that text. (This is the basis for one of the programs that spammers use to mine text, such as email messages, Web pages, ..

  Write a select statement that returns four columns

Write a Select statement that returns four columns from the Invoices table, named Number, Total, Credits, and Balance

  Prove by solving the equations using laplace transform

For a RC circuit, we can use Laplace transforms to show that when we apply a step input of 5V, the voltage across the capacitor rises exponentially to a final value equal to step input.

  Future applications will change manufacturing industry

Prepare a response which explains the future applications which will change manufacturing industry, judiciary, and field of sports. Explain at least one application for each field.

  Determine minimum number of element

We wish to find the element x that is in upper half when S is sorted, or in other words element which is greater than median. Determine the minimum number of element comparision required to solve problem ?

  Explore and estimate software programs

Explore and estimate software programs based on following criteria: Needs assessment -- Why would the prospective user require program? Write down the features of the program?

  What general algorithm approach solving following problem

Help a robot move along its track (with spaces numbered 0 through 99) by calculating its new position when given `direction` equal to "forward" or "backward" and `number_of_moves` indicating a non-negative number of spaces

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd