1 / 7

Exercise 8 Reuse

Exercise 8 Reuse. Exercise – Reuse. A code module is reused, unchanged in a new product. In what ways does this reuse reduce the overall cost of the product? In what ways is the cost unchanged? ,

tangia
Download Presentation

Exercise 8 Reuse

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Exercise 8 Reuse

  2. Exercise – Reuse • A code module is reused, unchanged in a new product. • In what ways does this reuse reduce the overall cost of the product? • In what ways is the cost unchanged? , • Suppose that there is a minor change: an addition operation is changed to a subtraction. How does this minor change the results of the previous question?

  3. Reuse and… • What is the influence of cohesion on reusability?, • What is the influence of coupling on reusability? , • How early in the SW life cycle could the developers have caught the fault in the Ariane 5 SW?

  4. Portability and… • Your organization is developing a real-time control system for a new type of a laser that will be used in cancer therapy. You are in charge of writing two assembler modules. How will you instruct your team to ensure that the resulting code will be as portable as possible?

  5. ATM … • Consider an Automated Teller Machine (ATM). The user puts a card into a slot and enters a four-digit Personal Identification Number (PIN).If the PIN is incorrect, the card is ejected. Otherwise, the user may perform the following operations on up to four different bank accounts: • Deposit any amount. A receipt is printed showing the date, amount deposited, and account number, • Withdraw up to 200$ in units of 20$ (the account may not be overdrawn). In addition to the money, the user is given a receipt showing the date, amount withdrawn, account number, and account balance after the withdrawal.

  6. ATM (Cont’d) • Determine account balance. This is displayed on the screen, • Transfer funds between two accounts. Again, the account from which the funds are transferred must not be overdrawn. The user is given a receipt showing the date, amount transferred, and the two accounts numbers, • Quit. The card is ejected, Explain how would you ensure hat as many products’ modules as possible can be used in future products.

  7. Exercise 8 Reuse The End.

More Related