Explore BrainMass

Compute the Unit Price for Products Sold Using Pseudocode

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

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.

© BrainMass Inc. brainmass.com March 21, 2019, 4:13 pm ad1c9bdddf

Solution Preview

Here is the pseudocode:

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

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.