• YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page

Documentation question (1 Viewer)

Seraph

Now You've done it.......
Joined
Sep 26, 2003
Messages
897
Gender
Male
HSC
N/A
Hey ppl i have a question ..

Is Intristic and Internal Documentation the same thing? they dont even have the word Intristic in my textbook and im just curious

Because if i rememeber correctly isnt Intristic JUST the meaningful varialbe names

where as Internal documentation includes comments and remarks as well as Intristic documentation?
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
Yes that's it Internal is comments, whereby Intrinsic is meaningful variables, and good indentation of code, and the way code is structured to be really pleasing to read.
 

jason120au

Member
Joined
Nov 26, 2003
Messages
42
Gender
Male
HSC
2004
For example below is good intrensic documentation

Begin 'module works the GST of the amount entered'
get amount
Index = index +1
While Index > 0 Then
amount = amount * 0.10
End While
Display amount

Bad documentation

Begin get amount index = 0 While Index > 0 Then amount = amount * 0.10 End While Display Amount
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
Originally posted by jason120au
For example below is good intrensic documentation

Begin 'module works the GST of the amount entered'
get amount
Index = index +1
While Index > 0 Then
amount = amount * 0.10
End While
Display amount

Bad documentation

Begin get amount index = 0 While Index > 0 Then amount = amount * 0.10 End While Display Amount

lol not really bad indenting there mate, and you should make the core keywords in capitals or bold

Code:
[B] BEGIN[/B] GSTModule

[B] GET[/B] amount
 Index = Index + 1

      [B]WHILE[/B] Index > 0 

             amount = amount * 0.10

      [B]END WHILE [/B]

[B] PRINT [/B]amount

[B] END [/B]GSTModule
 
Last edited:

jason120au

Member
Joined
Nov 26, 2003
Messages
42
Gender
Male
HSC
2004
yeah yeah yeah, I haven't done algorithms for close to 6 months
 

Seraph

Now You've done it.......
Joined
Sep 26, 2003
Messages
897
Gender
Male
HSC
N/A
okay , thank you !!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top