Review the grazioso salvare specification

Assignment Help Other Subject
Reference no: EM133752536

Question: Nearly every Java application involves multiple classes. As you have learned, designing a program around classes and objects is a key feature of object-oriented programming (OOP). This approach provides many benefits, such as more readable and maintainable code. In describing the relationship between classes and objects, the class is the blueprint on which the object is created. When creating multiple classes, you must make certain that the classes can work together within a program. You must make certain that any relationships, such as inheritance, are properly implemented in the code. You will discover other relationship types for classes. The relationship types are like the individual engine components that perform specific tasks, sometimes handing off information to one another. This action also involves having a main() method that runs the program, usually in a special class called the Driver class. The Driver class acts as the entry point for the program. Each Java application can only have one main() method.
In this assignment, you will gain experience putting together a multiple-class program by creating a class that inherits from another existing class. You will also modify or implement methods in the Driver class. Inheritance is a powerful tool in programming. Inheritance allows one class to use code found in a parent class without duplicating the parent's code. This milestone will also allow you to begin coding a part of the solution for Project Two. You can get feedback on your work before you complete the full project in Module Seven.
Directions
1. Review the Grazioso Salvare Specification Document in the Supporting Materials section to understand your client's requirements. As you read, pay close attention to the attributes and methods that you must implement into the program.
2. Open the Virtual Lab by clicking the link in the Virtual Lab Access module. Then open the Eclipse IDE. Follow the Uploading Files to Eclipse tutorial to help upload the Grazioso.zip folder to Eclipse. Both resources are linked in the Supporting Materials section below. The Grazioso.zip folder contains three starter code files: Driver.java, RescueAnimal.java, and Dog.java. Once you have uploaded the files, compile the code. Although the program is not complete, it should compile without error.
3. Read through the code for each class that you have been given to understand why the functionality of the overall application has been broken down into multiple classes. Reading through the code will also help you understand what code has been created and what code must be modified or created to meet the requirements.
4. You have been asked to demonstrate industry standard best practices in all the code that you create to ensure clarity, consistency, and efficiency among all software developers working on the program. Include the following items in your code for each class:

A. In-line comments that denote your changes and briefly describe the functionality of each method or element of the class

i. Commenting code is crucial for several reasons. Commenting code provides human-readable explanations of the code's functionality. The comments make it easier for other developers or even the original coder to understand and maintain the code after some time. Clear and concise comments act as documentation. Comments offer insights into the logic, purpose, and usage of different sections of the code. Comments become especially valuable in collaborative projects or when handing over code to other developers. Comments can also help identify potential issues, edge cases, or important considerations that help communication between developers. Well-documented code accelerates the development process and contributes to overall maintainability, which reduces the likelihood of errors and makes code more adaptable to changes and improvements.
B. Appropriate variable and method naming conventions

i. This can be a difficult task. Avoid giving your variables and methods overly generic names like "number" or "method1." Instead, use succinct, meaningful names.
5. In a new Java file, create the Monkey class (click File then New and then Class) and populate the new class with code using the specification document as a guide. The Monkey class must perform the following functions:
A. Inherit from the RescueAnimal class.
B. Implement all attributes with proper data types to meet the specifications.
C. Include a constructor. You may use a default constructor. To score "exemplary" on this criterion, you must include the more detailed constructor that takes all values into the constructor as parameters and assigns them to the class attributes. Refer to the constructor in the Dog class for an example.
D. Include accessors and mutators for all implemented attributes.
6. In the Driver.java class, modify the main method. In main(), you must create a menu loop that does the following criteria:
A. Displays the menu by calling the displayMenu method. This method is in the Driver.java class.
B. Prompts the user for input using a scanner object.
C. Takes the appropriate action based on the value that the user entered.
Important: You do not need to complete all the methods included in the menu for this milestone. Simple placeholder print statements for these methods have been included in the starter code so that you can test your menu functionality.
7. Next, you must create a monkey ArrayList in the Driver.java class. Refer to the dog ArrayList, which is included right before main(), as an example. Creating this ArrayList is necessary for the intakeNewMonkey() method, which you will implement in the next step. Though it is not required, it may be helpful to pre-populate your ArrayList with a few test monkey objects in the initializeMonkeyList() method.
8. Finally, implement the intakeNewMonkey() method in the Driver.java class. Your completed method should perform the following actions:

A. Prompt the user for input.
B. Set data for all attributes based on user input.
C. Add the newly instantiated monkey to an ArrayList.
Tips: Refer to the accessors and mutators in your Monkey and RescueAnimal classes as you create this method. You should also use the nextLine method of the scanner to receive the user's input. Refer to Section 1.15 in zyBooks for a refresher on how to use this method.

Reference no: EM133752536

Questions Cloud

Experiencing some heart problems : Waffle House during the day and goes to business school at night. She comes to the office because she has been experiencing some heart problems.
What makes the product or service unique : Leveraging the blue ocean strategy, what makes the product or service unique? How does it provide a strategic advantage in the marketplace
Difference between a chi-square goodness of fit : Explain the difference between a chi-square goodness of fit and a chi-square of independence. Then provide an example of when you would use each one
How do you develop goals and objectives for your program : How do you develop Goals and Objectives for your program? How do these goals and objectives align with your professional philosophy?
Review the grazioso salvare specification : Review the Grazioso Salvare Specification Document in the Supporting Materials section to understand your client's requirements
Discuss the potential impact of these attacks : Discuss the potential impact of these attacks on the Metaverse, including data breaches, unauthorized access, and system disruptions. Highlight any notable
Patient before determining appropriate course of treatment : Patient before determining an appropriate course of treatment. For pharmaceutical treatments that are not FDA approved for particular use,
What ways to the sources yield or not yield : What ways to the sources yield or not yield an answer to your Reseach Question? In this section, you will interpret and explain the results
Prevalence of disasters and emergencies throughout country : many healthcare scholars, politicians, and communities are questioning the prevalence of disasters and emergencies throughout the country.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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