Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using C++ Create two classes. The first, named Sale, holds data for a sales transaction. Its private data members include the day of the month,

using C++

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.

Sample Run Sale #103 on 12/25/2016 for $559.95 sold by #103 Woods Sale #106 on 11/15/2016 for $359.95 sold by #106 Hansen 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions

Question

Effective Delivery Effective

Answered: 1 week ago

Question

5. Have you any experience with agile software development?

Answered: 1 week ago