Question: I need it in JAVA NOT C++ Thank u rid-1 1 8937763-1/courses/2018Spring-T-CSE110-1 1392-28 103/CSE%201 10%20Assignment %205.pdf CSE 110: Principles of Programming Languages Assignment 5 Overview

 I need it in JAVA NOT C++ Thank u rid-1 1

I need it in JAVA NOT C++ Thank u

8937763-1/courses/2018Spring-T-CSE110-1 1392-28 103/CSE%201 10%20Assignment %205.pdf CSE 110: Principles of Programming Languages Assignment

5 Overview In this asigment you will wite a progrnm that wl

modela pet sore The program ill ave a Pet class to model

individual pets and the Assignment5 class will contain the main and act

as the pet store. Users will be able to view the pets,

make them age a year at a time, add a new pet,

rid-1 1 8937763-1/courses/2018Spring-T-CSE110-1 1392-28 103/CSE%201 10%20Assignment %205.pdf CSE 110: Principles of Programming Languages Assignment 5 Overview In this asigment you will wite a progrnm that wl modela pet sore The program ill ave a Pet class to model individual pets and the Assignment5 class will contain the main and act as the pet store. Users will be able to view the pets, make them age a year at a time, add a new pet, and adopt any of the pets. Note: From this point on, your assignments will require multiple fil easily organized, you may want to create a new project within your IDE to keep these files separate from all the others. Requirements Your program must do the following in order to receive full credit on this assignment. 1. Create a new public class called Pet in its own file a. Remember that class and file name must match. 2. Create three private instance variables a. The name of the pet b. The age of the pet. c. Whether the pet is adopted or not. 3. Create a default constructor for the Pet class Remember that a default constructor takes no arguments and assigns meaningles values to the instance variables 4. Create a second constructor for Pet that takes a name and age as arguments a. Assign these values to the instance v Pets always start off un-adopted. 5. Provide a get and set for the name instance variable b. 6. Provide a get for age, but instead of a regular set create a methesd that incrcases age by l Keep in mind that this age increase method will need to be public. 7. Provide a get for the adopted variable and nstcad of a set provide a public method which a. sets this adoption variable to true Note: This is the last thing you will do in Pet. The rest of these steps are done in your main program file a. 8. Create a Scanner object that wall be visible to al methods in Assignments a. This object will need a particular modiliet What a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!