|
Post by OasisNZ on Jul 16, 2007 19:25:45 GMT 12
In Visual Basic today, it opened a DOS box and displayed "Hello World!" and "Goodbye!", on SEPARATE LINES, woohooooooo, LOL, look out Bill Gates, here I come!!! ;D
|
|
|
Post by ladypenelope on Jul 16, 2007 19:30:48 GMT 12
Well done you!!! All that hard work is paying off ;D
|
|
|
Post by OasisNZ on Jul 16, 2007 19:41:43 GMT 12
Hehe, it wasn't exactly rocket science, but we are getting there! ;D
|
|
|
Post by ladeda on Jul 16, 2007 20:01:21 GMT 12
YAY ;D I wonder if it is like the old "Basic" from a hundred years ago... The first algorthm/program I ever wrote was a simple sort. You enter x many numbers and it will sort them into ascending or descending order. Harder then it seems...
|
|
|
Post by OasisNZ on Jul 16, 2007 20:09:35 GMT 12
No way, it's a GUI now, haha! And we touched on algorithm's as well, I was first in our group to note that one would fail between point 3 and 4, one must enter ones pin before pushing withdraw cash... Ever tried to write one for tying a shoelace, LOL, we had to try...
|
|
|
Post by OasisNZ on Jul 16, 2007 20:11:15 GMT 12
GUI = Graphical User Interface, for the non-nerds amongst us...
|
|
|
Post by meandog on Jul 16, 2007 20:21:32 GMT 12
Well heres a non nerd that has a query. My Firefox tells me quote 'Firefox can't connect securely to addons.mozilla.org because the SSL protocol has been disabled' Is this Firefox problem or do I have to sort it??? Pleeeese!
|
|
|
Post by ladeda on Jul 16, 2007 20:23:11 GMT 12
A GUI? I don't know what a GUI is even with you explaining it. Does that mean the sort is there for you to use?
Try writing an algorithm for a sort anyway - it's challenging and fun.
The problem with an algorithm for tying a shoelace is that a computer cannot tie a shoelace so you cannot convert the algorithm into a programming language. I like to be able to script it...
|
|
|
Post by OasisNZ on Jul 16, 2007 20:30:07 GMT 12
A GUI, like it's not just a text editor, it's graphical, and it does stuff like finishes off sentences for you, and in some cases automatically corrects errors, or at the very least tells you there is one as you go... ;D I tell you, you early geeks set the platform, it's been taken to another level now...
|
|
|
Post by OasisNZ on Jul 16, 2007 20:34:02 GMT 12
Well heres a non nerd that has a query. My Firefox tells me quote 'Firefox can't connect securely to addons.mozilla.org because the SSL protocol has been disabled' Is this Firefox problem or do I have to sort it??? Pleeeese! Not sure Capt., are you having to use IE instead, or can you still post? Is this an error box that comes up, or is that what the window displays?
|
|
|
Post by meandog on Jul 16, 2007 20:36:57 GMT 12
I can still use Firefox its just a window that appears in the middle of my monitor, with a o.k. button to click on. All seems to be working, just if I want the addon feature its not there.
|
|
|
Post by OasisNZ on Jul 16, 2007 20:47:17 GMT 12
Sounds like it's trying to update, and you have a setting that is not letting it, I think there is a forum at www.firefox.com, and I'll email someone that may know for you, or hopefully someone here might know...
|
|
|
Post by meandog on Jul 16, 2007 20:55:51 GMT 12
Good one thanks for that.
|
|
|
Post by ladeda on Jul 16, 2007 21:10:30 GMT 12
I can't remember my first sort algorithm but have tried to work it out again... 10 random numbers are identified by parameters a,b,c,d,e,f,g,h,i,j An empty array of values identified as parameters 1,2,3,4,5,6,7,8,9,10 If b>a then 1=a, 2=b else 1=b, 2=a If c>2 then 3=c else if c>1 then 3=2, 2=c else 3=2, 2=1, 1=c If d>3 then 4=d else if d>2 then 4=3, 3=d else if d>1 then 4=3, 3=2, 2=d else 4=3, 3=2, 2=1, 1=d and so on... To make it more elegant, now that there are four numbers in the array, compare the next number to number 2 so that it can start in the middle and work to the front or the back of the list. In a real computer program the numbers will be listed by position (1,a) (2,b) (3,c) etc. Then you can make an equation like repeat(position = (position+1),a) or..... values are put on a stack (like a stack of plates) and the last on is always the first off. A good place to put values while you juggle others around. At the end, display the values represented by the numbers 1,2,3,4,5,6,7,8,9,10 and they will be in ascending order. This is the sort of programming I LOVE!!! edit = debugging - going over your algorithm with a fine tooth comb to find the mistakes...
|
|
|
Post by ladeda on Jul 16, 2007 21:20:18 GMT 12
Sorry Meandog, I may sound like a nerd but I know nothing about computers or Firefox. Computer programming is an ancient art form that arrived before Windows and Firefox and Internet Explorer...
|
|
|
Post by OasisNZ on Jul 18, 2007 18:41:36 GMT 12
Wrote another couple of simple programs today, can anyone tell me what this one does?...
Module Module1
Sub Main() Dim num1, result As Double System.Console.Write("Enter Celcius ") num1 = System.Console.ReadLine() result = num1 * 9 / 5 + 32 System.Console.WriteLine("Answer is " & result) System.Console.Read()
End Sub
End Module
|
|
|
Post by ladeda on Jul 18, 2007 18:51:15 GMT 12
Enter a temperature in degrees Celsius and converts it to Faranheit?
|
|
|
Post by OasisNZ on Jul 18, 2007 19:38:14 GMT 12
Correct, would you like some Jam or Plumb Whine!
|
|
|
Post by OasisNZ on Jul 18, 2007 20:06:29 GMT 12
This one?
Module Module1
Sub Main() Dim num1, num2, result As Double System.Console.Write("Enter first number ") num1 = System.Console.ReadLine() System.Console.Write("Enter second number ") num2 = System.Console.ReadLine() result = num1 * num2 System.Console.WriteLine("Answer is " & result) result = num1 / num2 System.Console.WriteLine("Answer is " & result) result = num1 - num2 System.Console.WriteLine("Answer is " & result) result = num1 + num2 System.Console.WriteLine("Answer is " & result) System.Console.Read() End Sub
End Module
|
|
|
Post by ladeda on Jul 18, 2007 21:03:53 GMT 12
Entering two numbers and performing different equations between them and then displaying the answers. axb, a/b, a-b, a+b
|
|