Skip to content

Problem 4 : Adv.OOP

Jatawatsafe edited this page May 22, 2018 · 1 revision

โจทย์ TrainerApp

จงสร้างโปรแกรม Trainer เพื่อดูแลปริมาณ แคลอรี่ ในร่างกาย ซึ่งมนุษย์ต้องการปริมาณเพียง 2500 kcal/วัน โดยการกินอาหารส่งผลให้เพิ่มปริมาณ kcal ให้กับร่างกายส่วน การออกกำลังกายส่งผลให้ลดปริมาณ แคลอรี่ ในร่างกาย แต่เราไม่ควรหักโหมเกินไป ไม่ควรให้ต่ำกว่า 1200 kcal ไม่อย่างงั้นระบบเผาผลาญคุณจะเสียสมดุลทันที

อ่านโจทย์เต็มๆได้ที่ https://github.com/safesit23/JavaLabExercise/blob/master/00JavaProblem/Practice%20AdvOOP-TrainerApp%20(by%20SafeIT23).pdf

TestCase (แบ่งเป็น 2 Part)

https://github.com/safesit23/JavaLabExercise/tree/master/00JavaProblem/Problem4/TestCase

KEY (7 Class)

https://github.com/safesit23/JavaLabExercise/tree/master/00JavaProblem/Problem4/KeyTrainerApp

Clone this wiki locally