Write an application that computes the area of a circle, rectangle, and cylinder. Display a menu showing
Question:
Write an application that computes the area of a circle, rectangle, and cylinder. Display a menu showing the three options. Allow users to input which figure they want to see calculated. Based on the value inputted, prompt for appropriate dimensions and perform the calculations using the following formulas:
Area of a circle = pi * radius2 Area of a rectangle = length * width Surface area of a cylinder = 2 * pi * radius * height + 2 * pi * radius2 Write a modularized solution that includes class methods for inputting data and performing calculations.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C# Programming From Problem Analysis To Program Design
ISBN: 9781285856872
5th Edition
Authors: Barbara Doyle
Question Posted: