Purchase Solution

An Example of Writing a C++ Program

Not what you're looking for?

Ask Custom Question

Write a c++ program that accepts the name and sales of a salesperson. Using an IF statement, determine the level and commission using the table below:

sales level commission
Below 15,000 "green" 0
15,000 to 25,000 "blue" 1,500 + 25% of sales that exceeds 15,000
Above 25,000 "red" 2,500 + 35% of sales that exceeds 25,000

Display name, sales, level and the commission of the salesperson.

Purchase this Solution

Solution Summary

This solution provides an example of a C++ program.

Purchase this Solution


Free BrainMass Quizzes
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.

Excel Introductory Quiz

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

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.

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.

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.