Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need help writing this program The Dimmitt Company manufactures doodles which are then shipped to customers. Four sizes of shipping boxes are used: Huge, Large,

need help writing this program image text in transcribed
image text in transcribed
image text in transcribed
The Dimmitt Company manufactures doodles which are then shipped to customers. Four sizes of shipping boxes are used: Huge, Large, Medium, and Small holding 50, 25, 10, and 1 doodle(s) respectively. (Named constants are used as needed to represent the number of doodles each size container can hold.) This program prompts the user to enter the number of doodles to be shipped then calculates the number of each size container needed for the shipment After all calculations are performed the program prints the author's identifying information followed by the results as shown below. The output is printed both to the console screen and to an output file. The mod operator is used to solve this problem Shown below is a sample layout for console output. Two blank lines are left after the prompt before printing the author's personal identifying information. Two blank lines are left after thd last table entry before a message is printed to the screen letting the user know the name of the file to which the output has also been directed. The output is displayed in tabular form with a 'title' and 'column headers'. The author's personal information is included for identifying purposes onics A sample layout for file output is shown below as well. With the exception of the prompt and the message directing the user to the output file, file output echoes console output vrier every some 5 on erence how to Music Input (keyboard), number of doodles to be shipped (integer) ans What ships Constants HUGE = 50 LARGE = 25 MEDIUM = 10 SMALL = 1 (integer values representing the number of doodles that fit in each box) Ansv stion Where game Output (console) Sample screen output: What plugin Woood Slow? moment Best C and on arenting ematics Enter the number of doodles to be shipped: 237 For shipment of 237 doodles Program results have also been written to prog2_25?out.txt. Output (file - prog2_25?out.txt): Sample file output: Author's Name C.S. 1428.025? For shipment of 237 doodles: Container Number 4 1 Huge Large Medium Small 1 2 The Dimmitt Company manufactures doodles which are then shipped to customers. Four sizes of shipping boxes are used: Huge, Large, Medium, and Small holding 50, 25, 10, and 1 doodle(s) respectively. (Named constants are used as needed to represent the number of doodles each size container can hold.) This program prompts the user to enter the number of doodles to be shipped then calculates the number of each size container needed for the shipment After all calculations are performed the program prints the author's identifying information followed by the results as shown below. The output is printed both to the console screen and to an output file. The mod operator is used to solve this problem Shown below is a sample layout for console output. Two blank lines are left after the prompt before printing the author's personal identifying information. Two blank lines are left after thd last table entry before a message is printed to the screen letting the user know the name of the file to which the output has also been directed. The output is displayed in tabular form with a 'title' and 'column headers'. The author's personal information is included for identifying purposes onics A sample layout for file output is shown below as well. With the exception of the prompt and the message directing the user to the output file, file output echoes console output vrier every some 5 on erence how to Music Input (keyboard), number of doodles to be shipped (integer) ans What ships Constants HUGE = 50 LARGE = 25 MEDIUM = 10 SMALL = 1 (integer values representing the number of doodles that fit in each box) Ansv stion Where game Output (console) Sample screen output: What plugin Woood Slow? moment Best C and on arenting ematics Enter the number of doodles to be shipped: 237 For shipment of 237 doodles Program results have also been written to prog2_25?out.txt. Output (file - prog2_25?out.txt): Sample file output: Author's Name C.S. 1428.025? For shipment of 237 doodles: Container Number 4 1 Huge Large Medium Small 1 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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions