This assignment requires the creation of two separate applets.
Applet 1: Fat Calories
The following equation calculates the percentatge of fat calories. Ask the user for the grams of fat and the total calories in an item. Also ask the user for the item's name. Calculate the percentage of calories from fat. Display the item name, fat grams, total calories and percentage of fat calories.
Fat grams · 9 ·100
Total Calories
Applet 2: Arithmetic Equation
Ask the user for x. Use it to evaluate the equation: y = 1/3x3+ 1/2x2 + x . Display x and y.
PLEASE NOTE: ON ALL ASSIGNMENTS POINTS WILL BE REMOVED for:
1. Failing to follow directions including how to email the answers.
2. Picking variable names without meaning.
3. Improper indentation.
4. More than one submission.
5. Poorly displayed user input.
6. Poorly displayed output.
7. No test data.