a.Write a program that finds the lengh of fence needed to enclose a circular gar
ID: 3643932 • Letter: A
Question
a.Write a program that finds the lengh of fence needed to enclose a circular garden and the area of the garden.Write it to accommodate three different gardens. Prompt the user for the radius of each circular garden and present the output information in tabular form. { setw() }Use all integer variable except for PI. (PI=3.1415)
e.g.
Radius(ft) Fence Lenght(ft) Garden Size(sg ft)
x xxxxxx xxxx
xx xxxxxx xxxx
xxx xxxxxx xxxx
b. Repeat part(a) except use all floating point variables. Output the information to one decimall place.
Circumference= 2*PI*radius
Area=PI*radius*radius