Question: using c++ write a program that has a loop that asks a user to make a selection. The first choice will have user determine the
using c++ write a program that has a loop that asks a user to make a selection. The first choice will have user determine the third angle of a triangle, given two. This will call a function that will pass in two angles and the function will return the third angle. Second choice will have the user test a math problem. Here a function is called, nothing need be passed into it. The function will then generate two random numbers between 1 and 10 and then display these two numbers being multiplied together. The user will need to enter the answer and then the function will determine if the answer is correct or not. If correct, display the appropriate message and if wrong display answer with the appropriate message. See sample code below:
Choose one
1: Find Third Angle of a triangle
2: Do Math Problem
3: quit
Enter choice --> 1
Enter 1st angle 45
Enter 2nd angle 72
The third angle is 63
Choose one
1: Find Third Angle of a triangle
2: Do Math Problem
3: quit
Enter choice --> 2
2 * 8 = 10
Sorry, Wrong Answer, it is 16
Choose one
1: Find Third Angle of a triangle
2: Do Math Problem
3: quit
Enter choice -->
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
