Prepare a flowchart that is also a fully functional program

Assignment Help Programming Languages
Reference no: EM131321055

Frans Virtual Fruit Stand

Use the concepts and scenario from Assignment 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 arrays, two 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:

Continually accept data regarding the purchase of fruit as specified below until the user enters a sentinel value, or until five 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 arrays (e.g., one for the item name, one for the price per pound, and one 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 values in each of the three 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 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 pounds, the cost of shipping would be $3.50.

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 pound Number of pounds Subtotal

Yellow Raisins $4 3 $12

Dried Apples $3 5 $15

Total 8 $27

Shipping $4

Grand Total $31

Reference no: EM131321055

Questions Cloud

Distinguish among the median mode and mean : What three rules govern the construction of a grouped frequency distribution?
Increases its dividend plowback ratio : A firm has PVGO=0, and increases its dividend plowback ratio. All else equal you know that:
What is the maximum applied voltage to the oxide : How long does it take to fail if there are 1012 cm-2 unoccupied traps initially? What is the maximum applied voltage to the oxide for 10-year life?
What three criteria characterize good descriptions of data : What three criteria characterize good descriptions of data?
Prepare a flowchart that is also a fully functional program : 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.
Discuss which is your favorite and why : Considering all of the psychological theorists you have learned about, discuss which is your favorite and why (I suggest B. F. Skinner). Describe which components of that individual's theory you think are most relevant to your concentration: Appli..
What is the maximum applied voltage to the oxide film : Calculate the time to failure when 10V is applied to a 100A VLSI oxide. What is the maximum applied voltage to the oxide film for 10-year life?
What is the difference between a stratum and a cluster : In what way would the use of sampling improve the accuracy of the United States census?
Zero coupon bond with yield-to-maturity : If you buy a 7-year, risk-free, zero coupon bond with a yield-to-maturity of 4%, then sell it 3 years later, when the yield-to-maturity on 4-year, risk-free, zero coupon bonds is 5%, what is your annual HPR? (Assume annual compounding.)

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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