To save program test time you want to initialize an array na
To save program test time, you want to initialize an array named: height with some hard wired values, is this statement OK? ANS: Cycle Yes No Will this program work all the time? ANS (1) If the program will crash at some point, explain under what run condition the program will crash. ANS (2) Under what run situation that the class will run smoothly to finish ANS (3)
Solution
17. Yes. The given statement is valid.
18. No. The program will not run normal all the time. If the passed command line arguments are not a minimum of 3, the program will crash. If you pass a minimum of 3 arguments for the class, the code will run smoothly to finish.
