Thanks,

- Brad

#include <iostream> #include <conio.h> #include <cmath> using namespace std; int main() { double x, y; cout << "1. To calculate the hypotenuse of a right triangle\n " << endl; cout << "Enter length for first side: " << endl; cin >> x; cout << "Enter length for the second side: " << endl; cin >> y; double hypotenuse, V; hypotenuse = sqrt(pow(x,2) + pow(y,2)); cout << "\n\nx = " << x << endl << "y = " << y << endl << "\n\nThe Hypotenuse of a right triangle = " << hypotenuse << endl; cout << "\nPress Enter to continue\n " << endl; getch(); double volume; double radius; const double PI = 3.14159; cout << "2. Find the volume of a sphere\n " << endl; cout << "Enter the radius: " << endl; cin >> radius; cout << "\nThe radius = " << radius << endl; volume = (4.0/3.0) * PI * pow(radius,3); cout << " \nThe Volume of a Sphere = " << volume << endl; cout << "\nPress Enter to continue\n " << endl; getch(); double Area; double height; cout << "3. To calculate the surface area of a Cylinder\n " << endl; cout << "Enter the radius: " << endl; cin >> radius; cout << "Enter the Height: " << endl; cin >> height; cout << "\nThe radius = " << radius << endl; cout << " \nThe height = " << height << endl; Area = 2 * PI * pow(radius,2) + 2 * PI * height; cout << "\nThe Area of a cylinder = " << Area << endl; cout << "\nPress Enter to continue\n " << endl; getch(); double peak; double degree; double voltage; cout << "4. To calculate the instantaneous value of an AC voltage " << endl; cout << "\nEnter the peak value: " << endl; cin >> peak; cout << "Enter angle: " << endl; cin >> degree; cout << "\nThe peak voltage = " << peak << endl; cout << "\nThe degree angle = " << degree << endl; voltage = peak * sin (degree/180 * PI); getch(); return (0); }