Create a job class using the given properties

Assignment Help DOT NET Programming
Reference no: EM132193441

Question: Create a Job class that has 3 properties: a job number, estimated hours, and price for the job. You need to use an auto-implemented property for the job number, and provide get and set accessors for estimated hours. The price field value is calculated as estimated hours times $45 whenever the hours values is set, and the Price property is read-only. Create a constructor that requires parameters for job number and estimated hours only. Also, include a ToString()method that overrides the Object class's ToString() method and returns a string that contains the class name (using GetType()) and the job's data field values.

The Job class has a child class named RushJob that includes an auto-implemented property, which holds an additional charge for the job. For the RushJob class, you need to create a constructor that accepts job number, estimated hours, and additional charge. Also, override the Object class's ToString() method and return a string that contains the class name and all data field values, as well as the total price (i.e., price + additional charge).

Finally, create an application class named JobDemo that instantiates one Job object and one RushJobobject. Then call ToString() method and display the info of each object on the screen.

Reference no: EM132193441

Questions Cloud

Perform an up-front and on-going cost comparison : You are the IT manager of a start-up company. Your team has recently built a new Web service that requires a hosting environment comprised of multiple servers.
Differentiate escape-force or foster change strategies : Is labor law more important in the public or private sector? Differentiate escape, force or foster change strategies.
Discuss the significance of professional development : Summarize the four messages outlined in the IOM report and explain why these are significant to nursing practice - Explain why it is important that a nurses
Artificial intelligence to become too powerful to control : Do you think it is possible for artificial intelligence to become too powerful to control?
Create a job class using the given properties : Create a Job class that has 3 properties: a job number, estimated hours, and price for the job. You need to use an auto-implemented property for the job number.
Describe desirable cultural patterns of the environment : Describe desirable cultural patterns of the environment that interest you. Discuss whether the culture is homogenized or a hybrid culture.
Trends in the evaluation of company strategy : Why is it important to look at trends in the evaluation of company strategy?
Prepare paper on energy conservation : Prepare paper on Energy Conservation - you are using an online reference, the information must be from a reputable source that has authority on the subject
New position in advertising was created for vicki talley : Intellectual Property A new position in advertising was created for Vicki Talley, the niece of Jabil’s CEO. Did Talley violate intellectual property laws?

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Develop a loan application gui windows

Develop a Loan application GUI Windows. Laid-back Loans is a company that offers flexible loan terms. All their loans are for 5 years (60 months) or less. The following information should be a part of the Loan class.

  Postel s 2001 february safeguarding our water growing more

postel s. 2001 february. safeguarding our water growing more food with less water. scientific american 2842

  Create a website to allow pizza shop employee to enter order

Create a website in asp.net to allow the pizza shop employee to enter customer orders. The size of the pizza cam be entered using a drop down list, and the quantity be entered using a text box.

  Make interface for major and suitable classes for it

Using C#. make the interface for major and make suitable classes for each major. In student course instantiate IMajor major variable. In toString method call major.

  Write a program that computes the amount of money

Write a program that computes the amount of money the computer club will receive from proceeds of their granola bar sales project. Allow the user to enter the number of cases sold and the sale price per bar. Each case contains 12 bars; each case is p..

  How will you retrieve environment variables in c sharp

Question: How will you retrieve environment variables in C#.net?

  Write a complete c# program in console mode to load the data

Write a complete C# program in console mode to load the data file as a sequential file using C# System.IO library into an ArrayList data structure (using the System.Collection library) Store each line in the file as a separate record.

  Demonstrate academic and professional literacy

Demonstrate academic and professional literacy by collating theoretical and practical course material into a workable application through understanding concepts and their practical application using .NET

  Create an application that displays total no of customers

Joe also performs other nonroutine services and charges for parts and labor ($20 per hour). Create an application that displays the total for a customer's visit to Joe's.

  Develop a stacked bar chart that shows the total cost

Develop a stacked bar chart that shows the total cost, including the design, implementation, and maintenance costs over an expected system life of seven years.

  Write down a 200- to 300-word short-answer response to the

write a 200- to 300-word short-answer response to the following based on the skillsoftreg reading c and the clr how

  Console application that implements an int array

Develop a C# console application that implements an int array. Random class and a second for loop to iterate through the filled array and print the values entered into the array by the random number generator

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd