# Question: 114.6 Lab 2b – Base/Hypotenuse Angle For this lab: (1) Read in the width and height of a right triangle (2) Print out the Hypotenuse to two decimal places (3) Calculate the angle between the base and hypotenuse (4) Print the angle in radians to two decimal places. NOTE: End each value with a new line. 304192.1813240 LAB ACTIVITY 14.6.1: Lab 2b – Base/Hypotenuse Angle main.cpp 11 – Free Chegg Question Answer

`Transcribed text From Image: 14.6 Lab 2b - Base/Hypotenuse Angle For this lab: (1) Read in the width and height of a right triangle (2) Print out the Hypotenuse to two decimal places (3) Calculate the angle between the base and hypotenuse (4) Print the angle in radians to two decimal places. NOTE: End each value with a new line. 304192.1813240 LAB ACTIVITY 14.6.1: Lab 2b - Base/Hypotenuse Angle main.cpp 11`

`Answer:`

#include <bits/stdc++.h>

using namespace std;

int main()

{

double height, width, hypotenuse;

cin >> height >> width;

hypotenuse = sqrt(height * height + width * width);

cout << fixed << setprecision(2);

cout << hypotenuse << endl;

double angle = atan(height / width);

cout << angle;

return 0;

}

Screenshot of the output: