64 624
Assignments Done
99,1%
Successfully Done
In September 2018

Answer to Question #50415 in C++ for zexy

Question #50415
Create two classes. The first, named Sale, holds data for a sales transaction. Its private
data members include the day of the month, amount of the sale, and the salesperson’s
ID number. The second class, named Salesperson, holds data for a salesperson, and
its private data members include each salesperson’s ID number and last name. Each
class includes a constructor to which you can pass the field values. Create a friend
function named display()that is a friend of both classes and displays the date of
sale, the amount, and the salesperson ID and name. Write a short main()demonstration
program to test your classes and friend function. Save the file as Sales.cpp.
Expert's answer

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Assignment Expert
13.11.15, 12:37

Questions in this section are answered for free. We work on all questions
and publish answers after verification. There is no guarantee of answering
certain question but we are doing our best. Although if you have serious
assignment that requires large amount of work and hence cannot be done for
free you can submit it as assignment and our experts will surely assist you.

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions