#include
using namespace std;
/*
* This C++ program does the following:
*
* 0) calculates the circumference and area of a circle
* 1) converts total inches to feet and inches
* 2) converts feet and inches to total inches
*
* @creator gdt
* @created 02017.09.20
* @edu written during a csc100 class at SCC
*/
int main(int, char**) {
// calculate circumference and area of a circle...
cout << "enter radius: ";
int radius;
cin >> radius;
const double PI = 3.1415926535897932384626;
double circumference = 2 * PI * radius;
double area = PI * radius * radius;
cout << "a circle with radius " << radius
<< " has a circumference of " << circumference
<< " and an area of " << area << endl;
// convert total inches to feet and inches...
cout << "enter inches: ";
int inches;
cin >> inches;
int ft = inches / 12;
int in = inches % 12;
cout << inches << " inches is " << ft
<< " feet and " << in << " inches\n";
// convert feet and inches to total inches...
cout << "enter feet and inches: ";
cin >> ft >> in;
inches = in + 12 * ft;
cout << ft << " feet " << in << " inches is "
<< inches << " total inches\n";
}