Question: 5. Create a Java application that asks a user to enter the name of a menu item, the number of grams of fat, the number

5. Create a Java application that asks a user to enter the name of a menu item, the number of grams of fat, the number of grams of protein, and the number of grams of carbohydrates the item contains. The program should display the total number of calories in the item, as well as the percent of calories that come from fat. Use the following information to perform the calculations gram fat -9 calories; 1 gram carbohydrate 4 calories; 1 gram protein - 4 calories. 6. A bank charges a base fee of S10 per month, plus the following check fees for a commercial banking account: S.10 cach for less than 20 checks S.08 each for 20-39 checks S.06 each for 40-59 checks .04 cach for 60 or more checks Create a ava application that asks for the number of checks written for the month. The application should then calculate and display the bank's services fees for the month
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
