In a health care center, certain amount of walnut and dried fig is given for their...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
Heres a Java program that calculates the amount of walnuts and dried figs needed for a health care c... View the full answer
Related Book For
Fundamentals of quality control and improvement
ISBN: 978-0470226537
3rd edition
Authors: amitava mitra
Posted Date:
Students also viewed these programming questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Write a reflective paper about Disability Network West Michigan
-
The United States is Canadas largest trading partner. Some Canadian businesses with large investments in the United States may want to support the US embargo on Cuba in order to protect their US...
-
William Giese operates the Giese Broadcast Company. His postclosing trial balance on December 31, 2016, is as follows: Giese agrees to enter into a partnership with Hazel Borris, effective January 1,...
-
Fill in the Blanks. Finite difference equations can be derived using ____________ different approaches.
-
1. The Dalton Company manufactures slippers and sells them at $ 12 a pair. Variable manufacturing cost is $ 5.00 a pair, and allocated fixed manufacturing cost is $ 1.25 a pair. It has enough idle...
-
A snickers candy bar contains 28g of sugar. Calculate the totalATP yield if you assume all sugar is glucose and all of it wasmetabolized through glycolysis.
-
If en with n E N is a set of orthonormal vectors in L[a, b] then for any function L [a, b] the following inequality holds (fn) ||f|| n=0 and equality (Parseval's formula) holds if and only if that is...
-
Adhering to social, business and ethical standards is important for a business to both develop and secure positive referrer relationships. For a Finance Broker, these standards could be acting in the...
-
Your company needs to make one payment of RM5 million to the supplier. The payment must be made within 6 months. You have made arrangements with the bank to obtain a 3-month loan of RM5 million...
-
A home insurance company offers us compensation for hurricane damage of $30,000.00. If we do not accept the offer and try to appeal or go to trial we can obtain $18,000.00, $15,000.00 or $10,000.00,...
-
Sally makes $46,000 annually. She receives a promotion and was increased to $56,000 annually. Sally's job notified her she would be receiving retro money from January 1st to July 22nd. How much is...
-
David has borrowed $600 from the bank. The bank is charging him an interest of 18.39% compounded monthly. David would like to pay back the entire loan with a single payment 3 years from today. How...
-
You are asked to work on an extra project at work. Your boss says that the project should take you 20 to 25 hours and that he/she will pay you $25/hour for getting it done over the upcoming three-day...
-
What is your opinion of advertising awards, such as the Cannes Lions, that are based solely on creativity? If you were a marketer looking for an agency, would you take these creative awards into...
-
The following table presents the weekly attendance, in thousands, at Broadway shows during a recent season. a. Find the mean and median weekly attendance. b. Based on the mean and median, would you...
-
The following data represent the responses of 24 library patrons when asked about their favorite type of book. Which type of book is the mode? Biography Fiction Biography Historical Fiction Biography...
-
A sample of 32 U.S. adults was surveyed and asked, Do you get most of your information about current events from newspapers, magazines, the Internet, television, radio, or some other source? The...
Study smarter with the SolutionInn App