#include "stdafx.h"
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
const double PI = 3.14159265;
const double RADIUS = 1738.3;
double area;
double rate;
int main ()
{
cout << fixed << setprecision( 3 );
cout << "Please enter the % of the moon's face that appears illuminated: ";
cin >> rate;
cout << endl;
area = 2 * pow( RADIUS, 2 ) * PI * ( rate / 100 );
cout << "The surface area based on your percentage is: ";
cout << area << " square kilometres." << endl;
return( 0 );
}