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 program that computes loan payments

Write a program that computes loan payments. The loan can be a car loan, a student loan, or a home mortgage loan. The program lets the user enter the interest rate.

  Explain multiprogrammed system available in user mode

CPU voltage and frequency or put it to sleep altogether. In a multiprogrammed system should this functionality be available in user mode or only accessible via system call. why or why not?

  Design program to calculate amount of money spend

Design a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day.

  Write a function to circulate a list

Write a function to circulate a list. The function takes two paramaters, the first defines how many elements of the list to circulate, and the second is the list. The output should be the circulated list.

  The purpose of this experiment is to use the masm

The purpose of this experiment is to use the MASM assembler and linker to convert your 80x86 assembly language source files into executable code, such as .EXE and .COM files.

  Explain different kind of product sold

Use two-dimensional array to solve following problem. Company has four salespeople(1 to 4) who sell five different products (1 to 5). Once day, each salesperson passes slip for each different kind of product sold.

  Evaluate the fibonacci series

Write a program to evaluate the first 20 numbers of Fibonacci series.

  Program for class quiz to implement measurable interface

State a class Quiz to implement Measurable interface. A quiz has a score and a letter grade (such as B+).

  How many bitstrings of length

How many bitstrings of length 8 are there that contain 4 (or more) consecutive 0’s or contain 4 (or more) consecutive 1’s?Justify your answer.

  What is rss? why and who should use rss?

What is RSS? Why and who should use RSS?

  Create a new console application project

Create a new console application project and name it "Week1Lab_BirdN". Create the necessary member functions that will perform the required operations outlined in the lab summary above.

  Illustrate whether program will fit in address space

Will this program fit in address space? If page size were 512 bytes, would it fit? Remember that page may not contain parts of two different segments.

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