Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,616 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 990 people online right now. Registration is fast and FREE... Join Now!




help....my assignment..help me 2 write pseudocode

 
Reply to this topicStart new topic

help....my assignment..help me 2 write pseudocode, help~

mur_ckk0804
post 28 Apr, 2006 - 05:20 AM
Post #1


New D.I.C Head

*
Joined: 28 Apr, 2006
Posts: 2


My Contributions


actuallyim not very good in programming....i jz receive a code frm my clzmate..n my task is hv 2 convert it into pseudocode...any1 here can help me?pls...


Attached File(s)
Attached File  ECP1026_assignment.doc ( 47.5k ) Number of downloads: 173
User is offlineProfile CardPM

Go to the top of the page

Israel
post 28 Apr, 2006 - 07:51 AM
Post #2


D.I.C Addict

Group Icon
Joined: 21 Nov, 2004
Posts: 604



Dream Kudos: 175
My Contributions


Ok, I got this definition of pseudocode from webopedia Apparenly your just being asked to explain the code/what it's doing, in normal english. Which will probably hard if you don't understand what your looking at. I'll give you a hint though, if you don't already know this, I believe the code your looking at is C++, could be C though... Here's a good place to start though:

Cprogramming
User is offlineProfile CardPM

Go to the top of the page

mur_ckk0804
post 29 Apr, 2006 - 07:58 AM
Post #3


New D.I.C Head

*
Joined: 28 Apr, 2006
Posts: 2


My Contributions


ya...i know..but i really cant understand some of d code...i really dounou how 2 start it..
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 29 Apr, 2006 - 12:12 PM
Post #4


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,176



Thanked 33 times

Dream Kudos: 25
My Contributions


You should start by writing the pseudocode for the portions you do know...for example, you can take a simple one like:
CODE

void initStack(STACK *stack)
{
    stack->top = -1;
}

The pseudocode for this function is pretty straightforward...it is performing only one action...the pseudocode is
CODE

SET value of STACK member top to -1

See what I mean? Perhpas you could specify the portions you are having trouble with.
User is offlineProfile CardPM

Go to the top of the page

ziburgos27
post 23 Aug, 2008 - 11:58 AM
Post #5


New D.I.C Head

*
Joined: 23 Aug, 2008
Posts: 5

crazy.gif Hi I am Ivette I just started to study web desing after a 25 year career as a paramedic I am having fun in class but this current class I am taking is quite difficult I am here seeking help.
User is offlineProfile CardPM

Go to the top of the page

KeyWiz
post 24 Aug, 2008 - 01:42 PM
Post #6


D.I.C Regular

Group Icon
Joined: 26 Oct, 2006
Posts: 428



Dream Kudos: 125
My Contributions


QUOTE(ziburgos27 @ 23 Aug, 2008 - 12:58 PM) *

crazy.gif Hi I am Ivette I just started to study web desing after a 25 year career as a paramedic I am having fun in class but this current class I am taking is quite difficult I am here seeking help.


The best way to get help here is to start your own NEW thread, then state exactly what you are working on and show how far you have gotten, then we will assist you with any errors or mis-conceptions.


TO THE THREAD STARTER.
Psuedo - Code comes before the writing of code, and is a simple list of what you are trying to build a program to do.
For example, If I wanted to write a checkbook program, I would begin with PsuedoCode such as this

Check database for current value in account
Store value in AccountTotal
check for new deposit
input new deposit and add value to AccountTotal
return to check for new deposit
if no new deposit then
check for new check
input new check number and subtract value from AccountTotal
return to check for new check
if no new check then
check for cash withdrawl
input cash withdrawl and subtract from AccountTotal
return to check for cash withdrawl
if no new cashwithdrawl then
display AccountTotal
record AccountTotal to database
End


Simple psudeo just means stating the step need to write a program, from this it becomes easy to write code in any programming language, simply by converting each step into appropriate code blocks.

Starting from someone else's finnished code will not always provide a true psuedo-code layout

Don't think about programming, think about how YOU would accomplish the desired task and simply break it down into single seperate steps.

User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 03:06AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month