You volunteer at the Greater Marietta Community Food Pantry and your manager found out that you're...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You volunteer at the Greater Marietta Community Food Pantry and your manager found out that you're taking a computer programming class. They've asked you to build a program that calculates how many people can be fed based on the quantity of certain items donated. Food Item People fed per item (approx) 14.5 oz Canned Soup 1 lb Bag of Brown Rice 14.5 oz Canned Vegetables 16 oz Peanut Butter 2 4 3.5 7 I In your program, ask the user how many of each item they're donating. Calculate how many people can be fed from the donation, and let the user know both the total and per item information. Examples of the program are shown below. Save your source code in a file called Assignment1C (with a file extension of .cpp, .cs, .java, or .py) Sample Output: How far your donation goes How many cans of soups? 2 How many bags of rice? 1 How many cans of vegetables? 3 How many cans of peanut butter? 7 Your donation will help feed 67.5 people! 4 people with the 2 can(s) of soup 4 people with the 1 bag(s) of rice 10.5 people with the 3 can(s) of vegetables 49 people with the 7 can(s) of peanut butter You volunteer at the Greater Marietta Community Food Pantry and your manager found out that you're taking a computer programming class. They've asked you to build a program that calculates how many people can be fed based on the quantity of certain items donated. Food Item People fed per item (approx) 14.5 oz Canned Soup 1 lb Bag of Brown Rice 14.5 oz Canned Vegetables 16 oz Peanut Butter 2 4 3.5 7 I In your program, ask the user how many of each item they're donating. Calculate how many people can be fed from the donation, and let the user know both the total and per item information. Examples of the program are shown below. Save your source code in a file called Assignment1C (with a file extension of .cpp, .cs, .java, or .py) Sample Output: How far your donation goes How many cans of soups? 2 How many bags of rice? 1 How many cans of vegetables? 3 How many cans of peanut butter? 7 Your donation will help feed 67.5 people! 4 people with the 2 can(s) of soup 4 people with the 1 bag(s) of rice 10.5 people with the 3 can(s) of vegetables 49 people with the 7 can(s) of peanut butter
Expert Answer:
Related Book For
Introduction To Health Care Management
ISBN: 9781284081015
3rd Edition
Authors: Sharon B. Buchbinder, Nancy H. Shanks
Posted Date:
Students also viewed these programming questions
-
What is the law of demand? A ) As the price of a good increases, its demand decreases B ) As the price of a good increases, its demand increases C ) Demand remains constant regardless of price...
-
Discuss which organizational structure (i.e. functional, product-market divisional, matrix) you would recommend Guelph General Hospital implement, assuming the hospital moves forward with the...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Monroe Inc. is an all-equity firm with 500,000 shares outstanding. It has $2,000,000 of EBIT, and EBIT is expected to remain constant in the future. The company pays out all of its earnings, so...
-
The first of ten semiannual payments of $2000 will be made 5 1/2 years from today. What is the present value of this deferred annuity using a discount rate of 7% compounded semiannually?
-
1. Find the mechanical advantage of the compound machine in Problem 1 if the inclined plane is 8.00 m long and 2.00 m high. 2. What effort force is needed to move a box of weight 2500 N to the...
-
Internal Control of Cash} OBJECTIVE 23 Edward Tang, a long-time employee of a small grocery wholesaler, is responsible for maintaining the company's cash records and for opening the daily mail,...
-
In February or March, Corning Glass Works orally agreed to retain Hanan as management consultant from May 1 of that year to April 30 of the next year for a present value fee of $200,000. Was this...
-
On July 1 , 2 0 2 4 , Clearwater Incorporated purchased 9 , 3 0 0 shares of the outstanding common stock of Mountain Corporation at a cost of $ 2 1 3 , 0 0 0 . Mountain had 3 1 , 0 0 0 shares of...
-
Readings: Miller and Weckert: "Privacy, the Workplace and the Internet" Rockefeller, "How Marketers Use Big Data to Prey on the Poor" Greenhouse, "Even if it Enrages your Boss, Social Net Speech is...
-
How can leaders leverage data-driven insights, predictive analytics, and machine learning algorithms to inform strategic decision-making processes, optimize operational efficiencies, and unlock new...
-
What strategies do leaders employ to foster a culture of integrity and ethical leadership succession, cultivating a pipeline of ethical leaders who uphold ethical standards, inspire ethical behavior,...
-
On December 1 5 , you received your bank statement showing a balance of $ 2 , 2 6 6 . 3 1 . Your checkbook shows a balance of $ 2 , 4 3 1 . 3 9 . Outstanding checks are $ 2 2 5 . 5 0 and $ 3 5 3 . 1...
-
The Segal Company makes and sells a single product called a Wib. The budgeted sales for November are P165, 000. The gross margin is budgeted at 40% of sales pesos. If the net operating income for...
-
Breakeven point, cost structure, operating lever A tire distributor plans to introduce a new line of tires for highway trucks. A new salesperson would have to be hired, so two compensation plans are...
-
Please provide a brief introduction for the company. The introduction should include: Name of company Location of company Name of owner Nature of the business. Type of product Fiscal period For th...
-
For a Poisson process of rate , the Bernoulli arrival approximation assumes that in any very small interval of length , there is either 0 arrivals with probability 1- or 1 arrival with probability ....
-
In making short-term special decisions, you should a. focus on total costs b. separate variable from fixed costs c. use a traditional absorption costing approach d. focus only on quantitative factors
-
Assume the value of an unlevered firm is $10,000,000. The tax rate is .35. What is the maximum amount of debt that can be issued in substitution for equity if the $10,000,000 is an accurate measure?...
-
Change the cost of debt of problem 3b. to .10. Recompute the investor's return if the firm earns $2,000 EBIT.
Study smarter with the SolutionInn App