How JustAnswer Works:

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: 10226

Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML

29751445

Type Your Homework Question Here...

LogicPro is online now

Define a class CRectangle to encapsulate length, width and

Resolved Question:

Define a class CRectangle to encapsulate length, width and related calculations according to the UML diagram above. The getLength function returns the length and getWidth returns the width. The setRect function prompts and gets input for the current object and the showRect displays the data of the current object. The circumference function calculates the circumference of the current object and returns it, and the area function calculates the area and returns it. Function isLarger returns true if the area of the current object is greater than the argument object. Implement the member functions outside of class block to facilitate information encapsulation. When display length, width, circumference and area, display with two decimals.Now exercise the class in client code. Besides test every single functions of the class, also do the following:1. Make an array of 10 CRectangle rectangles (i.e., objects).2. Loop through the rectangles on the array to output the length and width of each rectangle. 3. Loop through the rectangles to reset the length and width to the values user input.4. Now display the length, width, the circumference, and the area of each of these rectangles.5. Sort the rectangles in descending order based on area.6. Display the length, width, circumference, and area of these rectangles again to verify they are sorted.7. House clean the code, Good Bye message, and then end the program

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:http://www.justanswer.com/homework/expert-logicpro/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!

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.DianeDallas, TX

Ask a Tutor

Get a Professional Answer. 100% Satisfaction Guaranteed.

143 Tutors are Online Now

Type Your Homework Question Here...

characters left:

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.