Hi. I'm trying to make a basic program where some variables can be entered. After they are entered, I want a few basic equations to be done and then some text to be displayed with the resulting number. I used basic java a couple of months ago and I have forgotten most of it. I was wondering if anybody could help me out. You don't need you to write it for me completely (but if you want, feel free to), just give me some tips and maybe a few lines would be great. Also, I have DESPERATELY been trying to locate a program to write java code and then compile and run said code. Are there any programs that are free to download where I can do this? I am using a Macbook running on Mac OS X 10.5.8. Thanks guys! I'd wish you all good luck, but this is probably baby-work for you
Here's a quick little diagram of what I am aiming for. Just in case it's confusing, "->" is supposed to be "stored as" and it all goes in the order I'm looking for. Letters in (), I want to be able to enter it in as a number and the letters I used can be changed:
(X)*(1.8) -> A (J)*(1.8) -> M
(Y)*(1.2) -> B (K)*(1.2) -> N
(Z)*(0.6) -> C (L)*(0.6) -> O
A+B+C -> D
M+N+O -> P
D+P -> E
D/E -> G
P/E -> H
G*(100) -> S
H*(100) -> T
"The final number is 'S' percent" (Display the percent symbol if you can)
"The final number is 'T' percent" (Display the percent symbol if you can)