CarranoChap1 - The Software System Life Cycle Specification...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
 Carrano -   CS 150 11 The Software System Life Cycle Specification Clearly state the purpose of the software, including full details of the problem being solved. Design Develop a solution to the problem, modularizing it and determining specific pre- and post-conditions. Risk Analysis Determine the risks associated with the project, e.g., time, health, ethics, economics, and training. Verification Prove the validity of the solution’s algorithms, using such tools as loop invariants. Coding Program the modules using a bottom- up approach (with dummy drivers) or a top-down approach (with stubs). Testing Design test scenarios for individual modules, interaction between modules, and the entire system. Refinement Improve the algorithms used in the solution and eliminate any unrealistic simplifying assumptions. Production Distribute, install and use the system. Maintenance Respond to “bugs” and “sugs”, and determine when the system has become obsolete. DOCUMENTATION!!!
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
 Carrano -   CS 150 22 Specification Example Produce a program which will: Request four values from the user, representing the popularity of the four stooges (Moe, Larry, Curly, and Shemp), based upon a recent survey. Compute the percentage popularity for each stooge. Display the result in a pie chart composed of ASCII characters, with a different character used for each stooge. Display a character legend indicating which character is associated with which stooge. For example, this input: should produce this output: and this legend: Moe total: 1659 Larry total: 2108 Curly total: 6797 Shemp total: 1840 : \\\:::: \\\\::::: O\\\\::::## OOO\\:::### OOOO\::#### OOOOOO:###### OOOOOOOO### OOOOOOOOOOO OOOOOOOOOOO OOOOOOOOO OOOOOOO O : - Moe: 13.375% # - Larry: 16.995% O - Curly: 54.797% \ - Shemp: 14.834%
Background image of page 2
 Carrano -   CS 150 33 Design Example main Module Supervises user input, percentage calculations, and output of pie chart and symbol legend. Precondition: None. Postcondition: Execution window contains pie chart of user-specified values, as well as legend. queryUser Module Asks user for popularity survey results for the four stooges. Precondition: Integer parameters containing survey totals for Moe, Larry, Curly, Shemp, and all stooges are uninitialized. Postcondition: Moe, Larry, Curly, and Shemp totals have user-specified values; total for all stooges contains four-stooge total. calculate Module Calculates the popularity percentage and pie-chart angle for a designated stooge. Precondition: Integer parameter containing survey total for one stooge is initialized; double parameters for the stooge’s percentage and angle are uninitialized. Postcondition: Double parameters for the stooge’s percentage and angle are calculated. outputPie Module Outputs the pie chart for the four stooges’ survey results. Precondition: Double parameters for each stooge’s percentage and angle are initialized.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 32

CarranoChap1 - The Software System Life Cycle Specification...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online