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 1: Bring in the file circlearea.cpp from the Lab 2 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 =3.14;
const double RADIUS =5.4;
int main()
{
area // definition of area of circle
float circumference; // definition of circumference
circumference =2* 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 0;
}
21

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!