Display sentinel value so that user may ultimately be able

Assignment Help Data Structure & Algorithms
Reference no: EM131310068

Fran's Virtual Fruit Stand,

Part 1

Fran's Virtual Fruit Stand is an online store that sells several types of dried fruit. Based on the needs of Fran's Virtual Fruit stand, you must design a flowchart using Visual Logic. The flowchart must also be a fully functional program which follows the design requirements below.

Note: This program does not require the use of arrays. The program will prompt for data on a single item, process that data, display any relevant messages as described below, and then move on to the next item. Use the "console" option in the output command to display the output in a single window. Displaying the output can be accomplished with as few as three variables that simply get overwritten each time the loop repeats.

Using Visual Logic, design a flowchart that is also a fully functional program. According to your design, the program must:

1. Continually accept data regarding the purchase of fruit until a sentinel value is entered.

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. Display a clear message for items that are considered:

a. Best-selling items

Note: Best-selling items are identified as those that sell 5,000 or more pounds per month on average. For example, an acceptable message may read, "Yellow raisins are a best-selling item."

b. Big-ticket items

Note: Big-ticket items are identified as those that are best-selling items and also cost $4 per pound or more. For example, an acceptable message may read, "Freeze-dried blueberries are a big-ticket item."

c. High-priced items

Note:High-priced items are identified as those that sell for $7 per pound or more. For example, an acceptable message may read, "Dried mangos are a high-priced item."

d. Lowest-selling items

Note: Lowest-selling items are identified as those that sell 500 pounds or less per month on average. For example, an acceptable message may read, "Dried Ugli Fruit is a lowest-selling item."

e. High-income generating items

Note: High-income generating items are identified as those that generate $7,000 or more per month on average. To determine the income generated per item, multiply the price per pound by the number of pounds sold per month. If the item generates $7,000 or more per month, an acceptable message may read, "Dried pineapple chunks are a high-income generating item."

4. Loop through all of the above steps until the user types the sentinel value when prompted. Display the sentinel value so that the user may ultimately be able to demonstrate an understanding of the way in which to end the program. Note: An acceptable message may read "Type n to end the program.", where "n" is the sentinel value.

Your Visual Logic program must follow these formatting requirements:

• Be accomplished in a single Visual Logic program.
• Be submitted as a single file with the ".vls" file extension.
• Be fully functional in order to receive full credit.

The specific course learning outcomes associated with this assignment are:

• Demonstrate the use of algorithms and pseudocoding to the problem-solving process.
• Distinguish among the basic types, steps, and properties of programming.
• Apply the techniques of functional decomposition, modularization techniques, and debugging strategies into program design.
• Describe the features and fundamental data structures of programming design.
• Select and create the appropriate conditional and iteration constructs for a given programming task.

Reference no: EM131310068

Questions Cloud

Why is the file kept inaccessible to the web server : Consider the scheme used to allow customers to submit their credit card and order information. Section 26.3.3.2 states that the enciphered version of the data is stored in a spooling area that the Web server cannot access.
Research paper - the holy spirit in the book of acts : For this course, you are required to write a 5-8-page research paper addressing 1of the topics from the list below. Choose 1of the following topics for your research paper: Acts 1:8, The Holy Spirit in the Book of Acts and The "calling" of Saul of Ta..
Discuss the required changes in the network infrastructure : Discuss the required changes in the network infrastructure. In particular, should the outer firewall provide an SSH proxy or a packet filter to incoming SSH connections? Why?
Explain importance of critical path in project management : Explain the importance of the critical path in project management. Examine the advantages of using a Gantt chart over a PERT chart and vice versa. Determine when it is appropriate to use one over the other.
Display sentinel value so that user may ultimately be able : Loop through all of the above steps until the user types the sentinel value when prompted. Display the sentinel value so that the user may ultimately be able to demonstrate an understanding of the way in which to end the program.
What would be the firms expected dividend per share : Coca-Cola stock has an expected ROE of 14% per year, expected earnings per share of $4, and expected dividends of $2.50 per share. Its market capitalization rate is 15% per year. a) what are its expected growth rate, its price and its P/E ratio? b) I..
What is the list price of the bond on the settlement date : Calculate the price of the bond for a market interest rate of 3% per half year. Compare the capital gains for the interest rate decline to the losses incurred when the rate increases to 5%. A bond with a settlement date of April 30, 2013 and a maturi..
Complete the code that passes the array a and b : Complete the code that passes the array a and b from process 0 to process 1 using the algorithm shown in textbook p.246. Vary the size of arraya and b from 100, 1000, and 2000 to compare and discuss the results.
What is the required rate of return on the project : Stock XYZ has an expected return of 12% and B = 1. Stock ABC is expected to return 13% with a beta of 1.5%. The market's expected return is 11% and r1 = 5%. According to the CAPM,which stock is a better buy? What is the alpha of each stock? What is t..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement the dynamic-set operation insert

Can you implement the dynamic-set operation INSERT on a singly linked list in O(1) time? How about DELETE - what is the maximum number of keys that can be stored in a B-tree of height h?

  Redraw the chart to improve the design

Critique the following structure chart that depicts a guest making a hotel reservation. Describe the chart in terms of fan-in, fan-out, coupling, and cohesion. Redraw the chart to improve the design.

  Explain how to modify knuth-morris-pratt algorithm

Explain how to modify Knuth-Morris-Pratt algorithm to support patterns with these wild cards, and analyze modified algorithm. Your algorithm must find first substring in text which matches the pattern.

  What are the benefits of linked lists and objects in

what are the advantages of linked lists and objects in program development and design? how does python utilize these

  Computing hash value for message

For a message, he computes the hash value H = (VChar 1 x VChar 2 x VChar 3 ...x VChar N) mod(26).

  Implement the coordinate descent algorithm in r

Implement the coordinate descent (CD) algorithm in R. You can build up your codes as follows: Generate a training dataset and an independent testing dataset from the same model. (b) Fit the model on the training data using CD algorithm for a fixed ..

  Truth teller problem

Assume you were in a nation where each person was either a truth teller or a liar. Determine what single question could you ask a person that would permit you to detect whether that person was a truth teller or a liar?

  Write a flowchart to solve any linear equation

Write a flowchart to solve any linear equation ax+b=0 -

  Definition and purpose of normalization

Explain how 3rd Normal Form can reduce insert, update and delete anomalies

  Develop a profile of various projects for risk visibility

A key point in project portfolio management is that the IT manager must determine the risk associated with each project and develop a profile of various projects for risk visibility.

  Algorithm to decide flavor of ice cream

A group of ten people need to decide which one flavor of ice cream they will all order, out of three options. The algorithm can question and re-question the participants, and present the answers to the participants.

  Design a representation of display screen

Create a form that lists possible potatoes and toppings in a manner that is easy for counter servers and kitchen crew to scan, and can also be used as input for the inventory reorder system.

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