Jump to content

Programmer wanted (don't worry, its easy stuff!)


0credibility
 Share

Recommended Posts

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 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...
Link to comment
Share on other sites

  • SWR Staff - Executive
You didn't say what language lol

Evaders99

http://swrebellion.com/images/banners/rebellionbanner02or6.gif Webmaster

http://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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

I don't care which language...I just need an executable file, that's all...and yes, I could probably do it in excel :D 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,5

2,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...
Link to comment
Share on other sites

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.gif

http://img152.imageshack.us/img152/1333/3dartistbanneranimationws1.gif

http://img154.imageshack.us/img154/4026/rebellionbannerdi2.gif

Link to comment
Share on other sites

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 :lol:

 

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...
Link to comment
Share on other sites

Ok, it's away :wink:

http://img146.imageshack.us/img146/1778/reloadedbannerdu8.gif

http://img152.imageshack.us/img152/1333/3dartistbanneranimationws1.gif

http://img154.imageshack.us/img154/4026/rebellionbannerdi2.gif

Link to comment
Share on other sites

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! :wink: )

These last few hours have made me realize that I need some kind of hobby. I'd bet MacGyver could think of something...
Link to comment
Share on other sites

!!!!

 

"Hotmail has permanently blocked the following potentially unsafe attachment(s): XandY.exe (0.68 MB) More Info... "

 

 

:evil::evil::evil:

 

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...
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

Copyright (c) 1999-2022 by SWRebellion Community - All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Star Wars(TM) is a registered trademark of LucasFilm, Ltd. We are not affiliated with LucasFilm or Walt Disney. This is a fan site and online gaming community (non-profit). Powered by Invision Community

×
×
  • Create New...