Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In a health care center, certain amount of walnut and dried fig is given for their meal. Suppose that the amount of calories in
In a health care center, certain amount of walnut and dried fig is given for their meal. Suppose that the amount of calories in each pound of walnut is 0.30 times the amount of calories in each pound of dried fig. Write a java program that prompts the user to: 1. Input the number of members in the health care center, 2. The number of calories required for each member from the mixture (walnut and dried fig), and 3. The number of calories in each pound of walnuts. The program outputs the amount of walnuts and dried fig required for the members. (For simplicity, assume that each member requires the same amount of calories.) Sample Input/Output: Enter the number of members: 90 Enter the number of calories required for each member: 80 Enter the calories in each pound of walnut: 800 The total amount of walnuts needed = 9 The total amount of dried fig needed = 2.7 Activate Windows Go to Settings to activate Windo
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Heres a Java program that calculates the amount of walnuts and dried figs needed for a health care c...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started