|
Would the calculation have worked as well?percent = ( (fatGrams * 9) / calories ) * 100 ; A good answer might be:
No---the calculation would be carried out with integer arithmetic.
The result (an integer) would then be converted to | ||||||||||||
GUI DesignHere are the variables and the GUI components they will correspond to:
Each
There is something different about this GUI, though.
The user inputs two values.
The calculation should only be carried out when two values are
available.
With the previous program,
the input | ||||||||||||
QUESTION 10:(Design Question: ) Will this method work with the current program? Click Here after you have answered the question |