Java bmi

254 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
254
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Java bmi

  1. 1. BMI) JAVA
  2. 2. PROGRAMIMNG FOR TEACHERSFACULTY OF EDUCATION KHONKAEN UNIVERSITY
  3. 3. BMI) BMI BMI PROGRAMIMNG FOR TEACHERSFACULTY OF EDUCATION KHONKAEN UNIVERSITY
  4. 4. IF (IF) 1 1. IF PROGRAMIMNG FOR TEACHERS FACULTY OF EDUCATION KHONKAEN UNIVERSITY
  5. 5. IF (IF…ELSE) 2 ; ; 2 ; 1 2. IF Else If { } { } PROGRAMIMNG FOR TEACHERS FACULTY OF EDUCATION KHONKAEN UNIVERSITY
  6. 6. 2 Start Stop 1IF ; 1; 2 ; Else If { } { } PROGRAMIMNG FOR TEACHERS FACULTY OF EDUCATION KHONKAEN UNIVERSITY
  7. 7. whileDo while do do while do PROGRAMIMNG FOR TEACHERS FACULTY OF EDUCATION KHONKAEN UNIVERSITY
  8. 8. DialogFACULTY OF EDUCATION KHONKAEN UNIVERSITY JOptionPane.showMessageDialog PROGRAMIMNG FOR TEACHERS User Dialog) import javax.swing.JOptionPane; public class DialogViewer { public static void main(String[] args){ JOptionPane.showMessageDialog(null,”Hello World”); } }
  9. 9. Dialog PROGRAMIMNG FOR TEACHERS FACULTY OF EDUCATION KHONKAEN UNIVERSITY
  10. 10. Dialog 1. 2 PROGRAMIMNG FOR TEACHERS FACULTY OF EDUCATION KHONKAEN UNIVERSITY
  11. 11. Code BMI PROGRAMIMNG FOR TEACHERSFACULTY OF EDUCATION KHONKAEN UNIVERSITY
  12. 12. javax.swingCode BMI JOptionPane Package) PROGRAMIMNG FOR TEACHERS FACULTY OF EDUCATION KHONKAEN UNIVERSITY
  13. 13. 3 2 1 2Code BMI 3 1 PROGRAMIMNG FOR TEACHERS FACULTY OF EDUCATION KHONKAEN UNIVERSITY
  14. 14. Code BMI PROGRAMIMNG FOR TEACHERS FACULTY OF EDUCATION KHONKAEN UNIVERSITY
  15. 15. Code BMI PROGRAMIMNG FOR TEACHERS FACULTY OF EDUCATION KHONKAEN UNIVERSITY
  16. 16. Start Flowchart Code weight = 0, height = 0, BMIFACULTY OF EDUCATION KHONKAEN UNIVERSITY number1 = weight, number2 = height, PROGRAMIMNG FOR TEACHERS number3 = number2/100 BMI = number1/ number3*number3
  17. 17. BMI < 18.5 NO NO NO NO 3 <=22.9 <=24.9 <=29.9 BMI BMI BMI YES YESYES YES 2 1 PROGRAMIMNG FOR TEACHERS FACULTY OF EDUCATION KHONKAEN UNIVERSITY
  18. 18. Check = true YES Check = false Y/N NO Cont = Y Finish && y PROGRAMIMNG FOR TEACHERSFACULTY OF EDUCATION KHONKAEN UNIVERSITY
  19. 19. Thank You!https://docs.google.com/forms/d/1M1S3ZQMLGAuleQlfWr7m AKbH0J0wIqEnZK_SjkXiL6w/viewform?pli=1

×