Give definition of two classes, Customer and Seller, whose objects are records for a Sale. Customer and seller will be derived from the Person class with member variable for Person’s name. A customer record has the customer’s name (inherited from the class Person) while a Seller object has a Seller’s name inherited from the class Person and seller id. A sale object will contain Customer and Seller objects, amount paid for the sale and cumulative sales amount from a time the object was created. Be sure your classes have a reasonable complement of constructors, accessor, and mutator member functions, and includes an overloaded equality operator. Write a test program that creates at least two Customers, at least two Sellers and at least two Sales, then prints sale summary and gross income from Sale records.

Stuugie commented: Wow you are unbelievable, do your own homework and earn your grades. +0
happygeek commented: Probably best you take another class, you obviously are not cut out to do this one - hint: do your own homework buddy! -3

Recommended Answers

All 4 Replies

Daniweb rules says

Do provide evidence of having done some work yourself if posting questions from school or work assignments

So post what you wrote so far and maybe will help you

the if some body been given a question and has no idea he cant be help

Hongero: you are not asking help, you are askingus to do your homework for you.
we are volunteers willing to help you increase your skills and knowledge, not help you cheat through school.

commented: Well put +6

"if some body been given a question and has no idea he cant be help"

We help people who show effort. You have been given a detailed step-by-step set of instructions for what to do, but you haven't even tried to follow them. Just start writing code and stop wasting our time.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.