Docsity

Applied Software Design - Homework 1 Solutions | ECE 3574, Assignments of Software Engineering

Toggle sidebar
bg1
ECE 3574: Applied Software Engineering Fall 2007 Problem Set 1
Virginia Tech
Bradley Department of Electrical and Computer Engineering
ECE 3574: Applied Software Engineering
Fall 2007
Homework Problem Set 1 Solutions
Submission Details
The solutions for this problem set must be submitted as an electronic submission. Your submission
will ideally be a zip/tar file containing the document file that contains the answers to the questions,
and the relevant source files for the programming questions. Your programs will be run to evaluate
their correctness, and the source code will be reviewed to evaluate your object oriented design, and
your usage of comments. The following information must be included at the top of the first page of
your document: your full name, your student ID number, your email address, class (ECE 3574), title
of the assignment (Homework Problem Set 1), and date of submission. You must submit the
solutions using the “Digital Drop box” at the class web site1 as a winzip/tar file. The file must be
given a name of the following form: LAST_FIRST_hw1.zip or LAST_FIRST_hw1.tar where LAST is
your last or family) name and FIRST is your first or given) name. For example, student Jane Doe
would submit the file doe_jane_hw1.zip or doe_jane_hw1.tar. Make only one submission. Paper and
email submissions will not be accepted. All work must be submitted by the announced due date/time.
Questions
Use the Homework 1 forum in the Discussion Board area of the class web site to ask questions about
this assignment. Do not post questions that contain specific information about the solution.
Honor Code
As stated in the syllabus, in working on problem sets, discussion and cooperative learning are
allowed. However, copying or otherwise using another person’s detailed solutions to assigned
problems is an honor code violation. See syllabus for details.
1 The class web site is accessed at http://www.learn.vt.edu/.
pf3
pf4

Partial preview of the text

Download Applied Software Design - Homework 1 Solutions | ECE 3574 and more Assignments Software Engineering in PDF only on Docsity!

Virginia Tech Bradley Department of Electrical and Computer Engineering ECE 3574: Applied Software Engineering  Fall 2007

Homework Problem Set 1 Solutions

Submission Details

The solutions for this problem set must be submitted as an electronic submission. Your submission will ideally be a zip/tar file containing the document file that contains the answers to the questions, and the relevant source files for the programming questions. Your programs will be run to evaluate their correctness, and the source code will be reviewed to evaluate your object oriented design, and your usage of comments. The following information must be included at the top of the first page of your document: your full name, your student ID number, your email address, class (ECE 3574), title of the assignment (Homework Problem Set 1), and date of submission. You must submit the solutions using the “Digital Drop box” at the class web site 1 as a winzip/tar file. The file must be given a name of the following form: LAST _ FIRST _hw1.zip or LAST _ FIRST _hw1.tar where LAST is your last or family) name and FIRST is your first or given) name. For example, student Jane Doe would submit the file doe_jane_hw1.zip or doe_jane_hw1.tar. Make only one submission. Paper and email submissions will not be accepted. All work must be submitted by the announced due date/time.

Questions Use the Homework 1 forum in the Discussion Board area of the class web site to ask questions about this assignment. Do not post questions that contain specific information about the solution.

Honor Code As stated in the syllabus, in working on problem sets, discussion and cooperative learning are allowed. However, copying or otherwise using another person’s detailed solutions to assigned problems is an honor code violation. See syllabus for details.

(^1) The class web site is accessed at http://www.learn.vt.edu/.

Exercise 1 [40 points]

  1. You are in charge of automating a large bakery. The cost of developing the software is estimated to be $425,000. Approximately, how much additional money will be needed for postdelivery maintenance of this software?

Postdelivery maintenance will cost about 3 times as much as the original development, that is, about $1,275,000.

  1. You are a vice-admiral in the Velorian Navy. It has been decided to call in a software development organization to develop the control software for a new generation of ship-to-ship missiles. You are in charge of supervising the project (i.e., you are the client). What clauses do you include in the contract with the software developers?

Acceptance criteria must be stipulated in the contract, as must a full list of deliverables. Clauses should include: software shall meet specifications, be delivered on time, within budget; all faults shall be corrected at no further charge for a period of one year, say, after acceptance of product; documentation shall be full and complete, and shall include source code, specifications, design, and operating instructions; training shall be provided (stipulate type and duration). Terms of the maintenance contract should be included. You might try to include a clause holding the developer responsible for damages caused by faults in the software.

  1. You are a software engineer whose job is to supervise the development of the software in Problem 2 (above). List ways your company can fail to satisfy the contract with Navy, and the probable causes of such failures.

Late delivery: Underestimation of size of product; failure to obtain complete and accurate requirements; poor planning; failure to specify the product correctly; poor management techniques; failure to detect faults early in the life cycle; ineffective or badly trained personnel; poor quality testing; personnel turnover; poor documentation of the development process; poor communication between members of the development team; continual hardware and/or system software failures.

Project over budget: All of the above, plus unexpected price increases for hardware, programming tools, and so on.

Product does not meet specifications: All of the above, plus poor quality specifications; poor testing; poor quality assurance.

Operational faults, such as injuries to sailors firing the missiles: Poor testing, and hence residual faults; poor quality documentation.

Inadequate documentation: Badly trained personnel; poor management.

  1. Seven-months after delivery, a fault is detected in the software of a product that analyses DNA. (This software is similar to typical system software such as that of IBM AS/400). The cost of fixing the fault is $16, 700. The cause of the fault is an ambiguous sentence in the specification document. Approximately, how much would it cost to correct the fault during the analysis phase?

the classical paradigm.

However, if the developers have a comfortable understanding of the object-oriented paradigm, it should be utilized. Using the object-oriented paradigm should result in a product that is easier and quicker to develop, has fewer faults, and is easier to maintain.

  1. Instead of implementing component c9 of a software product, the developers decide to buy a COTS component with the same specifications as component c9. What are the advantages and disadvantages of this approach?

Advantages include: Component c9 does not need to be designed, coded, documented, or unit tested (it certainly needs to be integration tested). In addition, if the component has been widely used in other products, it is unlikely (but not impossible) that there will be residual faults. In general, it is cheaper to buy a COTS component than build the same component from scratch.

Disadvantages include: The source code of a COTS component is almost never supplied; this may make maintenance of component c9 impossible. The COTS package may not have precisely the same functionality as component c.

  1. Instead of implementing component c37 of a software product, the developers decide to use an open-source component with the same specifications as component c37. What are the advantages and disadvantages of this approach?

Advantages include: Open-source components are free. Component c37 does not need to be designed, coded, or unit tested (it certainly needs to be integration tested, and it probably will need to be documented). The developer has the source code, so maintenance of component c37 can be performed.

Disadvantages include: The quality of an open-source component can vary from truly superb to utterly abysmal. The open-source package may not have precisely the same functionality as component c37. [There can also be certain legal implications, depending on the specific open source license under which component c37 was supplied.]