Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A cookie company needs a program to determine the number of each of 4 sizes of shipping cartons needed at the end of each day

A cookie company needs a program to determine the number of each of 4 sizes of shipping cartons needed at the end of each day to ship the cookies theyve manufactured that day. An extra-large shipping carton will hold 250 boxes of cookies, a large shipping carton will hold 120 boxes of cookies, a medium shipping carton will hold 50 boxes of cookies, and a small shipping carton will hold 20 boxes of cookies. Also, determine the number of boxes left that didnt fit in a carton. Notes: Use named constants for the four number of boxes in cartons values Use modular division (%) to determine the number of boxes left after the number of cartons for each size is determined, then use the boxes left to determine the amount of next size cartons Test your program twice: Use 2212 boxes manufactured Then use 1485 boxes manufactured Output format: Present your output in table form with column headings, as follows: Hint: You can't use tab inside of a string, so line up your end quotes with spaces in your cout statements when printing the carton size string. Total Boxes made today: 2212 Boxes left out of cartons: 2 Carton Size Cartons Needed Extra Large 8 Large 1 Medium 1 Small 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Microsoft Outlook 2023

Authors: James Holler

1st Edition

B0BP9P1VWJ, 979-8367217322

More Books

Students also viewed these Databases questions