Free Tutorials, Linux Command, Source Code Architecture,  Software Engineering, Intelligent Systems, RDBMS, Computer Accounting,  Operations Research, Discrete Mathematics, Network, SAD Lay Networks Lay Networks
Computer Science Networking Operating Systems Linux and Unix Source Code Script & Languages Protocols Glossary
 


 TMA 2001

Question 2:

Develop a Procedural Design for a program that accepts an arbitrarily long text as input and produces a list of words and their frequency of occurrence as output.

Answer

The procedural design converts structural components into a procedural description of the software

Structured programming

- Structured Control Flow Chart

Flow charts do not guide the designer towards a structured design the way box diagrams do. To enable the flow chart to be applied to achieve a structured procedural design, we limit ourselves to creating flow charts using only the structured chart constructs (i.e., sequence, selection, repetition up to).
We have three constructs in structured programming:

-Sequence

-Selection

-Repetition.

The flow of control is always from top to bottom only. Each construct has a predictable logical structure, and is entered at the top and exited at the bottom.

Arbitrarily long text as input

PROCESS

Input – Text Process- Two arrays out of which one contains words by splitting whole text and at the end of the text another loop goes to make another array which indicates frequency of occurrence as output.

Frequency of Occurrence

Frequency of Occurrence

Program design language (PDL)

The Graphical Notation:

The appropriate development of a knowledge representation (based on the cognitive processing of experts) that can deal with concepts and facts relating to the represented diagram, the graphical notation of the diagram, emergent properties arising from the construction of the global units, the relationships between the perceived concept of the diagram and the facts inferred from the graphical notation.

For software following notations are used to represent the program/logic.

Assignment of variable

Condition Operator:

Socket Operator

Connector Operator

The annotation Operator

The sequential operator

The parallel operator



Back
Next
free computer articles
 

Copyright © 2000- 2008 Lay Networks All rights reserved. 

Web Hosting sponsored by Customized Software Company India
Web Site Designed by Web Designing, Flash Animation, Multimedia Presentations, Broacher/catalogue designing, Web Promotion 
Refer to your freind About Us Legal IGNOU Contact Us Feedback Donate to laynetworks.com Download Management Tutorials Tutorials History Search here