Can Someone help me.
i know that my program is no where near down, but im hitting some trouble, i know what i want the program to out put i just dont know how to write it to do that.
the program is: You are to write an inventory management system for Noah抯 Pet Emporium, which sells, dogs, cats, birds and fish. The following information apples to every pet
?Type: dog, cat, bird, or fish
?Age
?Weight
?Price
and i know alot is wrong but could someone help me, what i have written so far is:
java.util.Arrays
public class FinalPro {
public static
void main(String[] args) {
int answer;
System.out.prinf("Please enter a number for the information that you need, 1-Dogs, 2-Cats, 3-Birds, 4-Fish");
awswer = input.nextInt();
}
}
class pets
{
String PetType;
String age;
String weight;
String price;
public pets(String PetType, String age, String weight, String price)()
{
x = PetType;
y = age;
z = weight;
p = price;
}
}
public ArrayPets()
{
pets dogs[];
dogs[0].petType={"German Shepherds"};
dogs[0].age ={"4"};
dogs[0].weight={"15lbs"};
dogs[0].price={"$300};
dogs[1].petType={"Husky"};
dogs[1].age ={"6"};
dogs[1].weight={"25 lbs"};
dogs[1].price={"$600};
pets[1].petType="Cat"
}
public GetPets(int answer)
{
if (answer = 1)
//dog
//show dog1
//output dog's name
//show
system.out.prinf("German Shepherds",)
system.out.prinf("5 years old",)
system.out.prinf("15 lbs",)
system.out.prinf("Cost $500",)
system.out.prinf("Eats Canned Food",)
system.out.prinf("Husky",)
system.out.prinf("7 years old",)
system.out.prinf("25 lbs",)
system.out.prinf("Cost $800",)
system.out.prinf("Eats Dry Food",)
//
else if (answer = 2)
system.out.prinf("Siberian Cat",)
system.out.prinf("2 years old",)
system.out.prinf("20 lbs",)
system.out.prinf("Cost $800",)
system.out.prinf("Cat is DeClawed",)
system.out.prinf("Oriental Shorthair Cat",)
system.out.prinf("7 years old",)
system.out.prinf("30 lbs",)
system.out.prinf("Cost $650",)
system.out.prinf("Cat is Clawed.",)
//
else if (answer = 3)
system.out.prinf("Canary",)
system.out.prinf("1 years old",)
system.out.prinf("5 lbs",)
system.out.prinf("Cost $1000",)
system.out.prinf("Country of Origin is the Carribean Islands",)
system.out.prinf("Parrot",)
system.out.prinf("7 years old",)
system.out.prinf("15 lbs",)
system.out.prinf("Cost $2500",)
system.out.prinf("Country of Orgin is Dominican Republic",)
//
else if (answer = 4)
system.out.prinf("Clown Fish",)
system.out.prinf("3 months old",)
system.out.prinf("3 lbs",)
system.out.prinf("Cost $900",)
system.out.prinf("Salt Water",)
system.out.prinf("Neon",)
system.out.prinf("1 year old",)
system.out.prinf("5 lbs",)
system.out.prinf("Cost $1900",)
system.out.prinf("Fresh water",)
//
else
system.out.prinf("Not a Choice")
}

