3
Answers

C# programming ? Part-1 @tabular

SUNIL GUTTA

SUNIL GUTTA

10y
2.9k
1
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)