Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }
- }else if (UmurValue==60){
- if (BeratValue<=18.2){
- Result = (BeratValue-18.2)/(18.2-15.9);
- }else {
- Result = (BeratValue-18.2)/(20.8-18.2);
- }
- }
- }else if (UmurValue==61){
- if (BeratValue<=18.3){
- Result = (BeratValue-18.3)/(18.3-16.0);
- }else {
- Result = (BeratValue-18.3)/(21.0-18.3);
- }
- }
- }
- childScoreBBU.setText(String.format(Locale.ENGLISH,"%.1f", Result));
- if (Result <-3){
- childStatusBBU.setText("Gizi Buruk");
- } else if (Result >-3 && Result <-2){
- childStatusBBU.setText("Gizi Kurang");
- } else if (Result >-2 && Result <2){
- childStatusBBU.setText("Gizi Baik");
- } else if (Result >2) {
- childStatusBBU.setText("Gizi Lebih");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement