PDA

View Full Version : structured diagram



yingxuan
06-03-2004, 04:15 PM
Does anybody here know how to read structure diagrams?Im having a bit of trouble.!!If someone knows how to plse give me a reply and i'll post the diagram up.I needa understand this and i cant find it anywhere that can teach me how to read the diagrams

godfather
06-03-2004, 04:55 PM
"Structure Diagram" could mean the plans for a house, a detailed assembly plan for a car or other piece of machinery, on Organogram for a company structure, and 1,000 other things.

You will need to describe what the diagram is purporting to be a "structure" of, to get meaningful help.

yingxuan
06-03-2004, 04:58 PM
--------------------------
|
|
--------------------------------------------------------------------------------------
| | | |
count=0 input word repeat L=1 to length (word) output
| content
|
------------------------------------------------
| |
letter =Lth letter in word if letter="x"
|
count= count +1

Does anybody know what this diagram is trying to show?Please help!

yingxuan
06-03-2004, 04:59 PM
ahh it didn't come out right

yingxuan
06-03-2004, 05:01 PM
count = 0 input word repeat L=1 to length output content


Bottum of repeat L=1 to length (word) says Lth letter in word
Bottum of repeat L=1 to length (word) says if letter = 'x'

Bottum of if letter ="x' says count = count +1

yingxuan
06-03-2004, 05:08 PM
This is a flow chart structure diagram

The first rectangle has a line inside the middle of it and doesn't say anything

The 2nd line that links from the first rectange shows 4 boxes
1st box is a square says count =0
2nd box is a parellelogram and it says input word
3rd box is a oval circle says repeat L= 1 to length(word)
4th box is a parellelogram says output count


The 3rd line is linked to the 3rd box on the 2nd line and is split into two boxes
The 1st box is a rectangle says letter=Lth letter in word
2nd box is a diamond which says if letter ="x"

The 4th line is linked the the 3rd line of the diamond box and it says count= count +1

beama
06-03-2004, 05:28 PM
pp100 I remember this

This is a flow chart structure diagram


> The first rectangle has a line inside the middle of
> it and doesn't say anything

the start point

> The 2nd line that links from the first rectange shows
> 4 boxes
> 1st box is a square says count =0

set the counter to 0

> 2nd box is a parellelogram and it says input word
program asks for input from user

> 3rd box is a oval circle says repeat L= 1 to
> length(word)
a loop cntrol

> 4th box is a parellelogram says output count
output to a device ie screen or printer

>
> The 3rd line is linked to the 3rd box on the 2nd line
> and is split into two boxes
> The 1st box is a rectangle says letter=Lth letter in
> word
not sure about this one

> 2nd box is a diamond which says if letter ="x"
conditional statement ie if letter = x then end(letter I world guess is a program varable)

>
> The 4th line is linked the the 3rd line of the
> diamond box and it says count= count +1
increaments counter by (1 increase count)

yingxuan
06-03-2004, 05:34 PM
thanks for that.im doing pd500.Really stuck on this chart!

yingxuan
06-03-2004, 05:39 PM
anyone else know what this chart says?

beama
06-03-2004, 05:44 PM
program principals pp
program devlopment pd
sounds like you are doing the degree
good on you and study hard its worth it

beama
06-03-2004, 08:31 PM
bump
I think the output from this structure diagram if coded would be the total count of the characters inputted and yes I draw it out and desk checked the syntax of the language used looks like its structured for C based language

yingxuan
07-03-2004, 04:00 AM
I was suspecting that this diagram is to do with typing a word or something.Am i right?

godfather
07-03-2004, 05:12 AM
It seems that it counts and displays the number of characters in a word.

On that basis follow through each step in the diagram to confirm this.

Fire-and-Ice
07-03-2004, 10:25 PM
Do your lecturers know that most of your homework/assignments are being done by the people on this site? ;-)

beama
07-03-2004, 11:18 PM
and I failed this module :D ;\


teasing

yingxuan
08-03-2004, 03:25 AM
eh...lol.He hasn't actually taught us the diagram yet.I was wondering where i can find the answers.I couldnt find any from the books so...Umm yeah thanks!I actually still need to right what it is about !!!beama didn't give me the total answer!!!;)

Scouse
08-03-2004, 08:55 AM
Do your lecturers know that most of your homework/assignments are being done by the people on this site Yes I do and am watching with interest.