Question: Design and create a Job class with three data fields - Job number, time in hours to complete the Job, and per - hour rate

Design and create a Job class with three data fields - Job number, time in hours to complete the Job, and per-hour rate charged for the Job. Include the following: A non-default constructor to properly initialize each Job. Overloaded extraction and insertion operators prompting and displaying the values of a Job, respectively Overloaded + and - operators returning integers that indicate the total time for two Jobs, and the difference in time between two lobs, respectively.Write a main function demonstrating that the overloaded opcrators work correctly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!