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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started