Answer:
"rats"
Sometimes the first few lines of a stack trace are useful for debugging.
New Example: Fat Calculator
Let us develop another GUI application. Health experts recommend that what you eat have less than 30% of its calories from fat. Our new application calculates the percentage of calories that come from fat, given the number of grams of fat and the number of calories per serving of a food. Most packaged foods display these values on their label. Fat contains 9 calories per gram.
- Input:
- Calories per serving.
- Grams of fat per serving.
- Calculation:
- percent = ( (fat * 9) / calories ) * 100
- Output:
- percent of fat from calories
QUESTION 9:
What data type should be used for the variables and for the calculation?