Advantages and disadvantages of testing for error


Introduction to Programming. Discussion Board Initial Post Assignment

Write 400600 words that respond to the following questions with your thoughts, ideas, and comments. This will be the foundation for future discussions by your classmates. Be substantive and clear, and use examples to reinforce your ideas.

You will need to store the details of a customer’s order in a file so that you have a record of it and so that you can retrieve it for later use. Numerous errors can occur during input or output operations. There are two fundamentally different ways to handle these error conditions (or any error conditions). You can test for each condition before or after it occurs or you can use exception handling.

In your program, you will be using exception handling to deal with input or output errors. Discuss the following:

What are the advantages and disadvantages of testing for error conditions as compared to using exception handling when performing input or output?

Why have almost all programmers, in almost all cases, moved to using exception handling for input or output?

In what situations other than input or output might you find exception handling useful? Could exception handling be the preferred approach to use for those situations as well?

Write 2 more paragraphs that are an introduction and conclusion to this topic. Be sure to include your references and format your submission in APA format.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Advantages and disadvantages of testing for error
Reference No:- TGS01434482

Expected delivery within 24 Hours