Discussion questions1-3

Discussion Syntax errors are treated differently in C++ (Compiler) and Java (Interpreter), as the interpreters are used to interpret the source line by line, whereas, the compiler (C++) compiles the whole code at once and displays all the errors at a time.
Usually, the compiler does not generate any file (object or executable) and stop compiling if there is a compilation error. However, some compilers continue compilation to show all the syntax errors at once, for example C++. Conversely, while dealing with objects in compilers (C++), only a few object files produced, but not at all.
The interpreter does not differentiate between exception and syntax error, it continues to interpret and execute the source code till possible. However, it stops interpreting where finds a syntax error with an error message. In this regard, it is achievable for interpreters to handle the syntax errors as exceptions to continue an execution of a source code/program even after the syntax error.
Discussion 2
Defensive programming is to investing more time in writing a secure program by validation of extensive of input, avoiding garbage values and standardization of exception handling. The defensive programming relates to variables as in the defensive programming we need to use naming scheme (preferably Hungarian Variables) begins with int, str and providing meaningful variables names. All the variables should be explicitly initialized to avoid garbage values, long script should be break into sections that facilitates reusability and makes easy debugging. Hence, it can be said that the defensive programming avoids not only syntax errors but also some semantic errors while using the above methods, so that when viewing variables the programmer explicitly knows for what purpose the variable is declared and used in a program.
Discussion 3 – Part (1) – Using Spreadsheets
Spreadsheet model is one of the major business models that is ubiquitous and allow us to develop more complex and detailed models than traditional mathematics allows. It facilitates business communication especially performing modeling tasks and accounting statements in effective and efficient manner, as it is more-powerful and refined tool. This is the reasons for which spreadsheet modeling is high in demand of recruiters.
Discussion 3 – Part (2) – Benefits of Business Models
Modeling helps us to make informed decisions in any business. We can model a system before its actual implementation to know any defect in the model, test the model and can identify pros and cons of the modeled system. Modeling can be used to investigate alternate ways of doing business, without investing in a business that could result in exploring the unfeasible. We can easily manage and predict the information by developing models. From the above discussion it could be said that modeling enhances business perception while reducing costs.