Question: Working with Constants, Variables and Arithmetic Operators Exercise 1 : Bring in the file circlearea.cpp from the Lab 2 folder. The code of circlearea.cpp is
Working with Constants, Variables and Arithmetic Operators
Exercise : Bring in the file circlearea.cpp from the Lab folder.
The code of circlearea.cpp is as follows:
This program will output the circumference and area
of the circle with a given radius.
PLACE YOUR NAME HERE
#include
using namespace std;
const double PI ;
const double RADIUS ;
int main
area definition of area of circle
float circumference; definition of circumference
circumference PI RADIUS; computes circumference
area ; computes area
Fill in the code for the cout statement that will output with description
the circumference
Fill in the code for the cout statement that will output with description
the area of the circle
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
