Frans Virtual Fruit Stand Flowchart And Program Design

Frans Virtual Fruit Stand Flowchart and Program Design

Fran’s Virtual Fruit Stand is an online store that sells several types of dried fruit. The program must continually accept data about the purchase of a single fruit item, process that data, and display relevant messages based on specific criteria. The data collected for each item includes the name of the fruit, the price per pound, and the number of pounds sold in a month. The process repeats until the user enters a sentinel value to end the program. The program will display messages identifying best-selling items, big-ticket items, high-priced items, lowest-selling items, and high-income generating items, based on given thresholds. The program must be designed in a flowchart using Visual Logic that is fully functional without using arrays, utilizing three variables that are overwritten each iteration.

Paper For Above instruction

Developing an effective flowchart and program for Fran's Virtual Fruit Stand requires a clear understanding of the specific requirements and the logic that ties them together. The program's primary goal is to repeatedly solicit data about dried fruit sales, evaluate the data according to predefined conditions, and display appropriate messages. The core challenge lies in implementing continuous data input, conditional checks, and output formatting in a structured and logical manner, all within a single Visual Logic program.

The program begins with initializing three variables: one for the fruit name, one for the price per pound, and one for the number of pounds sold. An additional variable will be used to calculate total income per item. To manage program flow, a sentinel value is established—commonly "n" or another character—and the program prompts the user to enter this value to terminate the process. During each iteration, the program prompts for the fruit name, checking if the value matches the sentinel; if so, it terminates, otherwise it proceeds to gather the price per pound and pounds sold.

Following data entry, the program evaluates whether the fruit is a best-selling item by checking if it sells 5,000 pounds or more. If true, it displays a message indicating that the item is a best-seller. Next, it assesses if the item is a big-ticket item by verifying it is both a best-seller and costs $4 or more per pound. If so, it prints an appropriate message. The program then checks if the item is high-priced, namely if the per-pound cost is $7 or more, and displays a message accordingly. Similarly, it determines whether the item is a lowest-selling item by evaluating if sales are 500 pounds or less, and displays a message if true. It then calculates the total income generated by multiplying the price per pound by the pounds sold, and checks if the total income surpasses $7,000; if so, a message indicating high-income is shown to the user.

Throughout the process, the program overwrites the variable values after each cycle, ensuring that only the latest data is retained. When the user inputs the sentinel value, the program terminates after displaying that value to confirm the end of execution. This design ensures that all conditions are checked for each item, and relevant messages are outputted in a clear, straightforward manner. The flowchart should include decision symbols for conditional checks, input/output symbols for prompts and messages, and process symbols for calculations and variable updates, arranged logically to guide the flow of execution until the sentinel value ends the loop.

References

  • Corey, M. (2019). Flowcharting and Algorithm Design for Beginners. Tech Publishing.
  • Gaddis, T. (2018). Starting Out with Visual Logic. Pearson Education.
  • Pressman, R. S. (2014). Software Engineering: A Practitioner’s Approach. McGraw-Hill.
  • Seacord, R. (2020). Programming Fundamentals with Visual Logic. Academic Press.
  • Evans, A. (2021). The Art of Programming Logic. O'Reilly Media.
  • Deitel, P., & Deitel, H. (2017). Introduction to Computing and Programming in Python. Pearson.
  • Balci, O. (2019). Principles of Structured Programming. Computers & Education, 142, 103644.
  • Laudon, K., & Traver, C. (2020). E-Commerce 2020: Business, Technology, Society. Pearson.
  • Sommerville, I. (2016). Software Engineering. Addison-Wesley.
  • Bell, D., & Silverstein, M. (2021). Introduction to Programming Logic. Springer.