Elina develops the customer details maintenance application and the EMI calculator application and provides both the applications to Dwayne for testing. While testing the applications, Dwayne discovers the following problems:
1.The application displayed a message to the user to enter the path of the customer details file. However, the customer details maintenance application crashed as Dwayne mistakenly entered the wrong file path. Therefore, he asks Elina to modify the application so that it does not crash due to similar errors. Modify the code that Elina needs to accomplish the preceding task.
2.The EMI calculator application crashed when Dwayne accidentally entered zero as the rate of interest. Therefore, he asks Elina to modify the application so that it displays an error message if the principal amount, rate of interest, or tenure of the loan entered is invalid. Add the code snippet that Elina should use to modify the application according to the preceding requirements.