How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask LogicPro Your Own Question

LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 12357
Experience:  Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Type Your Programming Question Here...
LogicPro is online now
A new question is answered every 9 seconds

Hello, do you still have the Pet Class program in Raptor flow

This answer was rated:

Hello, do you still have the Pet Class program in Raptor flow chart, etc to include Java code.

Welcome to JustAnswer
Do you need raptor chart and java code?

please paste the question text here
Customer: replied 3 years ago.

Yes, the flow chart, UML,MAIN,PET, etc . but I believe Raptor will create the JAVA source code, once the flow chart is complete. I'll insert the comments where applicable. I saw on an earlier post that this program had been done, already, thought it was readily available.


Design a class named Pet, which should have the following fields:

  • Name – The name field holds the name of a pet.

  • Type – The type field holds the type of animal that is the pet. Example values are “Dog”, “Cat”, and “Bird”.

  • Age – The age field holds the pet’s age.

The Pet class should also have the following methods:

  • setName – The setName method stores a value in the name field.

  • setType – The setType method stores a value in the type field.

  • setAge – The setAge method stores a value in the age field.

  • getName – The getName method returns the value of the name field.

  • getType – The getType method returns the value of the type field.

  • getAge – The getAge method returns the value of the age field.

Once you have designed the class, design a program that creates an object of the class and prompts the user to enter the name, type, and age of his pet. This data should be stored in the object. Use the object’s accessor methods to retrieve the pet’s name, type, and age and display this data on the screen.



Download answer from here

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
so you can come back and ask me a question anytime.

Remember, if you need anything else, we can continue the conversation until you’re satisfied and rate my answer as excellent. I can address follow up questions at no extra charge and I’m always here to help.
Thank you for using JustAnswer!
Customer: replied 3 years ago.

I noticed that there are two files for the Java source script. Is that because of the UML?

One file contains the code for Pet class and other contains code for main method.
LogicPro and other Programming Specialists are ready to help you
Customer: replied 3 years ago.

How would I design this program if I could not use the class diagram?


Just curious.

The UML Diagram is given in the Raptor file.
Pet Class code is as per the UML File.