• Best of luck to the class of 2024 for their HSC exams. You got this!
    Let us know your thoughts on the HSC exams here
  • YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page
MedVision ad

Pseudoecode (1 Viewer)

sikeveo

back after sem2
Joined
Feb 22, 2004
Messages
1,794
Location
North Shore
Gender
Male
HSC
2005
Just writing up some now and wondering if say we have this code:

Private Sub cmdClose_Click()
frmend.Show 1, frmMain
End Sub

Would the pseudocode just be

Private Sub cmdClose_Click()
Show Form End
End Sub

?
 

funniboi

Active Member
Joined
Jun 18, 2004
Messages
1,224
Gender
Male
HSC
2004
i dont thikn in pseudocode you need to add the private sub and _click() and stuff in it..


well i was never told i had to when i did sdd back in high school.

im not sure on this tho. so yeah. sorry i couldn't really help much.
 
Joined
Nov 4, 2004
Messages
3,550
Location
Sydney
Gender
Male
HSC
2005
probably just like

BEGIN cmdClose
Show Form "End"
END cmdClose

seems bit short for pseudocode though? whats it for
 

sikeveo

back after sem2
Joined
Feb 22, 2004
Messages
1,794
Location
North Shore
Gender
Male
HSC
2005
Yep thanks. Just a small section of my major. What about this section?

Private Sub lstguest_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
lstindex.ListIndex = lstguest.ListIndex
GetPeople lstindex.Text
End If
End Sub

Private Sub Form_Load()
FillLists lstguest, True
FillLists lstindex, False
lstindex.ListIndex = lstguest.ListIndex
End Sub

I have no idea. Problem is, I didn't write it, my group member did, but I have to pseudo it :(
 
Joined
Nov 4, 2004
Messages
3,550
Location
Sydney
Gender
Male
HSC
2005
I didn't write it either, its relatively easy to figure out, you assign things like you would in english, briefly but accurately explain what something is doing, for example

Filllists lstguest, true

FillLists.lstguest = true

( got no idea if its attached but you know what i mean )
 
Joined
Nov 4, 2004
Messages
3,550
Location
Sydney
Gender
Male
HSC
2005
BEGIN lstGuest (Button, Shift, X, Y)
IF Button = 1 THEN
lstindex.ListIndex = lstguest.ListIndex
GetPeople lstindex.Text
ENDIF
END lstGuest

BEGIN Mainprogram
FillLists & lstguest = True
FillLists 7 lstindex = False
lstindex.ListIndex = lstguest.ListIndex
END Mainprogram

I thought that big 2 page thread argument meant you knew how to covert VB into pseudocode (which is almost identical)
 

sikeveo

back after sem2
Joined
Feb 22, 2004
Messages
1,794
Location
North Shore
Gender
Male
HSC
2005
My teacher has put this in here marking rubric :

• Algorithms. Main Driver and modules. Inclusion of search & sort algorithms.

However our program uses the sorting and searching from sql and the access db, so we can't psuedocode it as its not simply part of our processing, its automated and integrated into the db function. But she said she wants inclusion of search and sort algorithms. What do you suggest I do?
 
Joined
Nov 4, 2004
Messages
3,550
Location
Sydney
Gender
Male
HSC
2005
just make a standard algorithm on the search and sorting, if you feel thats not enough, go research the basics of how SQL Searches, it probably has a certain standard method
 

Protector

a little unsane
Joined
Nov 20, 2003
Messages
174
Location
Sydney
Gender
Male
HSC
2006
Hate to post on something a month old, but it needs to be said...

Modules are loaded. A sub program or a form is a module... so it would be brought to life with something such as
CALL End

Just a thought.
 

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

Top