Floating point variables


Part a)
Write a program that finds the length 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 variables except for PI. (PI=3.1415)

Radius 

Part b)
Repeat part a) Except use all floating point variables. Output the information to one decimal place. 

Circumference = 2 * PI * radius
Area = PI * radius * radius 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Floating point variables
Reference No:- TGS093311

Expected delivery within 24 Hours