Hi guys,
I know this is a simple program but I really don't have the time to learn ...
If someone can make it for me and I'll edit it to suit my need I appreciate it ...
for examble I enter 5 then choose first option it would show the answer 10 ...
if I choose last option and put two numbers the answer will be Number*(A*B) or Number*(A/B) depending on what I choose on the right ...
Thanks in advance, I appreciate it ...
I see that now and I apologize for that ... please delete the thread ...
By the way, it's not homework ... I never used Visual Basic and I need to calculate a lot of numbers which is hard to do manually ...
Last edited by w.wolf; Sep 24th, 2011 at 01:47 PM.
In that case, I still might not use VB. Consider using Excel. The problem you have described is simple enough that you could build the equation into Excel. You might need to have two or three columns, but it would be possible, and it is FAR easier to enter numbers into Excel than to use an app like that.
The first column would be the number you enter. The next column would be the first multiplier, and the third column would be the second multiplier. The third column would be 1, by default. Therefore, for the first option, you would enter the number in column 1, the multiplier in column 2 (either 2, 3, or 4 based on your example), and you would normally leave column 3 alone. In the fourth case of your example, you would enter the A value in column 2, and the B value in column 3.
That leaves only the mult/div option. A fourth column and an If condition in the equation could handle that. It would multiply if the fourth column was 0, and divide if the fourth column was 1, or something like that.
Thank you very much for your reply, Excel never occurred to me, and thanks for the detailed answer ...
I still need a stand-alone program but Excel should do for now ...
This part of the forum doesn't work that way. You may want to visit the Project Requests portion instead
There are also other sites where you can hire someone to do it for you
+1. Plus, OP has other problems already. What is A and what is B? What is the numerator and the denominator if dividing, or what is the multiplier and the multiplicand if multiplying? Based upon what I see, the number being entered could apply to any of these. Is 2 an automatic value that is hidden somewhere?
I apologize, this is the second time I post in the wrong part of the forum, pleas delete the thread ...
As for your question regarding the program ... A and B are numbers the user input if he chose the last option, for example if he entered 1 in the first box and choose last option and put 2 and 3 in the boxes the answer should appear 1*(2*3)=6 or 1*(2/3)=0.667 depending on what he chose ...
The program is meant to calculate ratios and I made it in Console put if I can have it Visual Basic it would be better ...
Last edited by w.wolf; Sep 25th, 2011 at 05:01 AM.
It really isn't, now that I'm reading my post again it does seem like I'm a lazy a** ... I guess you can't read voice tone after all ...
If I'm having a class for this I wouldn't need help for such a code, I just put simple numbers for simplification, I'll edit it and add more features, just needed the basic code. Thanks again ...