// =====================================
void WelcomeMessage(void) {
cout << "==========================================" << endl;
cout << "Welcome to Programming Assignment Six " << endl;
cout << endl;
cout << "Finding the radius, circumference, and area of a circle" << endl;
cout << "==========================================" << endl;
cout << endl;
}// End of Function WelcomeMessage()
cout << endl;
cout << "The radius entered is ==> " << radius << endl;
cout << "The circumference of the circle is ==> " << circumference << endl;
cout << "The area of the circle is " << area << endl;
cout << endl;
}// End of Function OutputData()
Write a program that asks for a value for the radius of a circle. The program should then compute the circumference and area.
1.) You should have a user loop.
2.) There should be a void banner() function that welcomes the user.
3.) There should be a void function called GetValue()
4.) There should be a value-returning function that calculates the
circumference called ComputeCircumference().
5.) There should be a void function that calculates the area called
ComputeArea().
6.) There should be a value-returning function call GoAgain() whose return
type is bool.
7.) There should be a void function called OutputData() that outputs the
radius, the circumference, and the area o the circle in a beautiful
format.
so far I have coded a little over half the assignment. the only thing I kind of need help on is the Welcome message to output on the output window. The other thing is my calculations of the circle mesurements. I used a calculater to confirm the results on my program and the answers are off by a couple decimal numbers.
The other thing is my calculations of the circle mesurements. I used a calculater to confirm the results on my program and the answers are off by a couple decimal numbers.
Your calculator will undoubtably use a much more accurate value of PI than the 3.14 that you have used. If you are going to make it a double then give it a value to more than 3 sig. fig. - you could take this constant off your calculator to avoid a function call.