Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_step3

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

More Books

Students also viewed these Databases questions

Question

What is the Big Bang Theory?

Answered: 1 week ago

Question

4. What will the team agreement contain?

Answered: 1 week ago