Purchase Solution

Simple pseudocode to calculate produce sale

Not what you're looking for?

Ask Custom Question

1. Let us say you are a farmer and you participate in Farmers Market every Sunday. You bring 5 favorite vegetables or fruits for sale. You are going to use a program for checking out customers. You can choose your favorite 5 vegetables/fruits as your items.
2. Assume that all items are priced per-pound. As soon as the program starts, it should prompt for and get the prices of those items.
3. Then, it should allow the user to do checkout operation again & again until the user decides to quit.
4. As part of checkout operation, another loop should be used for product selection: list all 5 products & their prices, and let the user choose a product & enter weight. You should keep repeating this product loop until the user indicates to complete the checkout. Then, compute the total purchase cost based on the input values and display it. If the total purchase exceeds $50, apply 5% discount to the total.

Purchase this Solution

Solution Summary

A pseudocode starting example, with explanation is attached.

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.