a) When designing and writing program code, explain what is meant by: An exception Exception

Question:

a) When designing and writing program code, explain what is meant by:
– An exception
– Exception handling.
b) A program is to be written to read a list of exam marks from an existing text file into a 1D array.
Each line of the file stores the mark for one student.
State three exceptions that a programmer should anticipate for this program.
c) The following pseudocode is to read two numbers.

The programmer writes the corresponding program code.
A user inputs the number 53 followed by 6. The following output is produced:

i) State the pseudocode line number which causes the exception to be raised.
ii) Explain the purpose of the pseudocode on lines 11 and 12.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: