Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(25 points) Write an interactive C++ program that will determine the type of a triangle based on the length of the sides. The program should
(25 points) Write an interactive C++ program that will determine the type of a triangle based on the length of the sides. The program should read in the length of each of the 3 sides of a triangle from an input file "TriangleSides.txt" and determines and print the type of triangle. If all three sides of the triangle are of equal length, the program should print that the triangle is an "Equilateral Triangle". If only two of the sides are of equal length, the program should print that the triangle is an "Isosceles Triangle". If no sides of the triangle are equal, program should print that the triangle is a "Scalene Triangle" 3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started