Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. The C++ Water and Ice Company produces liter and half-liter bottles of purified water. The bottles are packaged in 24-item cases. The delivery person makes stops at the local warehouse stores and delivers pallets of these drink cases. Each pallet holds 80 cases of water.
  2.  
  3. Write a program that begins by displaying your course header (see above). You know that the customer needs 2 pallets of full liter and 4 pallets of half-liter bottles of purified water to be delivered to the his warehouse. The program asks the warehouse owner to enter the number of full and half-liter pallets to be delivered by our company. Your program calculates and reports the total number of cases of each drink, total servings of each drink, as well as total liters for the entire order, and the US gallons and weight (in pounds) of all the product delivered. We’ll assume a serving is a complete bottle. That is, one half-liter bottle is a serving and one full-liter bottle is a serving. One gallon of water is equivalent to 3,785 cubic centimeters or 3.785 liters.
  4.  
  5. Additional requirement: We’ll assume each of the plastic bottles (both liter and half-liter) weigh ½ ounce. You’ll need to include the weight of the bottles in the total weight of the product.
  6.  
  7. Neatly format your output so that the columns of information line up and look like a table. It doesn’t need to be perfect, but it should be easily read. Also, do not allow your table to be so big that we have to scroll up/down to see the results. The output should include the number of ordered pallets. All your work will be done in the main function.
  8.  
  9.  
  10. Test Case and Write up: You’ll need to do a search to find the necessary conversions for liters to grams to pounds, as well as ounces (weight) to pounds.
  11.  
  12. Using pencil and paper, first calculate the information for 1 half-liter pallet and 1 full liter pallet. From this you can easily determine the information for multiple pallet orders.
  13.  
  14. You must show all calculations, do not just show answers. Your calculations should show total liters, liters to gallons calculations, gallons to pounds, calculate the weight of plastic bottles, too.
  15.  
  16. State clearly any assumed conversions that you are going to use.
  17.  
  18. Test Case : 4 half-liter pallets and 2 full-liter pallets
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement