Computer Science
IT 145 SNHU Dog Application Dog and Corgi Classes and Creating Driver Class Project

IT 145

Southern New Hampshire University

IT

Question Description

I’m working on a Computer Science question and need guidance to help me study.

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.

  1. 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.

  1. Complete the Dog class:
    1. Using the UML Class diagram to the right, declare the instance variables. A text version is available: UML Class Diagram Text Version.
    2. 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.”
    3. Create the setTopTrick() mutator method.
  1. Complete the Corgi class:
    1. Using the UML Class diagram, declare the instance variables.
    2. Create the two mutator methods for the instance variables.
  1. Make sure to select the Project folder, then add a new class. Name it the Driver class, then create the code:
    1. There should be no instance variables.
    2. The main() method will be the only method in the class.
    3. Write three lines of code in the main() method:
      1. 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.
      2. Use the objectName.setTopTrick() method to set a top trick for the dog you created.
      3. Embed the objectName.toString() method in a statement that outputs to the console window.
  1. 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.

Unformatted Attachment Preview

3/23/2020   Listen Module Four Assignment Guidelines and Rubric - IT-145-T4543 Found in App Development 20EW4  Overview Nearly every Java applica on involves mul ple classes. For this assignment, you will work on a Dog applica on 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 applica on 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 defini on, the “extends” keyword is used to establish that it inherits from the Dog class. Prompt For this assignment, you will complete the Dog applica on by comple ng the Dog and Corgi classes and crea ng the Driver class. Use the Uploading Files to Eclipse and the Downloading Files From Eclipse tutorials to help you with this project. 1. 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 crea ng 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. 2. Complete the Dog class: a. Using the UML Class diagram to the right, declare the instance variables. A text version is available: UML Class Diagram Text Version. b. 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 “ca le herding dog.” A Shiba Inu would be a “hun ng dog.” https://learn.snhu.edu/d2l/le/content/375590/viewContent/7898841/View 1/4 3/23/2020 Module Four Assignment Guidelines and Rubric - IT-145-T4543 Found in App Development 20EW4 c. Create the setTopTrick() mutator method. 3. Complete the Corgi class: a. Using the UML Class diagram, declare the instance variables. b. Create the two mutator methods for the instance variables. 4. Make sure to select the Project folder, then add a new class. Name it the Driver class, then create the code: a. There should be no instance variables. b. The main() method will be the only method in the class. c. Write three lines of code in the main() method: i. Instan ate 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. ii. Use the objectName.setTopTrick() method to set a top trick for the dog you created. iii. Embed the objectName.toString() method in a statement that outputs to the console window. 5. 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 Applica on. You should see output in the Console window that resembles the sample below. Your results will vary based on your input values. Sample Output https://learn.snhu.edu/d2l/le/content/375590/viewContent/7898841/View 2/4 3/23/2020 Module Four Assignment Guidelines and Rubric - IT-145-T4543 Found in App Development 20EW4 DOG DATA Java is a Pembroke Welsh Corgi, a ca le herding dog. The top trick is: ringing the bell to go outside. The Corgi is 5 years old and weighs 38 pounds. Guidelines for Submission A ach your completed Dog.java, Corgi.java, and Driver.java files to the assignment submission page. Module Four Assignment Rubric Criteria Exemplary (100%) Proficient (85%) Needs Improvement (55%) Modifies a class so that it includes all Dog Class instance variables, a constructor method incorpora ng the prescribed variables, and a mutator method Meets most “Proficient” criteria, but with minor errors; areas for improvement may include appropriate data structures or naming conven ons https://learn.snhu.edu/d2l/le/content/375590/viewContent/7898841/View Not Evident (0%) Value Meets some “Proficient” criteria, but with major errors or exclusions; areas for improvement Does not a empt criterion 35 may include func onality, syntax, or logic 3/4 3/23/2020 Corgi Class Module Four Assignment Guidelines and Rubric - IT-145-T4543 Found in App Development 20EW4 Modifies a class so that it includes all instance variables Meets most “Proficient” criteria, but with Meets some “Proficient” criteria, but with and mutator methods for all instance variables minor errors; areas for improvement may include appropriate data major errors or exclusions; areas for improvement may include structures or naming conven ons func onality, syntax, or logic Creates a class that includes a main() method, Driver Class instan ates an object, calls a method from another class, and prints output Meets most “Proficient” Meets some criteria, but with minor errors; areas for improvement may include “Proficient” criteria, but with major errors or exclusions; areas syntax error, improper for improvement may include constructor, or outpu ng the wrong data func onality, syntax, or logic Does not a empt criterion 25 Does not a empt 40 criterion Total: https://learn.snhu.edu/d2l/le/content/375590/viewContent/7898841/View 100% 4/4 ...
Purchase answer to see full attachment
Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

Final Answer

At...

Tellos (1633)
University of Virginia

Anonymous
The tutor was pretty knowledgeable, efficient and polite. Great service!

Anonymous
Heard about Studypool for a while and finally tried it. Glad I did caus this was really helpful.

Anonymous
Just what I needed… fantastic!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4