Please help with this error. I have 2 seperate files pet.java and dog.java. I don't know what code I'm missing or how to resolve the errors, I've been at this for 3 days trying to trouble shoot. I wrote the code and everything passed except I keep getting below errors:   Class Definition: Please click next for more feedback. If you review the UML diagram you will find that the classes are to be in separate class files. Class found, not "Dog" (case-sensitive) // pet.java public class Pet { private String petType; private String petName; private int dogSpaces; private int catSpaces; private int petAge; private int daysStay; private double amountDue;   // constructor public Pet (String petType, String petName, int dogSpaces, int catSpaces, int petAge, int dogsStay, double amountDue) { }   /**  * @return the petType  */ public String getPetType() { return petType; }   /**  * @return the petName  */ public String getPetName() { return petName; }   /**  * @return the petAge  */ public int getPetAge() { return petAge; }   /**  * @return the dogSpaces  */ public int getDogSpaces() { return dogSpaces; }     /**  * @return the catSpaces  */ public int getCatSpaces() { return catSpaces; }   /**  * @return the daysStay  */ public int getDaysStay() { return daysStay; }   /**  * @return the amountDue  */ public double getAmountDue() { return amountDue; }   /**  * @param petType the petType to set  */ public void setPetType(String petType) { this.petType = petType; }   /**  * @param petName the petName to set  */ public void setPetName(String petName) { this.petName = petName; }   /**  * @param petAge the petAge to set  */ public void setPetAge(int petAge) { this.petAge = petAge; }   /**  * @param dogSpaces the dogSpaces to set  */   public void setdogSpaces(int dogSpaces) { this.dogSpaces = dogSpaces; }   /**  * @param catSpaces the catSpaces to set  */   public void sectcatSpaces(int catSpaces) { this.catSpaces = catSpaces; }   /**  * @param daysStay the daysStay to set  */   public void setdaysStay(int daysStay) { this.daysStay = daysStay; }   /**  * @param amountDue the amountDue to set  */   public void setAmountDue(double amountDue) { this.amountDue = amountDue; } }   /**  * @author   * dog.java  */ public class Dog extends Pet{ public Dog(String petType, String petName, int dogSpaces, int catSpaces, int petAge, int dogsStay,double amountDue) { super(petType, petName, dogSpaces, catSpaces, petAge, dogsStay, amountDue); this.getPetAge(); // TODO Auto-generated constructor stub }   public static void main(String[] args) { }   private int dogSpaceNumber; private double dogWeight; private boolean grooming; /** *  */     /** * @param args   public static void main(String[] args) {   } */   /** * @return the dogSpaceNumber */ public int getDogSpaceNumber() { return dogSpaceNumber; }   /** * @param dogSpaceNumber the dogSpaceNumber to set */ public void setDogSpaceNumber(int dogSpaceNumber) { this.dogSpaceNumber = dogSpaceNumber; }   /** * @return the dogWeight */ public double getDogWeight() { return dogWeight; }   /** * @param dogWeight the dogWeight to set */ public void setDogWeight(double dogWeight) { this.dogWeight = dogWeight; }   /** * @return the grooming */ public boolean isGrooming() { return grooming; }   /** * @param grooming the grooming to set */ public void setGrooming(boolean grooming) { this.grooming = grooming; }   }

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please help with this error. I have 2 seperate files pet.java and dog.java. I don't know what code I'm missing or how to resolve the errors, I've been at this for 3 days trying to trouble shoot.

I wrote the code and everything passed except I keep getting below errors:  

Class Definition: Please click next for more feedback. If you review the UML diagram you will find that the classes are to be in separate class files.

Class found, not "Dog" (case-sensitive)

// pet.java
public class Pet {
private String petType;
private String petName;
private int dogSpaces;
private int catSpaces;
private int petAge;
private int daysStay;
private double amountDue;
 
// constructor
public Pet (String petType, String petName, int dogSpaces, int catSpaces, int petAge, int dogsStay, double amountDue)
{
}
 
/**
 * @return the petType
 */
public String getPetType() {
return petType;
}
 
/**
 * @return the petName
 */
public String getPetName() {
return petName;
}
 
/**
 * @return the petAge
 */
public int getPetAge() {
return petAge;
}
 
/**
 * @return the dogSpaces
 */
public int getDogSpaces() {
return dogSpaces;
}
 
 
/**
 * @return the catSpaces
 */
public int getCatSpaces() {
return catSpaces;
}
 
/**
 * @return the daysStay
 */
public int getDaysStay() {
return daysStay;
}
 
/**
 * @return the amountDue
 */
public double getAmountDue() {
return amountDue;
}
 
/**
 * @param petType the petType to set
 */
public void setPetType(String petType) {
this.petType = petType;
}
 
/**
 * @param petName the petName to set
 */
public void setPetName(String petName) {
this.petName = petName;
}
 
/**
 * @param petAge the petAge to set
 */
public void setPetAge(int petAge) {
this.petAge = petAge;
}
 
/**
 * @param dogSpaces the dogSpaces to set
 */
 
public void setdogSpaces(int dogSpaces) {
this.dogSpaces = dogSpaces;
}
 
/**
 * @param catSpaces the catSpaces to set
 */
 
public void sectcatSpaces(int catSpaces) {
this.catSpaces = catSpaces;
}
 
/**
 * @param daysStay the daysStay to set
 */
 
public void setdaysStay(int daysStay) {
this.daysStay = daysStay;
}
 
/**
 * @param amountDue the amountDue to set
 */
 
public void setAmountDue(double amountDue) {
this.amountDue = amountDue;
}
}
 
/**
 * @author 
 * dog.java
 */
public class Dog extends Pet{
public Dog(String petType, String petName, int dogSpaces, int catSpaces, int petAge, int dogsStay,double amountDue) {
super(petType, petName, dogSpaces, catSpaces, petAge, dogsStay, amountDue);
this.getPetAge();
// TODO Auto-generated constructor stub
}
 
public static void main(String[] args) {
}
 
private int dogSpaceNumber;
private double dogWeight;
private boolean grooming;
/**
*/
 
 
/**
* @param args
 
public static void main(String[] args) {
 
}
*/
 
/**
* @return the dogSpaceNumber
*/
public int getDogSpaceNumber() {
return dogSpaceNumber;
}
 
/**
* @param dogSpaceNumber the dogSpaceNumber to set
*/
public void setDogSpaceNumber(int dogSpaceNumber) {
this.dogSpaceNumber = dogSpaceNumber;
}
 
/**
* @return the dogWeight
*/
public double getDogWeight() {
return dogWeight;
}
 
/**
* @param dogWeight the dogWeight to set
*/
public void setDogWeight(double dogWeight) {
this.dogWeight = dogWeight;
}
 
/**
* @return the grooming
*/
public boolean isGrooming() {
return grooming;
}
 
/**
* @param grooming the grooming to set
*/
public void setGrooming(boolean grooming) {
this.grooming = grooming;
}
 
}
 
Dog
- dogSpaceNumber
dogWeight
grooming
+ getDogWeight()
+ setDogWeight()
+ getGrooming()
+ setGrooming (
- petType
- petName
-petAge
- dogSpaces
- catSpaces
- daysStay
- amountDue
+ Pet()
+ getPetType()
+ setPetType()
+ getPetName()
+ setPetName()
+ getPetAge()
+ setPetAge()
+ getDogSpaces()
+ setDogSpaces()
+ getCatSpaces()
+ setCatSpaces()
+ getDaysStay()
+ setDays Stay()
+ getAmountDue()
+ setAmountDue()
+ Dog()
+ getDogSpaceNumber()
+ setDogSpaceNumber()
Pet
catSpaceNumber
Cat
+ Cat()
+ getCatSpaceNumber()
+ setCatSpaceNumber()
Transcribed Image Text:Dog - dogSpaceNumber dogWeight grooming + getDogWeight() + setDogWeight() + getGrooming() + setGrooming ( - petType - petName -petAge - dogSpaces - catSpaces - daysStay - amountDue + Pet() + getPetType() + setPetType() + getPetName() + setPetName() + getPetAge() + setPetAge() + getDogSpaces() + setDogSpaces() + getCatSpaces() + setCatSpaces() + getDaysStay() + setDays Stay() + getAmountDue() + setAmountDue() + Dog() + getDogSpaceNumber() + setDogSpaceNumber() Pet catSpaceNumber Cat + Cat() + getCatSpaceNumber() + setCatSpaceNumber()
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 1 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education