Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

2 3 assignment write a class it 145

30/12/2020 Client: saad24vbs Deadline: 7 Days

Files are in the attachment if unable to view.


Overview

Nearly every Java application involves multiple classes. For this assignment, you will work on a Dog application composed of three classes. The Dog and Corgi classes have been started for you; you will complete these classes and create the Driver class from scratch. The application will be used to collect and print details about specific dogs. As you can see from the UML class diagram on this page, the Corgi class (child/subclass) inherits from the Dog class (parent/superclass). In the Corgi class file definition, the “extends” keyword is used to establish that it inherits from the Dog class.


Prompt

For this assignment, you will complete the Dog application by completing the Dog and Corgi classes and creating the Driver class. Use the Uploading Files to Eclipse and the Downloading Files From Eclipse tutorials to help you with this project.


Open the Virtual Lab by clicking on the link in the Virtual Lab Access module. Then open your IDE and upload the DogApp.zip folder containing the Dog and Corgi class files. You will be creating a Driver class in the same project folder. When you upload the files, you will see errors due to the classes being incomplete. As you complete each class, any errors should resolve.



Complete the Dog class:

Using the UML Class diagram to the right, declare the class variables. A text version is available: UML Class Diagram Text Version.

Create a constructor that incorporates the type, breed, and name variables (do not include topTrick).

Note: The type refers to what the breed typically does; for example, a corgi would be a “cattle herding dog.” A Shiba Inu would be a “hunting dog.”

Create the setTopTrick() mutator method.

Complete the Corgi class:

Using the UML Class diagram, declare the class variables.

Create the two mutator methods for the class variables.

Make sure to select the Project folder, then add a new class. Name it the Driver class, then create the code:

There should be no class variables.

The main() method will be the only method in the class.

Write three lines of code in the main() method:

Instantiate a corgi object using the below syntax:

className objectName = new className(input parameters)TIP: Refer to the constructors in the Dog and Corgi classes to ensure the input parameters are correct.

Use the objectName.setTopTrick() method to set a top trick for the dog you created.

Embed the objectName.toString() method in a statement that outputs to the console window.

Once you have completed the code for the Dog and Corgi classes and created a Driver class, right-click the Project folder and select Run As, then Java Application. You should see output in the Console window that resembles the sample below. Your results will vary based on your input values.

Sample Output

DOG DATA

Java is a Pembroke Welsh Corgi, a cattle herding dog.

The top trick is: ringing the bell to go outside.

The Corgi is 5 years old and weighs 38 pounds. 

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Helping Hand
Best Coursework Help
Top Essay Tutor
Homework Guru
University Coursework Help
Smart Accountants
Writer Writer Name Offer Chat
Helping Hand

ONLINE

Helping Hand

I am an Academic writer with 10 years of experience. As an Academic writer, my aim is to generate unique content without Plagiarism as per the client’s requirements.

$230 Chat With Writer
Best Coursework Help

ONLINE

Best Coursework Help

I am an Academic writer with 10 years of experience. As an Academic writer, my aim is to generate unique content without Plagiarism as per the client’s requirements.

$230 Chat With Writer
Top Essay Tutor

ONLINE

Top Essay Tutor

I have more than 12 years of experience in managing online classes, exams, and quizzes on different websites like; Connect, McGraw-Hill, and Blackboard. I always provide a guarantee to my clients for their grades.

$235 Chat With Writer
Homework Guru

ONLINE

Homework Guru

Hi dear, I am ready to do your homework in a reasonable price and in a timely manner.

$232 Chat With Writer
University Coursework Help

ONLINE

University Coursework Help

Hi dear, I am ready to do your homework in a reasonable price.

$232 Chat With Writer
Smart Accountants

ONLINE

Smart Accountants

I feel, I am the best option for you to fulfill this project with 100% perfection. I am working in this industry since 2014 and I have served more than 1200 clients with a full amount of satisfaction.

$225 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Reasons why cell phones should be allowed in school - Psychology Essay - Dulce et decorum est annotated - Tuesdays at the castle discussion questions - Only Introduction Part for An Economics Paper.(1.5 pages long) APA citation format. The attachments are the lecture slides - DB 6 - The smartest guys in the room full documentary - Uncle tobys oats aldi - Project Work Breakdown Schedule - Hapag lloyd equipment specifications - Vulnerable Populations - Borat kidnaps anderson real - Individual determinants of health la trobe - Anti discriminatory practice social work examples - Which mission statement best represents the digby - Define home management - Discussion psc 101 - Discussion Forum Week 5: economies of scale - A philanthropic organization sent free mailing labels - Prepaid satchel post office - Analyzing & Visualizing Data - Cycad blue butterfly larvae - Electric field vector drawing mastering physics - Fundamentals of database systems 6th edition solutions pdf download - What does empty balls mean - 5910_ASS 2 # DRAFT 1 #Assessment 2 Instructions: Capstone Proposal # MBA-FPX5910 MBA Capstone Experience - A genre's iconography consists of - Concept synthesis paper on personal nursing philosophy - The engineering marvel of chicago's water intake cribs - English composition - SQL DATABASE - COM 510 Discussion - The books of 1 2 chronicles offers a priestly perspective - Adelaide entertainment centre park n ride - Cisco sure lok electronics mount - History of golden pagoda - The world of chemistry - Gios pizza mount barker - Google Admob - The bet anton chekhov setting - Artifacts that represent ethical values - Tweetdeck comn - Shankill wellbeing and treatment centre belfast bt13 1pd - Www pearsonhighered com go student data files - Discussion / Answer 2 questions and comment on 2 students / 200~300 words for answers / need in 12 hours - Ques check 2 - Research paper - Componential analysis in semantics - Iqms wiki is tcs organizational standard process repository - Dikembe mutombo saves the world - Heating curve of water lab answer key - Ryan wood under armour net worth - Historical contributions to health care worksheet - Being the leader - Critical values for correlation coefficient - How many bytes are used to store a 64-bit number - Discussion Post T6-Q2 Business Strategy - Vision board worksheet for students - List of paramagnetic materials - Engineering - Lyco post driver for sale - Define the following terms answer - Mole and mass relationships lab answers - Andrews boyle transcultural concepts in nursing care - Banksia park cherry blossom - W6 WORK - Phet vectors simulations lab answer key - Zf marine gearbox drawings - TASK 1: WORKFORCE PLANNING: RECRUITMENT AND SELECTION - 2014 hsc exam ancient history - When was the poem war photographer written - Program evaluation paper cja 355 - Diver certification board of canada - Variation in human skin color is a result of - Sap migration cockpit 1909 - Nur495reply - Week 3 Project pp1 - 3 chloro 3 7 dimethyloctane - The lu family jasper jones - Anemia in pregnancy case study - Lissajous figures frequency ratio - Gray stone and lawson open an accounting practice - Hobby sports exports - Provide a 50-75 word discussion reply to the following post below. - Rank the vector combinations on the basis of their magnitude - Entity integrity and referential integrity constraints - Da vinci code cryptex answer - Cybernetics use in the development of instructional designs - The federal reserve system cannot directly control - Bsbmgt502 - Week 1 - Woodgrain technology makes home office furniture from fine hardwoods - Multicultural guidelines - 150w pure sine inverter - Neurological assessment pupil reaction - Answer to essay-200 words minimum (RA) - Python Coding - Marketing strategy - Parramatta street parking permit - Cultural Diversity