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

  A 32 gb server to use as a virtualization hos

YOu have a 32 GB server to use as a virtualization host. You have thirty-two applicationservers that you plan to P2V to this host. Each application server is currently on aphysical server that has 4 GB of memory. The application servers all ru..

  Define artificial intelligence

Provide a reference list of at least 8-sources that are properly cited according to APA format. I would like to see a variety of sources, for example not just articles from one journal.

  Experience with pcap

The purpose of this assignment is to identify your experience with full packet capture.Research packet capture, and report on its usefulness in cyber security and network forensics.

  The disadvantages of allowing unlimited access

Employers can use a number of products to monitor their employees' use of the Internet. These products report an employee's access of non-business related Web sites. Advocates insist that these products conserve network resources, make workers mor..

  Data governance improvements

Data Governance Improvements

  Prepare the interface which has single method decode

Prepare the interface MessageDecoder which has single method decode(String cipherText) where cipherText is the message to be decoded.

  Write a documented argumentative essay

Write a documented argumentative essay

  Which particular software products are used at your company

Which particular software products are used at your company?

  Write code to assign to the variable

Write code to assign to the variable format a formatting string that will display three values referenced by the variables quantity

  Make the color of the text lightblue

Write a CSS rule that gives h1 and h2 elements a padding of 0.5 ems, a dashed border style and a margin of 0.5 ems.

  Write a main program which will prompt the user

Write a Main Program which will prompt the user for how many numbers they which to enter as an integer counter (numcount) variable. The program should then prompt the user to enter each number using a loop and then output the average of the number..

  An information security professional

Imagine the university that employs you as an information security professional has recently identified the need to design and build a digital forensic laboratory. You have been tasked with designing the lab for the organization.

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