Purchase Solution

Compute the Unit Price for Products Sold Using Pseudocode

Not what you're looking for?

Ask Custom Question

The following problem can be solved by a program that performs three basic tasks: Input Data, Process Data, and Output Results. Use a pseudocode to design a suitable program for solving it.

The manager of the Super Supermarket would like to be able to compute the unit price for products sold there. To do this, the program should input the name and price of an item and its weight in pounds and ounces. It should then determine and display the unit price (the price per ounce) of the item.

Purchase this Solution

Solution Summary

This solution provides guidelines for using a pseudocode to design a program to compute the unit price for products sold at the Super Supermarket.

Solution Preview

Here is the pseudocode:

UnitPriceCalculator()
BEGIN
// Input Data
1. Prompt("Name: ");
2. name = getString(); // Get a string from screen as the name of the product
3. Prompt("Price: ");
4. ...

Purchase this Solution


Free BrainMass Quizzes
Basic Networking Questions

This quiz consists of some basic networking questions.

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.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C++ Operators

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

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.