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

  Explain what side effect is the expression contains

Give an example in C++ of an expression whose value depends upon the evaluation order. Show the orders that produce different values and the values they produce. Explain what side effect is the expression contains.

  Writing return statement in a value returning function

What would be wrong with not writing returnstatement in a value returing function? Can you have a returnstatement in a void function? Does the return statement in the following function cause syntax error?

  Write a problem that prompts the user for a radius

Write a problem that prompts the user for a radius and then prints: •The area and the circumference of a circle with that radius •The volume and surface area of a sphere with that radius

  The shipping charge on a purchase

The shipping charge on a purchase of $234.65 is $5.00.

  An important difference between the i/o requirements

1. An important difference between the I/O requirements of keyboards and disk drives is that a. keyboard input is fast while disk drives are slow. b. keyboards require constant monitoring, while disk drives do not. c. disk drives have I/O controllers..

  Create a gantt chart or project plan

Develop in accordance with the systems development life cycle and Create a Gantt chart or project plan (summary and detailed) template.

  Create a worksheet that computes membership costs

Create a worksheet that calculates membership costs for Buff and Tuff Gym. You will create functions that determine costs based on a condition, lookup membership rates and fees, and calculate monthly payments. You will also create functions that ..

  How it''s data can associated with specific row of main form

If the Subform control is used how it's data can associated with specific row of the main form

  Creating procedure to allow receiving clerk to add movies

Create a procedure which will allow the receiving clerk to add the new movies received to the mm_movie table.

  Using sjn in what order should they be processed

five jobs (a b c d e) are already in the READY queue waiting to be processed. their estimated CPU cycles are respectively 2 10 15 6 and 8. using SJN in what order should they be processed?

  You have 10 stacks of coins

You have 10 stacks of coins, each consisting of 10 quarters. One entire stack is counterfeit, but you do not know which one. You do know the weight of a genuine quarter and you are also told that each counterfeit quarter weights one gram more than it..

  Create a column of integers 1 through 30

In the next three columns show how each value is represented using the binary, octal, and hex number systems. Identify when and why each of the each three numbering systems is used ?

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