Barima Wilson

Barima Wilson

  • NA
  • 5
  • 677

Writing a complete C# program

Jan 25 2016 9:30 AM
how to write a complete C# program that finds the area and circumference or perimeter of a Circle or a Rectangle. The User Keys in the Type of Shape (Say C for Circle, R for Rectangle).

For circles, the program requests for a radius to be entered, for a rectangle the program request Length and Breadth. The program calculates the area and perimeter using the appropriate formula and outputs the area. Use Methods to calculate the area and perimeter of each shape. The program should request if the user have more shapes to calculate areas and perimeters. If there are more, the program calculates for them else the program terminates.


Answers (5)