Quantcast

Maximum PC

It is currently Mon Dec 22, 2014 7:21 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: algorithm
PostPosted: Sat Feb 28, 2009 10:43 am 
8086
8086

Joined: Thu Sep 15, 2005 7:29 am
Posts: 66
hello:

i have this exercise to make it work in visual basic:

make a program in visual basic where the user type 2 numbers that must be show upward and downward using if..else.

my analysis was this:

if num1<=num2 then
listbox.items.add (num1 & " " & num2)
else
listbox.items.add (num2& "" & num1)

this is right?

thank you


Top
  Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2009 12:51 pm 
SON OF A GUN
SON OF A GUN
User avatar

Joined: Mon Nov 01, 2004 5:41 am
Posts: 11605
The problem doesn't make sense to me. What exactly are you supposed to do?


Top
  Profile  
 
 Post subject: algorithm 2
PostPosted: Sat Feb 28, 2009 1:58 pm 
8086
8086

Joined: Thu Sep 15, 2005 7:29 am
Posts: 66
sory i was in an hurry writing the problem, the problem is this:

any user is going to enter in the screen 2 numbers for example: 2 and 3 when the user make an click in the botton RUN the program must display the answer of both numbers in this way: upward and downward

thanks


Top
  Profile  
 
 Post subject: Re: algorithm 2
PostPosted: Sat Feb 28, 2009 2:28 pm 
Northwood
Northwood
User avatar

Joined: Tue Apr 10, 2007 3:08 pm
Posts: 2429
aglayo wrote:
sory i was in an hurry writing the problem, the problem is this:

any user is going to enter in the screen 2 numbers for example: 2 and 3 when the user make an click in the botton RUN the program must display the answer of both numbers in this way: upward and downward

thanks


Answer? Up and down? Like addition and subtraction? multiplication?


Top
  Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2009 2:45 pm 
Little Foot
Little Foot
User avatar

Joined: Mon Jul 28, 2008 1:39 pm
Posts: 123
I think he means sorted in ascending and descending order.


Top
  Profile  
 
 Post subject: algorithm 3
PostPosted: Sat Feb 28, 2009 3:39 pm 
8086
8086

Joined: Thu Sep 15, 2005 7:29 am
Posts: 66
hello:

Quertior say:
" i think he means sorted in ascending and descending order "

this is what the problem that i need do, sorry but sometimes my writing is bad


Top
  Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2009 3:53 pm 
SON OF A GUN
SON OF A GUN
User avatar

Joined: Mon Nov 01, 2004 5:41 am
Posts: 11605
http://www.google.com/search?q=sorting+numbers+%2B+vb


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.