i) What is the above Java program actually doing? ii) Identify and fully describe the four errors
Question:
i) What is the above Java program actually doing?
ii) Identify and fully describe the four errors in above codes (state the line number of each error).
iii) Please state the two line numbers individually where each of the InputMismatchExceptions and ArithmeticExceptions uses the standard error stream object to output error messages? (You just have to indicate each of the two line numbers involved)
iv) In Line 31, what is the purpose of the Java codes ‘scanner.nextLine();’?
v) Please rewrite the above Java codes so that the program allows users to enter floats (other than just integers) and output the floats and/or integers. You just have to rewrite the relevant codes that have to be changed accordingly
College Accounting
ISBN: 978-1111528126
11th edition
Authors: Tracie Nobles, Cathy Scott, Douglas McQuaig, Patricia Bille