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, Engineer
Category: Homework
Satisfied Customers: 12496
Experience:  Expert in Java C++ C C# VB Javascript Design SQL HTML
Type Your Homework Question Here...
LogicPro is online now
A new question is answered every 9 seconds

Programming Exercise 7.1 The Rectangle class Design a class

This answer was rated:

Programming Exercise 7.1 The Rectangle class Design a class named Rectangle to represent a rectangle. The class contains: •Two double fields named width and height that specify the width and height of the rectangle. The default values are 1 for both. •A string data field named color that specifies the color of a rectangle. Hypothetically, assume that all rectangles have the same color. The default color is white. •A no-arg constructor that creates a default rectangle. •A constructor that creates a rectangle with the specific width and height. •The accessor and mutator methods for all three data fields. •A method named getArea() that returns the area of this rectangle. •A method named getPerimeter() that returns the perimeter. Draw the UML diagram for this class. Implement the class. Write a test program that creates two Rectangle objects. Assign width 4 and height 40 to the first object and width 3.5 and height 35.9 to the second object. Assign color red to all Rectangle objects. Display the properties of both objects and find their areas and perimeters.

"TO lifesaver"
Welcome back
Hope you are doing well
Is it in Java?
What is the deadline?
Customer: replied 3 years ago.
Yes java. The sooner the better but not any kind of rush

Unzip to get java files and UML diagram

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 for any reason you are unsatisfied with my answer, we can continue the conversation until you’re satisfied and rate my answer as excellent. I can address follow up questions on original requirements at no extra charge and I’m always here to help. Thank you for using JustAnswer!
Customer: replied 3 years ago.

sorry but how am i suppose to get this to run? when i click run its asking for ant build? also there is two java files? I'm not getting the correct output

Which IDE you are using? like Netbeans/eclipse etc
Customer: replied 3 years ago.

eclipse, ty for the quick responses


You need to spend $3 to view this post. Add Funds to your account and buy credits.
LogicPro and 4 other Homework Specialists are ready to help you