Write a program named DemoJobs for Harold’s 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), per-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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 10E: Write a program named DemoJobs for Harolds Home Services. The program should instantiate several Job...
icon
Related questions
Question

Write a program named DemoJobs for Harold’s 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), per-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.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

Expert Answers to Latest Homework Questions

Q: 4) Question: A sample of 40 patients shows that their average cholesterol level is 200 mg/dL with a…
Q: 4) Question: A sample of 40 patients shows that their average cholesterol level is 200 mg/dL with a…
Q: A contract forms when one person makes an offer, and another person accepts it by communicating…
Q: Below is the dynamics of heat transfer: A container in an oven for instance dTc 1 1 ·TC+⋅ dt R+Ct…
Q: Which component of a clutch is typically responsible for engaging the clutch when the pedal is…
Q: Question 12 A high school baseball player has a 0.208 batting average. In one game, he gets 3 at…
Q: Problem 12: Determine the magnitudes of the forces C and T, which, along with the other three forces…
Q: Problem 11: The uniform 7-m steel shaft has a mass of 200 kg and is supported by a ball and socket…
Q: Problem 10: If F1 (100-120j +75k) lb and F2 = (-2001-250j +100k) lb, determine the resultant moment…
Q: Problem 6: Replace the two forces and the negative wrench by a single force R applied at A and the…
Q: Problem 7: Replace the two forces and single couple by an equivalent force-couple system at point A.
Q: Predict the product(s) for the following reaction, using as much acid and water as necessary: CH—NH…
Q: Problem 5: The threading die is screwed onto the end of the fixed pipe, which is bent through an…
Q: Problem 4: The force F has a magnitude of 2 kN and is directed from A to B. Calculate the projection…
Q: Problem 9: Calculate the tension T in the cable that supports the 500kg load with the pulley…
Q: Problem 8: Replace the two forces and one couple acting on the rigid pipe frame by their equivalent…
Q: Truss Homework H.W. 1: The truss supports a ramp (shown with a dashed line) which extends from a…
Q: Problem 2: Replace the three forces which act on the bent bar by a force-couple system at the…
Q: Problem 1: Determine the resultant of the four forces and one couple, which act on the plate shown.…
Q: Problem 7: Replace the two forces and single couple by an equivalent force-couple system at point A.…
Q: H.W. 3: Find the forces in members EF, KL, and GL for the Fink truss shown. You can use a…