Text: Study the given main function, then fill in the missing functions to make the program work. Do not change the main function. Use value and reference parameters as needed. Examine the function calls to determine the parameter lists and return types needed.
This program must be written in C++.
#include <iostream>
using namespace std;
void calculateDiameter(float& diameter, float radius) {
diameter = 2 * radius;
}
void calculateCircumference(float& circumference, float diameter) {
circumference = 3.14159 * diameter;
}
float calculateArea(float radius) {
return 3.14159 * radius * radius;
}
int main() {
float radius, diameter, circumference, area;
cout << "Enter the radius of a circle: ";
cin >> radius;
calculateDiameter(diameter, radius);
calculateCircumference(circumference, diameter);
area = calculateArea(radius);
cout << "For a circle with radius = " << radius << endl;
cout << "Diameter = " << diameter << endl;
cout << "Circumference = " << circumference << endl;
cout << "Area = " << area << endl;
return 0;
}