Question: Please read carefully on the instruction to do the same thing it ask for! There are incomplete input and complete output for you to write

Please read carefully on the instruction to do the same thing it ask for! There are incomplete input and complete output for you to write more code and double check it works as same as output! Please provide the output copy as the result
 Please read carefully on the instruction to do the same thing
it ask for! There are incomplete input and complete output for you

Programming: DUE: tel: Chapter 11,15, 6.6, 6.12 Liang: Chapter 12, 7.13 Name your file for PAM: P7 . java Tuesday August 1, 2017 6am You will write an application program tor fundasental command line arguments file will be specified on the comma Eile. Refer to Exceptions and St ram for fundanental File 1/0t Data will be read from File 1/0 Input/Output) using a simple plain text file. This The command line argument will nd line Use se command line ream L/0 handout a be found as an i argunents to open the ndex in the String args[]. This application program wil handle unchecked exceptions ArrayIndexOutofBoundstxception and un and also handle checked exception FileNotFoundException is application program will also use fundamental Exception handling. You wi You will declare (not handle) the checked exception 10Exception An acray of triangle sides is allocated, filled with input values, prints type of triangle and the perimeter. Avoid hardcoding class P7 private statie final int ASIE 3: private static int aTri new int (ASIZE]: 3 elements of triangie sid 1/ Array size public static void main(String (1 args) throws IOException public static void typeTriangle () public static void calcPerimeter () a) main ) will open args t01 using FileReader and ButeReader construators BufferedReader readLine ( ) will read in triangle sides values tro.the-tut tokenize the input with String method splito". Reter to Exceptions handout Allow your application program to repeat this calculation until no moze input is in the text file. See code below Convert the token into an integer using Integer-parseInt (. Catch the NumberFormatException if the user enters an invalid error message, print a stack trace ex.printStackTrace),and loop back to read the next line of input. integer v // string for input line // Array of strings for each word // readtineD input froa file String inputStr=""; String si BufferedReader in; in-new BufferedReader (new FileReader (args101)) // try block for other Exceptins // Parse into tokens 11 n, readLine() )null ) // Read entire line whil. ( ( inputStr try sinputstr. split( ") Iraverse array foro s.length Int(s[)); // Convert triangle sade // w. aTrii -Integer , parse print an error sessage array, ck and read the next line of input. It there ba and call calcerineter) 25 elements than the size of the If there are less e loop typed in, then assign only the first 3 into the array

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!