Author |
Message |
yodu123
|
Posted: Thu Mar 19, 2009 10:50 am Post subject: 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? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Insectoid

|
Posted: Thu Mar 19, 2009 11:12 am Post subject: RE:program ideas |
|
|
A program that inputs an equation and solves it via bedmas. |
|
|
|
|
 |
mono-1-rulz
|
Posted: Thu Mar 19, 2009 11:58 am Post subject: 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
|
Posted: Thu Mar 19, 2009 12:14 pm Post subject: 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
|
More advanced - variables:
code: |
> x = 5
x = 5
> ( x - 1 ) ^ 2 - 4
12
|
Even more advanced - include math functions:
code: |
> x = 90
x = 90
> sin ( x ) + cos ( x )
1
|
|
|
|
|
|
 |
saltpro15

|
Posted: Thu Mar 19, 2009 1:24 pm Post subject: 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
|
Posted: Thu Mar 19, 2009 1:46 pm Post subject: 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

|
Posted: Thu Mar 19, 2009 1:58 pm Post subject: 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

|
Posted: Thu Mar 19, 2009 2:27 pm Post subject: 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 |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Insectoid

|
Posted: Thu Mar 19, 2009 2:29 pm Post subject: RE:program ideas |
|
|
the trick is to not load it as a single string. |
|
|
|
|
 |
DemonWasp
|
|
|
|
 |
saltpro15

|
Posted: Thu Mar 19, 2009 3:05 pm Post subject: RE:program ideas |
|
|
oh cool DemonWasp, how did you do that? |
|
|
|
|
 |
DemonWasp
|
Posted: Fri Mar 20, 2009 1:16 am Post subject: 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

|
Posted: Mon Mar 23, 2009 9:13 am Post subject: 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 . . . |
|
|
|
|
 |
|