Question: C# Write a program named DemoJobs for Harolds Home Services. The program should instantiate several Job objects and demonstrate their methods. The Job class contains

C# Write a program named DemoJobsfor Harolds Home Services. The program should instantiate several Job objects and demonstrate their methods. The Job class contains four data fields

Description (for example, wash windows), Time in hours to complete (for example, 3.5), Hourlyper-hour rate charged (for example, $25.00), and total fee (hourly rate times hours).

Include properties to get and set each field except the total fee -- that field will be read-only, and its value is calculated each time either the hourly fee or the number of hours is set. Overload the + operator so that two Jobs can be added. The sum of two Jobs is a new Job containing the descriptions of both original Jobs (joined by and), the sum of the time in hours for the original Jobs, and the average of the hourly rate for the original Jobs.

/* Must be in this format */

using static System.Console; class DemoJobs { static void Main() { // Write your main here. } }

class Job { // Write your class here. }

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 Databases Questions!