0credibility Posted June 19, 2004 Posted June 19, 2004 (edited) Hi, if anyone out there knows how to program, I wonder if you'd mind making me a simple one: 1) Receives a number as input, and sets that number as "x" 2) Receives a number as input, and sets that number as "y" 3) Outputs:(101-x)(101-x)+(101-x)(101-x)+(101-x)+(101-x)etc...until it produces y numbers of output That would be so awesome, you would be my hero. Thanks! Edited June 19, 2004 by 0credibility These last few hours have made me realize that I need some kind of hobby. I'd bet MacGyver could think of something...
SWR Staff - Executive Evaders99 Posted June 19, 2004 SWR Staff - Executive Posted June 19, 2004 You didn't say what language lol Evaders99http://swrebellion.com/images/banners/rebellionbanner02or6.gif Webmasterhttp://swrebellion.com/images/banners/swcicuserbar.png Administrator Fighting is terrible, but not as terrible as losing the will to fight.- SW:Rebellion Network - Evaders Squadron Coding -The cake is a lie.
ElvisMiggell Posted June 19, 2004 Posted June 19, 2004 Heh, i should imagine you could do it in Excel! Elvismiggell. Strike me down and i will become more powerful than you can ever imagine... Nu kyr'adyc, shi taab'echaaj'la Not gone, merely marching far away
0credibility Posted June 19, 2004 Author Posted June 19, 2004 I don't care which language...I just need an executable file, that's all...and yes, I could probably do it in excel I just need an executable with some kind of GUI I just thought of something that could make it fancier, if there were two inputs for x, and it produced two columns of output, so you'd have like:2 | 3- | -4 | 6- | -6 | 9 etc... I wish I knew the syntax of like, SOMETHING, because I bet I could just program this myself...its just like one formula, a couple of inputs and a simple GUI...oh well, ignorance isn't bliss all the time! I just had another cool idea, instead of two separate x's, if you could put in a value for x, and then it outputs one line with the set number of values: 1,2,3,4,5 and then if you enter a second value for x and press the ok button, it doesn't erase the first set, but adds more on a second line, so it would be: 1,2,3,4,52,4,6,8,10 and if it could save this output to a text file! Perfection. Although, I still need the value for y...so it would need to be able to output 100 numbers on one line...maybe that wouldn't work...unless there was an elevator bar or something. Oh yeah! Also if it could have a separate section where it generated a random number from 1 to 100! And maybe another section where it will compute the result of a string, like "1+1" outputs "2"... I think I'm getting too excited though, AND in over my head. The first design is really all I need. These last few hours have made me realize that I need some kind of hobby. I'd bet MacGyver could think of something...
0credibility Posted June 20, 2004 Author Posted June 20, 2004 ...Or, if someone wouldn't mind giving me a crash course in syntax...I'd do it myself These last few hours have made me realize that I need some kind of hobby. I'd bet MacGyver could think of something...
Krytos Posted June 20, 2004 Posted June 20, 2004 Ok, I've done a quick 5 minute job for your first request in C++ - though it's only a console app and there's no actual GUI (I've got no idea how to do GUI) 1) Receives a number as input, and sets that number as "x" 2) Receives a number as input, and sets that number as "y" 3) Outputs:(101-x)(101-x)+(101-x)(101-x)+(101-x)+(101-x) The other thing is . . . how do I get it to you? If you want I can post the code, it's only a bit over 10 lines. If you don't have a compiler, give me your email address and I'll send you the exe which is 512 kb http://img146.imageshack.us/img146/1778/reloadedbannerdu8.gifhttp://img152.imageshack.us/img152/1333/3dartistbanneranimationws1.gifhttp://img154.imageshack.us/img154/4026/rebellionbannerdi2.gif
0credibility Posted June 20, 2004 Author Posted June 20, 2004 I've been fighting with Rapid Q for a couple hours now...and I can get it to make a GUI and receive input, as well as output it to a textbox... However, as soon as I try to get the input into an equation and then output the result to the text box, it returns me a value of 0 as the result ARG! I hate programming! Especially when I'm trying to muddle my way through without knowing syntax or operators or whatever the hell these things are called. I wish I knew what I was doing! It all seems so easy in my head, but the computer doesn't seem to see it the same way My email is nsman at hotmail dot com These last few hours have made me realize that I need some kind of hobby. I'd bet MacGyver could think of something...
Krytos Posted June 20, 2004 Posted June 20, 2004 Ok, it's away http://img146.imageshack.us/img146/1778/reloadedbannerdu8.gifhttp://img152.imageshack.us/img152/1333/3dartistbanneranimationws1.gifhttp://img154.imageshack.us/img154/4026/rebellionbannerdi2.gif
0credibility Posted June 20, 2004 Author Posted June 20, 2004 I wish I could program better than I can, its too bad. Thanks Krytos, I know for a fact I could not do what you did (because I just tried and failed! ) These last few hours have made me realize that I need some kind of hobby. I'd bet MacGyver could think of something...
0credibility Posted June 20, 2004 Author Posted June 20, 2004 !!!! "Hotmail has permanently blocked the following potentially unsafe attachment(s): XandY.exe (0.68 MB) More Info... " Now MS hates me too! I'll be on MSN messenger if you don't mind sending it that way... These last few hours have made me realize that I need some kind of hobby. I'd bet MacGyver could think of something...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now