Input a number x and build program that allows the user to


Using the Raptor program, answer the following:

Input a number (X) and build program that allows the user to select finding the area (Area) of one of the following:

  • The area of a square with side X, Area = X * X
  • The area of a circle with radius X, Area = 3.14 * X^2
  • The area of an equilateral triangle with side X, Area = Sqrt(3)/4 * X^2

Note: Because X represents a dimension, we require that X > 0. Be sure to include this requirement in your program.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Input a number x and build program that allows the user to
Reference No:- TGS02500508

Now Priced at $15 (50% Discount)

Recommended (96%)

Rated (4.8/5)