hi, i need some help in calculating my code

Attachment 5507

but i don't know what to write in my code for the calculate button.

what i need to do is that

it calculate according to the formula

Total =50+10(X-Y) / Z

X is raw score

Y is average score

Z is the standard deviation

hope someone would guide me into writing a calculation code for this. thank you

i wrote this

i know string is wrong, but i don't know what to write or i tried double but i don't know how to write it in computer language.Quote:

String Sum1 = txtrawscore.getText();

String Sum2 = txtaveragescore.getText();

String Sum3 = cbo_standard.getSelectedItem().toString();

txttotal.setText(50+10 (Sum1 - Sum2) / Sum3); <<-- this is just a assumption, i don't know the actual code for this, so i hope someone will correct my error