| 
 
 
 | Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. Prepared by Ibrahim Mesecan.
 
 
 Area of CirclesNote:  This question has been designed for 
C & C++. It will not work for other programming languages. Using the functions above in your program,
calculate and show the area as far as
the function
  Question: 
Assume that you are given the following functions and constant PI in the header file areaofCircle.h : 
const double PI=3.14159;double Area(int radius);
// calculates the area of a circle with the given radiusbool Continue(); // asks to the user
if he wants to continue or not. If the user// says 'y' it returns
 true, it returns false otherwiseint getRadius();
// this function gets radius from keyboardvoid showResult(double area);
// shows the result on screen Continue();  produces
true, (the user enters 'y').Note:  For C and C++, you can include
the functions using the following statement.
 
    #include "utils/areaofCircle.h" 
 Input specification  You will get the input through the function
  getRadius();   
Output specification  You will show the result through the function
 showResult(double area);  
 Для отправки решений необходимо выполнить вход.
 
 
 |