#include using namespace std; #define PI 3.141592653 // TODO: Add your functions void fun_with_numbers(int x){ int o = x % 10; x -= o; int t = (x % 100); x -= t; int h = x; cout << number_string(int(h/100)) << " hundered, " << number_string(int(t/10)) << " tens, and " << number_string(int(o)) << endl; } int main(){ cout << "This should be 125: " << cube(5) << endl; cout << "This should be 20: " << area_of_right_triangle(4, 10) << endl; cout << "This should be 20944: " << volume_of_cone(10, 200) << endl; cout << "This should be 262206: " << weight_of_water_room(20, 30, 7) << endl; // Small house, decent size rabbit (New Zealand, etc) cout << "This should be 100: " << rabbit_house(1000, 10, 'l') << endl; // Apartment, smaller rabbits (dwarf varieties, like fuzzy lop, etc), high density cout << "This should be 166: " << rabbit_house(400, 4, 'd') << endl; // Big house, decent size rabbit (champagne d'argent, etc) cout << "This should be 533: " << rabbit_house(3600, 9, 'n') << endl; // You can guess what these do easy enough, just make sure the output looks right fun_with_numbers(357); fun_with_numbers(243); return 0; }