Answer:
The program in C++ is as follows:
#include<iostream>
using namespace std;
void displayData(int height, int length, double Area){
printf("Height: %d \n", height);
printf("Length: %d \n", length);
printf("Area: %.2f \n", Area);
}
double trigArea(int height, int length){
double area = 0.5 * height * length;
displayData(height,length,area);
return area;
}
void getData(){
int h,l;
cin>>h>>l;
trigArea(h,l);
}
int main(){
getData();
return 0;
}
Explanation:
<em>See attachment for complete program where comments are used to explain the solution</em>