Hi there
Write an application that allows a user to input the height and width of a rectangle and output the area and perimeter. Use methods for entering the values, performing the computations, and displaying the results. Results should be formatted and printed in a tubular display.
- Should be named Rectangle
- Prompt the user for the height and width in Main()
- Pass the height and width to a method named ComputeArea() that returns the area back to
main
- Pass the height and width to a method named ComputePerimeter() that returns the
perimeter back to main
- Pass the height, width, area and perimeter to a method named DisplayResults() that displays
the results
Should look like this: http://i.imgur.com/mJSQyzG.png
Regards

VulpesRank #55 · 29.2K reputationPosted Feb 19, 2014, 12:08 PM EST
The program could use some data validation to make sure the height and width are > 0 but otherwise is complete.
SUNIL GUTTARank #1,832 · 810 reputationPosted Feb 19, 2014, 6:35 PM EST
Thank you very very much
VulpesRank #55 · 29.2K reputationPosted Feb 20, 2014, 1:35 AM EST