Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a C# GUI application for Harold's Home Services that estimates the cost of various jobs. The base cost of a job is hours times

Create a C# GUI application for Harold's Home Services that estimates the cost of various jobs. The base cost of a job is hours times the hourly rate. Also for each job there is an additional trip fee of $35. Create a Job class according to the UML diagram below.

1. The constructor should calculate the total fee as above. 2. The setter for HoursToComplete should calculate the total fee as above. 3. The setter for HourlyFee should calculate the total fee as above. Each time the user presses the update button:

1. If a Job object has not been created then create one. 2. If a Job object has been created then update it's properties. 3. Displays the current values of the Job's properties below as shown

image text in transcribed

Job +TRIP FEE: double 35 -_description String hours ToComplete float --hourlyFee : float totalFee loat + constructor Job( description String hoursToComplete: float, hourlyFee float Description String get set +HoursToComplete double get set + HourlyFee double get set +TotalFee: double get Harold's Home Services New Value Current Value Description Hours to Complete 3.5 Hourly Rate Total Fee Wash Windows Wash Windows 3.5 hours $25.00 $122.50 25.0 Update

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: 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

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions