Create an application named JobDemo that declares and uses Job objects. The Job class holds job information for a home repair service. The class has five properties that include a job number, customer name, job description, estimated hours, and price for the job. Create a constructor that requires parameters for all the data except price. Include auto-implemented properties for the job number, customer name, and job description, but not for hours or price; the price field value is calculated as estimated hours times $45.00 whenever the hours value is set. Also create the following for the class: •An Equals() method that determines two Jobs are equal if they have the same job number •A GetHashCode() method that returns the job number •A ToString() method thatreturns a string containing all job information The JobDemo application declares a few Job objects, sets their values, and demonstrates that all the methods work as expected. b.Using the Job class you created in Exercise 3a, write a new application namedJobDemo2 that creates an array of five Job objects. Prompt the user for values for each Job. Do not allow duplicate job numbers; force the user to reenter the job when a duplicate job number is entered. When five valid objects have been entered, display them all, plus a total of all prices. c.Create a RushJob class that derives from Job. A RushJob has a $150.00 premium that is added to the normal price of the job. Override any methods in the parent class as necessary. Write a new application named JobDemo3 that creates an array of five RushJobs. Prompt the user for values for each, and do not allow duplicate job numbers. When five valid RushJob objects have been entered, display them all, plus a total of all prices. d.Make any necessary modifications to the RushJob class so that it can be sorted by job number. Modify the JobDemo3 application so the displayed orders have been sorted. Save the application as JobDemo4.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Create an application named JobDemo that declares and uses Job objects. The Job class holds job information for a home repair service. The class has five properties that include a job number, customer name, job description, estimated hours, and price for the job. Create a constructor that requires parameters for all the data except price. Include auto-implemented properties for the job number, customer name, and job description, but not for hours or price; the price field value is calculated as estimated hours times $45.00 whenever the hours value is set. Also create the following for the class: •An Equals() method that determines two Jobs are equal if they have the same job number •A GetHashCode() method that returns the job number •A ToString() method thatreturns a string containing all job information The JobDemo application declares a few Job objects, sets their values, and demonstrates that all the methods work as expected. b.Using the Job class you created in Exercise 3a, write a new application namedJobDemo2 that creates an array of five Job objects. Prompt the user for values for each Job. Do not allow duplicate job numbers; force the user to reenter the job when a duplicate job number is entered. When five valid objects have been entered, display them all, plus a total of all prices. c.Create a RushJob class that derives from Job. A RushJob has a $150.00 premium that is added to the normal price of the job. Override any methods in the parent class as necessary. Write a new application named JobDemo3 that creates an array of five RushJobs. Prompt the user for values for each, and do not allow duplicate job numbers. When five valid RushJob objects have been entered, display them all, plus a total of all prices. d.Make any necessary modifications to the RushJob class so that it can be sorted by job number. Modify the JobDemo3 application so the displayed orders have been sorted. Save the application as JobDemo4.

Create an applicaton ramed JobDemo that dec lares and uses Job objects. The Job class
holds job information for a home repair service. The class has five properties that inc lude a
job number, customer rame, job description, estimated hours, and price for the job. Create a
constructor that requires parameters for all the data except price. Irclude auto-imple me nted
properties for the job number, custo mer name, and job description, but ot for hours or
price; the price field value is calculated as estimated ho us times $45.00 whe never the hours
value is set. Also create the following for the clas:
An Equals() method that de termines two Jobs are equl if the y have the same job number
A GetHashCode() me thod that returns the job number
A ToString() method that re turns a string containing all job infomation
The JobDemo application dec lares a few Job objects, sets the ir values, and demonstrates
that all the methods work as expe cted.
b. Using the Job class youcreated in Exercise 3a, write a new application named Job Demo2
that creates an array'of five Job objects. Prompt the user for values for each Job. Do not
allow duplic ate job numbe rs; force the user to reenter the job whena duplicate job number
is entered. When five valil objects have been ente red, dispaythem all, plus a to talofall
prices.
Create a RushJob class that de rives from Job. A RushJob has a $150.00 pre mium that is
added to the normal price of the job. Ovenide any me thods in the pare nt class as
necessary. Write a new application named JohDemo3 tlat creates anamay of five
RushJobs. Prompt the user for values for each, and do otalbwduplicate job numbers.
When five valid RushJob objects have beenentered, displaythe m all, plus a total of all
prices.
C.
d. Make any necessary modifications to the RushJob class so that it can be sorted by job
number. Modify the JobDemo3 application so the displayed orde is have beensorted. Save
the applicationas JobDe mo4.
Transcribed Image Text:Create an applicaton ramed JobDemo that dec lares and uses Job objects. The Job class holds job information for a home repair service. The class has five properties that inc lude a job number, customer rame, job description, estimated hours, and price for the job. Create a constructor that requires parameters for all the data except price. Irclude auto-imple me nted properties for the job number, custo mer name, and job description, but ot for hours or price; the price field value is calculated as estimated ho us times $45.00 whe never the hours value is set. Also create the following for the clas: An Equals() method that de termines two Jobs are equl if the y have the same job number A GetHashCode() me thod that returns the job number A ToString() method that re turns a string containing all job infomation The JobDemo application dec lares a few Job objects, sets the ir values, and demonstrates that all the methods work as expe cted. b. Using the Job class youcreated in Exercise 3a, write a new application named Job Demo2 that creates an array'of five Job objects. Prompt the user for values for each Job. Do not allow duplic ate job numbe rs; force the user to reenter the job whena duplicate job number is entered. When five valil objects have been ente red, dispaythem all, plus a to talofall prices. Create a RushJob class that de rives from Job. A RushJob has a $150.00 pre mium that is added to the normal price of the job. Ovenide any me thods in the pare nt class as necessary. Write a new application named JohDemo3 tlat creates anamay of five RushJobs. Prompt the user for values for each, and do otalbwduplicate job numbers. When five valid RushJob objects have beenentered, displaythe m all, plus a total of all prices. C. d. Make any necessary modifications to the RushJob class so that it can be sorted by job number. Modify the JobDemo3 application so the displayed orde is have beensorted. Save the applicationas JobDe mo4.
Create an applicaton ramed JobDemo that dec lares and uses Job objects. The Job class
holds job information for a home repair service. The class has five properties that inc lude a
job number, customer rame, job description, estimated hours, and price for the job. Create a
constructor that requires parameters for all the data except price. Irclude auto-imple me nted
properties for the job number, custo mer name, and job description, but ot for hours or
price; the price field value is calculated as estimated ho us times $45.00 whe never the hours
value is set. Also create the following for the clas:
An Equals() method that de termines two Jobs are equl if the y have the same job number
A GetHashCode() me thod that returns the job number
A ToString() method that re turns a string containing all job infomation
The JobDemo application dec lares a few Job objects, sets the ir values, and demonstrates
that all the methods work as expe cted.
b. Using the Job class youcreated in Exercise 3a, write a new application named Job Demo2
that creates an array'of five Job objects. Prompt the user for values for each Job. Do not
allow duplic ate job numbe rs; force the user to reenter the job whena duplicate job number
is entered. When five valil objects have been ente red, dispaythem all, plus a to talofall
prices.
Create a RushJob class that de rives from Job. A RushJob has a $150.00 pre mium that is
added to the normal price of the job. Ovenide any me thods in the pare nt class as
necessary. Write a new application named JohDemo3 tlat creates anamay of five
RushJobs. Prompt the user for values for each, and do otalbwduplicate job numbers.
When five valid RushJob objects have beenentered, displaythe m all, plus a total of all
prices.
C.
d. Make any necessary modifications to the RushJob class so that it can be sorted by job
number. Modify the JobDemo3 application so the displayed orde is have beensorted. Save
the applicationas JobDe mo4.
Transcribed Image Text:Create an applicaton ramed JobDemo that dec lares and uses Job objects. The Job class holds job information for a home repair service. The class has five properties that inc lude a job number, customer rame, job description, estimated hours, and price for the job. Create a constructor that requires parameters for all the data except price. Irclude auto-imple me nted properties for the job number, custo mer name, and job description, but ot for hours or price; the price field value is calculated as estimated ho us times $45.00 whe never the hours value is set. Also create the following for the clas: An Equals() method that de termines two Jobs are equl if the y have the same job number A GetHashCode() me thod that returns the job number A ToString() method that re turns a string containing all job infomation The JobDemo application dec lares a few Job objects, sets the ir values, and demonstrates that all the methods work as expe cted. b. Using the Job class youcreated in Exercise 3a, write a new application named Job Demo2 that creates an array'of five Job objects. Prompt the user for values for each Job. Do not allow duplic ate job numbe rs; force the user to reenter the job whena duplicate job number is entered. When five valil objects have been ente red, dispaythem all, plus a to talofall prices. Create a RushJob class that de rives from Job. A RushJob has a $150.00 pre mium that is added to the normal price of the job. Ovenide any me thods in the pare nt class as necessary. Write a new application named JohDemo3 tlat creates anamay of five RushJobs. Prompt the user for values for each, and do otalbwduplicate job numbers. When five valid RushJob objects have beenentered, displaythe m all, plus a total of all prices. C. d. Make any necessary modifications to the RushJob class so that it can be sorted by job number. Modify the JobDemo3 application so the displayed orde is have beensorted. Save the applicationas JobDe mo4.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY