Answered step by step
Verified Expert Solution
Link Copied!

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals of quality control and improvement

Authors: amitava mitra

3rd edition

470226536, 978-1-11849164, 978-0470226537

More Books

Students also viewed these Programming questions

Question

Write a reflective paper about Disability Network West Michigan

Answered: 1 week ago

Question

Why do young children hide by covering their eyes?

Answered: 1 week ago