In order to have a closed geometric figure composed of straight lines, the angle
ID: 1827395 • Letter: I
Question
In order to have a closed geometric figure composed of straight lines, the angles in the figure must add to (n-2)(180 degrees), where n is the number of sides.
Write a progra that uses menu to select a type of figure (triangle, sqaure, pentagon, hexagon, heptagon, octagon), and then use switch-case to determine the value of n. After determining the value of n, the program returns a nicely formatted sentence that includes the name of the figure, the number of sides, and the sum of the interior angles
Explanation / Answer
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.