View the step-by-step solution to:

Question

Not quiet sure on these. Help is much appreciated

Code the following ADT Classes.

ADT

named Circle:



  1. Include data:
  • radius (double)
  1. Include methods:
  • A no-argument constructor
  • A constructor that sets the data to passed values
  • Getters and setters for each piece of data
  • getArea (Math.PI * radius * radius ... try using a Math method here)
  • getDiameter (radius * 2)
  • getCircumference (2 * Math.PI * radius)
  • A toString( ) method to display the object data
  1. Include Javadoc comments for the class and every method, and generate the Javadoc/API
  2. Use a separate Java application to "unit test" this class by creating 2 objects: one using the default constructor, and the other one using radius values you get as input from the user.  Make sure to call every method at least one time.


ADT named Payroll:



Top Answer

The java classes with... View the full answer

circleDocs.png

All Classes
PACKAGE
CLASS
TREE DEPRECATED INDEX HELP
Circle
PREV CLASS NEXT CLASS
FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Class Circle...

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question