Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a VB Expert!

Join 244,274 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,166 people online right now. Registration is fast and FREE... Join Now!




need help on pseudocode

 
Reply to this topicStart new topic

need help on pseudocode, v-basic pseudocode

Tjay1
6 Oct, 2008 - 07:03 PM
Post #1

New D.I.C Head
*

Joined: 6 Oct, 2008
Posts: 4

Hello, im new to the whold vb programming thing. Well to say the least i dont know jack and wish to learn. Its just im really not getting this stuff at all ( well most )...... right now im doing an exercise that assumes you have created a mechanical robot that can perform the following tasks: stand up, sit down, turn left 90 degrees,turn right 90 degrees, and take a step....i know this is very basic but im really not grasping this, any help would be much appreciated...................thanks, its just pseudocode

This post has been edited by Tjay1: 6 Oct, 2008 - 07:04 PM

User is offlineProfile CardPM
+Quote Post


Tjay1
RE: Need Help On Pseudocode
6 Oct, 2008 - 07:49 PM
Post #2

New D.I.C Head
*

Joined: 6 Oct, 2008
Posts: 4

Place two chairs 20 feet apart, directly facing each other. Draw a structured flowchart or write pseudocode describing the logic that would allow the robot to start from a sitting position in one chair,cross the room, and end up sitting in the other chair.........i have no clue, what can i say im new at this and slightly confused. But i can tell once i grasp this i will be well on my way...........any help would be appreciated
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Need Help On Pseudocode
6 Oct, 2008 - 08:03 PM
Post #3

loves.Coding(this);
Group Icon

Joined: 26 Jul, 2007
Posts: 12,283



Thanked: 372 times
Dream Kudos: 10775
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

My Contributions
Please dont create duplicate topics, that only creates clutter and confusion (confusion because others then don't know which thread to respond to). Topics merged smile.gif
User is offlineProfile CardPM
+Quote Post

Tjay1
RE: Need Help On Pseudocode
6 Oct, 2008 - 08:08 PM
Post #4

New D.I.C Head
*

Joined: 6 Oct, 2008
Posts: 4

I actually had 2 different problems i was trying to get help with, they are not the same in any way
QUOTE(PsychoCoder @ 6 Oct, 2008 - 09:03 PM) *

Please dont create duplicate topics, that only creates clutter and confusion (confusion because others then don't know which thread to respond to). Topics merged smile.gif


User is offlineProfile CardPM
+Quote Post

Tjay1
RE: Need Help On Pseudocode
6 Oct, 2008 - 08:56 PM
Post #5

New D.I.C Head
*

Joined: 6 Oct, 2008
Posts: 4

I see the before you post ad above, well i cant give you a code because i dont have nor even kknow how to begin to write it. And the post were for two seperate problems that happen to look similiar....idk nobody on any other forum has been able to help me out and its getting very frustrating
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Need Help On Pseudocode
6 Oct, 2008 - 08:58 PM
Post #6

Unix Ronin
Group Icon

Joined: 10 May, 2007
Posts: 10,438



Thanked: 198 times
Dream Kudos: 2725
Expert In: Goofing Off

My Contributions
QUOTE(Tjay1 @ 7 Oct, 2008 - 12:56 AM) *

... and its getting very frustrating

I understand your frustrations. But please have patience. It's almost 1: am EST on a Monday evening. A lot of people are in bed. It's not uncommon for questions to go 24 hours without an answer. Someone will be able to help you, but you must understand & have patience.

Thank you.
User is offlineProfile CardPM
+Quote Post

ragingben
RE: Need Help On Pseudocode
7 Oct, 2008 - 06:05 AM
Post #7

D.I.C Head
Group Icon

Joined: 7 Oct, 2008
Posts: 116



Thanked: 8 times
Dream Kudos: 100
My Contributions
Hey, hope I can help a bit.

Ok I'm not sure quite what you want so bear with me...

Oh, a quick note pseudo code - although there are "set" ways of doing this, at this level just try to write something that clarifies the problem to you, and helps you get it straight in your head. I find it best to write each line in pseudo/semi-pseudo code and then underneath fill in the real code, for example:

CODE

'display message in a message box
MsgBox.Show "Hello"

'read input from text box
input = txtText.Text


etc etc etc.

For your problem, just try to think of it at the most basic level. An example you always come across is how to boil a kettle, which if you break down is quite a big task (check kettle, unplug kettle, lift lid, put under tap, turn tap on, wait for level to rise, turn tap off etc) that if you were writing a program for would require a lot of code, but each step would be vitally important to break down and include.

So if you wanted robot (lets call him Jonny5 smile.gif) to sit you would have to think of all sorts, move Jonny5 to chair, check chair is empty, turn Jonny5 180 facing away from chair, bend Jonny5 knees and keep lowering bum until contact with chair. The thing that you need to know however is to what detail do you need to go into at a pseudo code level - are you just defining functions (walk, check, lower) or are you wanting to refine these to sub routines (walk - left leg up, left leg foward, left leg down, right leg up, right leg foward, right leg down), or do you want to get right down to a low level (leg up - prime stepper motors, reduce pnumatic vacuum, stepper motors on, raise leg 50 units, stepper motors off, increase pnumatic vacuum). I would suggest somewhere in the middle. I program robotics on medical machines and I usually use pseudo code to give me an idea of how a function will work, without getting o into the nitty gritty of it all (unless the problem was really hard).

Hope some of that makes sense!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 01:35PM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month