May i knw how to write a program that can set goal, record food/drink consumed and record foodcomposition???

Besides the 3 tagged languages you offered (C, C++ and Java) most will try such in their choice of one or the other language and not all three.

Also most of us will design the app before writing code. That is, design the user interface, input, output, data design then the coding begins. Sometimes folk want to code before design.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.