13.07.2015 Views

Object-Oriented Software Development with UML - UNU-IIST ...

Object-Oriented Software Development with UML - UNU-IIST ...

Object-Oriented Software Development with UML - UNU-IIST ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4 QuestionsFor instance, if the sales tax rate in the USA changes from £¥¤ to ¦§¤ , almost every software product thatdeals <strong>with</strong> buying or selling has to be changed. Suppose the product contain the C or C++ statementconst float sales_tax = 6.0;declaring that sales tax is a floating-point constant, and initialized to £©¨ . In this case maintenance isrelatively simple. With the aid of a text editor the value£©¨ is replaced by¦¨ , and the code is recompiled.However, if instead of using the constant declaration, the actual£©¨ has been used in the product whereverthe value of the sale tax is involved, then such a product will be extremely difficult to maintain.1.3 Questions1. Consider a piece of software that you enjoy/hate using. In what respects is it a high/low qualitysystem?2. Do you know some infamous examples of failures of the desirable attributes of software that havedramatic effects? Which of the attributes failed in your example?Report No. 259, July 2002<strong>UNU</strong>/<strong>IIST</strong>, P.O. Box 3058, Macau

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!