/*AUTHOR: [phear]cripplerFILE: area.cppPURPOSE: computes the area of a triangle when the base and height are known. */#include <iostream>using namespace std;double area_t(double b, double h);int main() { double b, h; char again; cout << "This program computes the area of a triangle when the\n"; cout << "base and height are known.\n"; do { cout << "\nFill in the into below;\nbase: "; cin >> b; cout << "\nheight: "; cin >> h; cout << endl; cout << "The area of the triangle is: " << area_t(b, h) << endl; cout << "Do another? (Y/N): "; cin >> again; } while(again == 'y' || again == 'Y');return 0;}double area_t(double b = 0.0, double h = 0.0){ return 1.5 * b * h; }