Advertisement
Guest User

ZScore - Laki2

a guest
Jul 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.93 KB | None | 0 0
  1. }
  2.             }else if (UmurValue==60){
  3.                  if (BeratValue<=18.2){
  4.                     Result = (BeratValue-18.2)/(18.2-15.9);
  5.                 }else {
  6.                     Result = (BeratValue-18.2)/(20.8-18.2);
  7.                 }
  8.             }
  9.             }else if (UmurValue==61){
  10.                  if (BeratValue<=18.3){
  11.                     Result = (BeratValue-18.3)/(18.3-16.0);
  12.                 }else {
  13.                     Result = (BeratValue-18.3)/(21.0-18.3);
  14.                 }
  15.             }
  16.         }
  17.         childScoreBBU.setText(String.format(Locale.ENGLISH,"%.1f", Result));
  18.         if (Result <-3){
  19.             childStatusBBU.setText("Gizi Buruk");
  20.         } else if (Result >-3 && Result <-2){
  21.             childStatusBBU.setText("Gizi Kurang");
  22.         } else if (Result >-2 && Result <2){
  23.             childStatusBBU.setText("Gizi Baik");
  24.         } else if (Result >2) {
  25.             childStatusBBU.setText("Gizi Lebih");
  26.         }
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement