
-----------------------------------
yodu123
Thu Mar 19, 2009 10:50 am

program ideas
-----------------------------------
i have to make a program for a final school project but i don`t know what to make
can you give me some program ideas other than games?

-----------------------------------
Insectoid
Thu Mar 19, 2009 11:12 am

RE:program ideas
-----------------------------------
A program that inputs an equation and solves it via bedmas.

-----------------------------------
mono-1-rulz
Thu Mar 19, 2009 11:58 am

RE:program ideas
-----------------------------------
I once made a calculator....it had like 13 functions ......u could do a bit more.....i used the Java Math Class.......

-----------------------------------
DemonWasp
Thu Mar 19, 2009 12:14 pm

RE:program ideas
-----------------------------------
Suggestions depend - how advanced are you in programming?

If you're only moderately advanced, I'd second insectoid's suggestion. You can make an equation solver relatively simply. If you want to make it fancier, you can include further functionality (after you have the basic BEDMAS). Below are some examples of user-input for consideration; the > means "prompt" and precedes what the user enters, while the lines without the > are the response from the program.

Basic:
[code]
> 4 * 4 + 12 / 3
20
> 2 * 3 ^ 2
18
> 4 * ( 3 + 7 )
40
[/code]

More advanced - variables:
[code]
> x = 5
x = 5
> ( x - 1 ) ^ 2 - 4
12
[/code]

Even more advanced - include math functions:
[code]
> x = 90
x = 90
> sin ( x ) + cos ( x )
1
[/code]

-----------------------------------
saltpro15
Thu Mar 19, 2009 1:24 pm

RE:program ideas
-----------------------------------
You can make a simple OS if you're really ambitious, I think I saw someone's project on here that was an Etch a Sketch, you could do that too.  If you're really just getting started, make Paint XD

-----------------------------------
DemonWasp
Thu Mar 19, 2009 1:46 pm

RE:program ideas
-----------------------------------
If you think you're up to it, make Notepad - or better yet, vim. Vim may prove somewhat more difficult (but it's a much better editor, and you're going to learn it at some point or other).

-----------------------------------
Insectoid
Thu Mar 19, 2009 1:58 pm

RE:program ideas
-----------------------------------
Notepad could be a challenge. Not impossible, but a challenge. You'd have to find away around the maximum string size.

-----------------------------------
saltpro15
Thu Mar 19, 2009 2:27 pm

RE:program ideas
-----------------------------------
I don't think Notepad would be possible in Turing, since there isn't really a way of getting around the max string size, as insectoid said

-----------------------------------
Insectoid
Thu Mar 19, 2009 2:29 pm

RE:program ideas
-----------------------------------
the trick is to not load it as a single string.

-----------------------------------
DemonWasp
Thu Mar 19, 2009 2:36 pm

RE:program ideas
-----------------------------------
Err...[url=http://compsci.ca/v3/viewtopic.php?t=20229]I already fixed that issue.

-----------------------------------
saltpro15
Thu Mar 19, 2009 3:05 pm

RE:program ideas
-----------------------------------
oh :oops:  cool DemonWasp, how did you do that?

-----------------------------------
DemonWasp
Fri Mar 20, 2009 1:16 am

RE:program ideas
-----------------------------------
A string is just an array of characters. Turing supports arbitrary-length arrays, so really it's just a wrapper around a "flexible array 1..0 of char" that gets automatically expanded (though it won't automatically shrink) when it exceeds its given size. The code is self-explanatory if you look at it.

On further examination, it looks like a Notepad-type app could be done with the GUI components, but you'd be doing most of the slogging yourself - TextBoxes apparently don't support things like getting the text of a given line.

-----------------------------------
Tallguy
Mon Mar 23, 2009 9:13 am

RE:program ideas
-----------------------------------
@yodu123, why don't you make a game? my friend made a memory game before using 2d arrays, or make a simple shooter game . . .
