Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

What I need: Write a program named DemoJobs for Harolds Home Services. The program should instantiate several Job objects and demonstrate their methods. The Job

What I need:

Write a program named DemoJobs for 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.

What I have:

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 with AI-Powered 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

Students also viewed these Databases questions