SUNIL GUTTA

SUNIL GUTTA

  • NA
  • 1k
  • 395.5k

C# programming ? Part-1 @tabular

Feb 19 2014 2:11 PM
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
 

Answers (3)