Create a flowchart that is also a fully functional program

Assignment Help Data Structure & Algorithms
Reference no: EM131309406

Fran's Virtual Fruit Stand, Part 2

Use the concepts and scenario from Assignment 1 (attached if need for help) 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:

1. 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.

2. 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.

3. 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.

4. Store up to five values in each of the three arrays.

5. 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.

6. Print an itemized receipt with the following data after the last item in the purchase has been saved to the array.

o Item name
o Price per pound of each item
o Number of pounds purchased of each item
o Subtotal price for each item, calculated as price per pound multiplied by the number of pounds
o Total weight of the entire order (in pounds)
o 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.
o Grand total price of all items and shipping.

Note: Use the "console" option in the output command to accomplish this task.

Attachment:- Assignment 1.zip

Reference no: EM131309406

Questions Cloud

Converters for the aerospace industry : FCX Systems, which manufactures power converters for the aerospace industry, realized that to continue to grow, the company would have to seek opportunities in foreign markets. Today, the company is the recipient of numerous accolades for its expo..
Create a word or pdf document that describes your process : Create a word or PDF document that describes your process, steps and results. Be sure to describe your schema and why you selected the tables and columns you did for your Private database.
What do you think is important to include in your review : Prepare to write a review of a restaurant or a dining facility on campus. Use the process outlined:- How will you organize your main and supporting points?
Largest value of relative optimism : Assume that litigation will cost the plaintiff $100 and the defendant $100. Assume that settling out of court is free (SC=$0). What is the largest value of relative optimism (DEJ) at which the parties can still settle out of court? Explain.
Create 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.
Consequences which are unintended by the government : In contrast, read this blog post; according to the post, why might anti-gouging laws not increase social welfare, or at least why might they lead to consequences which are unintended by the government?
What factors contribute to the groups cohesiveness : What factors contribute to the group's cohesiveness? Be sure to refer to Chapter 8 of your text and use specific scenes from the movie.To what extent did members effectively understand, remember, interpret, evaluate, and respond to one another's ..
Write review of a restaurant or a dining facility on campus : Prepare to write a review of a restaurant or a dining facility on campus.- What do you think is important to include in your review? Draw a mind map.
Expansionary monetary policy : If Congress and the president pursue an expansionary fiscal policy at the same time as the Federal Reserve pursues an expansionary monetary policy, how might the expansionary monetary policy affect the extent of crowding out in the short run? Expl..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Describe an algorithm that takes as input a list

Describe an algorithm that takes as input a list of n distinct integers and finds the location of the largest even integer in the list or returns 0 if there are no even integers in the list.

  Design algorithm based on bfs that colors a graph

Design an algorithm based on BFS that either colors a graph with 2 colors or determines that two colors are not sufficient.

  Design and implement an avl tree algorithm

Design and implement an AVL tree algorithm that searches a collection of documents. You will be provided with a set of 50 documents and a set of sample queries. First, you will process the documents and store their content (i.e. words / tokens) in..

  Derive a formula for worst-case message complexity of algo

Derive a formula for the worst-case message complexity of the algo­ rithm. Show, by varying f, that a linear message complexity can be obtained.

  Convert the following expression in postfix

Convert the following expression in postfix (reverse Polish notation). Remember the rules of precedence for arithmetic operators. To get full credit, you need to show all work done. i.e. sample snapshot of the stack

  Design randomized algorithm for solving decoding problem

The Viterbi algorithm is a deterministic algorithm for solving the Decoding problem. Design a randomized algorithm for solving the Decoding problem.

  How is different node insertion into doubly linked list

How is different node insertion into doubly linked list vs. node insertion into singly linked list? just a short description.

  Explain consensus algorithm

"Consensus algorithm": A group of ten people need to decide which one flavor of ice cream they will all order, out of three options.

  Count all strings as occurrences of one operand

count Halstead's ry1 and ry2. Calculate ry and N. Count all strings as occurrences of one operand called ‘‘string.''

  Write a function that deletes kth element of the linked list

Write a function that returns the info of the kth element of the linked list. If no such element exists, terminate the program. Write a function that deletes the kth element of the linked list.

  Explain feasibility analysis for jobs of lrt algorithm

Study feasibility analysis for jobs of LRT algorithm when preemption is allowed. Which scheduling algorithm is best suited for high speed networks and why? Distinguish between static and dynamic systems.

  Data structures and algorithm design

Data Structures and Algorithm Design

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