Question

In: Computer Science

A beverage manufacturer produces a popular drink in 500 ml cans (0.5 litres). The drink is...

A beverage manufacturer produces a popular drink in 500 ml cans (0.5 litres). The drink is sold in cases containing 24 cans. To produce 1000 litres of the drink, 59 litres of a special ingredient is required. The remainder consists of water to which 200 kilograms of sugar is added (assume that sugar does not affect volume).

Write a program which accepts as input the number of cases of the drink that are required and calculates and displays the following:

  • The amount of litres of the special ingredient required
  • The amount of kilograms of sugar required
  • The amount of water required

only use iostream library, no arrays

WRITTEN IN C++

Solutions

Expert Solution

Source Code:

#include <iostream>
using namespace std;

int main()
{
   float special_ingredient_per_litre=59/1000.0 ;
   float water_per_litre=(1000 - 59)/1000.0 ;
   float sugar_per_litre=200/1000.0 ;

   int no_of_cases=0;
   cout<<"Enter number of cases of drink is required: ";
   cin>>no_of_cases;

   int total_litres=no_of_cases*24*0.5 ;

   cout<<"The amount of litres of the special ingredient required: "<<total_litres*special_ingredient_per_litre<<endl;
   cout<<"The amount of kilograms of sugar required: "<<total_litres*sugar_per_litre<<endl;
   cout<<"The amount of water required: "<<total_litres*water_per_litre<<endl;
}


Related Solutions

A beverage can manufacturer makes three sizes of soft drink cans—Small, Medium and Large. Production is...
A beverage can manufacturer makes three sizes of soft drink cans—Small, Medium and Large. Production is limited by machine availability, with a combined maximum of 105 production hours per day, and the daily supply of metal, no more than 200 kg per day. The following table provides the details of the input needed to manufacture one batch of 100 cans for each size. ​                                                                                Cans Large Medium Small Maximum Metal (kg)/batch 9 6 5 200 Machines’ Time (hr)/batch 4.4 4.2...
A soft-drink manufacturer purchases aluminum cans from an outside vendor. A random sample of 70 cans...
A soft-drink manufacturer purchases aluminum cans from an outside vendor. A random sample of 70 cans is selected from a large shipment, and each is tested for strength by applying an increasing load to the side of the can until it punctures. Of the 70 cans, 59 meet the specification for puncture resistance. a) Find a 95% confidence interval for the proportion of cans in the shipment that meet the specification. Round the answers to three decimal places. b) Find...
Krandolph Metals, Inc., is a manufacturer of aluminum cans for the beverage industry. Krandolph purchases aluminum...
Krandolph Metals, Inc., is a manufacturer of aluminum cans for the beverage industry. Krandolph purchases aluminum and other raw materials from several vendors. The purchasing process at Krandolph occurs as follows: When inventory of any raw material seems low, a purchasing agent examines the records to determine the vendor who supplied the last purchase of that raw material. The purchasing agent prepares a three‐copy PO and mails the top copy to the vendor. One copy is filed in the purchasing...
Krandolph Metals, Inc., is a manufacturer of aluminum cans for the beverage industry. Krandolph purchases aluminum...
Krandolph Metals, Inc., is a manufacturer of aluminum cans for the beverage industry. Krandolph purchases aluminum and other raw materials from several vendors. The purchasing process at Krandolph occurs as follows: When inventory of any raw material seems low, a purchasing agent examines the records to determine the vendor who supplied the last purchase of that raw material. The purchasing agent prepares a three ‐ copy PO and mails the top copy to the vendor. One copy is filed in...
A bottle of soft drink states that it contains 500 ml. A consumer group is angry...
A bottle of soft drink states that it contains 500 ml. A consumer group is angry and claims that the bottles are actually under-filled. The group takes a random sample of 40 bottles and finds a mean of 492 ml, with a sample standard deviation of 10 ml. Is their claim valid using the 0.01 level of significance? Use the five-step procedure to answer the question and include the p-value.
Question 8 A soft drinks manufacturer produces a sports drink with an 'active ingredient' that supposedly...
Question 8 A soft drinks manufacturer produces a sports drink with an 'active ingredient' that supposedly has health benefits. The quality control team is checking the amount of active ingredient in the bottles of drink. From historical data, it is known that the average amount  () of active ingredient per bottle is 27 mg with a standard deviation of 0.707 mg. Part a) Calculate the probability that the amount of active ingredient in a bottle is greater than 26 mg. [3...
Old Tyme Soda produces one flavor of a popular local soft drink. It had no work-in-process...
Old Tyme Soda produces one flavor of a popular local soft drink. It had no work-in-process on October 31 in its only inventory account. During November, Old Tyme started 11,400 barrels. Work-in-process on November 30 is 1,900 barrels. The production supervisor estimates that the ending work-in-process inventory is 40 percent complete. An examination of Old Tyme’s accounting records shows direct material costs of $24,413 and conversion costs of $27,400 for November. All production is sold as it is produced.    ...
Old Tyme Soda produces one flavor of a popular local soft drink. It had no work-in-process...
Old Tyme Soda produces one flavor of a popular local soft drink. It had no work-in-process on October 31 in its only inventory account. During November, Old Tyme started 10,400 barrels. Work-in-process on November 30 is 1,400 barrels. The production supervisor estimates that the ending work-in-process inventory is 30 percent complete. An examination of Old Tyme’s accounting records shows direct material costs of $18,106 and conversion costs of $22,400 for November. All production is sold as it is produced.    ...
Old Tyme Soda produces one flavor of a popular local soft drink. It had no work-in-process...
Old Tyme Soda produces one flavor of a popular local soft drink. It had no work-in-process on October 31 in its only inventory account. During November, Old Tyme started 10,400 barrels. Work-in-process on November 30 is 1,400 barrels. The production supervisor estimates that the ending work-in-process inventory is 30 percent complete. An examination of Old Tyme’s accounting records shows direct material costs of $18,106 and conversion costs of $22,400 for November. All production is sold as it is produced. Required:...
Old Tyme Soda produces one flavor of a popular local soft drink. It had no work-in-process...
Old Tyme Soda produces one flavor of a popular local soft drink. It had no work-in-process on October 31 in its only inventory account. During November, Old Tyme started 10,300 barrels. Work-in-process on November 30 is 1,350 barrels. The production supervisor estimates that the ending work-in-process inventory is 20 percent complete. An examination of Old Tyme’s accounting records shows direct material costs of $14,980 and conversion costs of $21,900 for November. All production is sold as it is produced. Required:...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT