Sara A.

asked • 05/19/17

Please help with this C++ programming question

Using pseudo code algorithms!
c++ only
1- Detect if three angles can make a triangle. (1)
• Hint: In a triangle, the sum of all angles is 180.
2- Switch the value of two numbers (1)
• If a=2 and b=5, we want to have a=5 and b=2 at the end.
• Remember that a=b will result in the old value to of a to get lost.
3- Receive a set of numbers and find the max. (1)
4- In the previous case (3), switch the value of first number with the max (1)
5- Use what you did in (4) and sort the set of numbers. (1)
• Max value goes to the first data, then max of remaining values goes to the second, etc.

1 Expert Answer

By:

Keith B. answered • 06/29/17

Tutor
4.6 (22)

Software Engineer and Math Geek

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.