Question: 1. Write a Java program to determine types of triangles. The program reads 3 integer numbers from the standard input. The numbers represent the lengths

 1. Write a Java program to determine types of triangles. The

1. Write a Java program to determine types of triangles. The program reads 3 integer numbers from the standard input. The numbers represent the lengths of the sides of a triangle. The program prints a message to the standard output that indicates whether the triangle represented by the input is an equilateral (all 3 sides are equal), or an isosceles (exactly 2 of the 3 sides are equal), or . a scalene (all 3 sides are of different lengths) The program should print out appropriate messages when an erroneous input or condition is encountered Submission: The source code of your program. 1. a. Execute "Run As/ Maven build..." b. Enter "clean package" c. Step 1.b produces a ZIP file in /target. Submit that ZIP file Hint: Your program must read the numbers from the standard input. One way to do this is to use the java.util.Scanner class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!