Answered step by step
Verified Expert Solution
Question
1 Approved Answer
U 1 _ Final: Write a program that tells the user if three lengths, entered by the user, of a triangle form an equilateral (
UFinal: Write a program that tells the user if three lengths, entered by the user, of a triangle form an
equilateral all sides are equal isosceles sides are equal scalene all sides are different or cannot
form a triangle. If the lengths make a triangle, calculate the perimeter and area of the triangle. Assume
the user will type positive decimal numbers. Also, ask the user if they want to run the program again to
be able to enter another set of numbers. When asking the user, the program should recognize input of
y N and n Any other answer would tell the user that they entered an invalid response see sample
output
Here are the formulas needed, where are the sides of the triangle:
Note: Technically an equilateral triangle is also an isosceles triangle.
Sample Output yours should look and function in a same manner:
welcome to the triangle derterminator'!
Enter three side lengths of a triangle:
and cannot form a triangle.
Do you want to enter another set y
Fnter three side lengths of a triangle:
and forms a scalene triangle.
Perimeter
Area
Do you want to enter another set maybe
maybe is an invalid input
Do you want to enter another set Y
Enter three side lengths of a triangle:
and forms an isosceles triangle.
Perimeter
Area
Do you want to enter arother set
thank you for using this program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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