Hi all! (if this is not the correct forum to post my question please move it to the appropriate one)
I have an assignment which requires writing a pseducode from a statement writting in English. Man! this psuedocode thing is really difficult to write . Easy to follow if you are writing a code from it though!
My problem is that the statement is completely unrelated to algorithm. It's to write a program - web apllication actually.
I hope you could answer my questions below.
Let's assume I'm asked to write the following pseudocode for a simple courses files search website (completely unrelated to my assignment, in fact my assignment is more comlicated)
After a member is logged in, the system will ask him to enter the course ID and the name of the course he want to search in the website. The member could skip this step and click search and the system will display all courses files.
How am I exactly going to write this? how exactly I write that there is 2 parameters should be entered by the member? or just click the search button? My try is below and I'm sure it's compltely incorrect.
If member is_Loggedin system DISPLAY search_box member ENTERES course_id AND course_name IF system FOUND (entered parameters)/(required course_id AND course_name) system list course files ELSE system prompts error entered course is not found ENDIF ELSE system list all courses files ENDIF ELSE system prompts for login information ENDIF
Please guid me thru what keywords should be used instead of what I used above in my attempt. Please remember my assignment is irrevelent to this example. It asks for login and many parameters to be entered so I made up a fast example which asks for the same stuff my assignment asks.