Purchase Solution

C++ Programming

Not what you're looking for?

Ask Custom Question

Create two classes The first holds sales transactions. Its private data members include date, amount of sale, and salesperson's ID number. The second class holds salespeople, and its private data members include each salesperson's ID number and name. Each class includes a constructor with which you can set the field values. Create a friend function that is a friend of both classes and displays the date of sale, amount, and salesperson name for each sale. Write a short main() demonstration program to test your classes and friend function.

Please post it in simple .cpp and .h files and not in project files of a specific program (for example Visual Studio Project files).

Purchase this Solution

Solution Summary

The solution assists with creating two classes with C++ programming.

Purchase this Solution


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

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.

C++ Operators

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

C# variables and classes

This quiz contains questions about C# classes and variables.

Basic Networking Questions

This quiz consists of some basic networking questions.