Purchase Solution

Please write a pseudo-code for the following problems

Not what you're looking for?

Ask Custom Question

Part 1:

Write pseudo-code for the following problem:

You have a file containing sporting goods that are sold online. Each item record contains the item id, item name, item description, item category, item price, and the units in stock. If the category of the item is either "tennis" or "golf", then the price will be discounted by 15%. If the category of the item is "soccer", then the price will be discounted by 10%. For all of the other categories, the original price remains as is. If the number of units in stock is below 50, the item will be marked on the web site as "out of stock". Your part of the program is responsible for listing all of the items.

Part 2:

Think of scenarios when you would use a) a while-loop, b) a do-until loop, c) a for-loop. Write one pseudo-code example for each.

Purchase this Solution

Solution Preview

Part 1:

Write pseudo-code for the following problem:

You have a file containing sporting goods that are sold online. Each item record contains the item id, item name, item description, item category, item price, and the units in stock. If the category of the item is either “tennis” or “golf”, then the price will be discounted by 15%. If the category of the item is “soccer”, then ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

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.

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.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

C++ Operators

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