Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A factory makes vases from a batch of molten glass. These are then sent to the shipping department for shipping in boxes to the central

image text in transcribed
A factory makes vases from a batch of molten glass. These are then sent to the shipping department for shipping in boxes to the central warehouse. However, of the N vases sent from the factory, one quarter are not up to standard and are sent back to be melted down. Example program runs N: 1000 Number of b&d va5es: 250 Cost to ship 93 large boxes $14 each: $1302 Cost to ship 1 medium boxes 8 each: 8 Cost to ship 2 small boxes $3 each: $6 otal shipping cost: $2316 The remaining vase are packed as follows As many as possible are packed into large boxes each holding 8 vases. Large boxes cost 14 doilars to ship. Of the remaining vases, as many as possible are packed into medium boxes each holding 4 vases Medium boxes cost 8 dollars each to ship. The remaining vases are sent in small boxes that hold a single vase. Small boxes costing 3 dollars each to ship. Number of bad vases: 0 coat to ship 0 large boxes @ s14 @ach: 0 Cost to ship 0 medium boxes 8 each: 0 coat to ship 0 small boxes @ $3 @ach: 0 total shipping cost: 0 Write a Pep/9 assembly code program that inputs N and outputs a report on the total shipping costs Example reports are shown below N: 73 Number of bad vases: 18 Cost to ship 6 1arge boxes $14 each: 84 cost to ship 1 medium boxes $8 each: $8 Cost to ship 3 small boxes53 each: Total shipping cost : S101 Turn in your source code and examples of it being tested. Are there values of N for which the program will not give the correct output? A factory makes vases from a batch of molten glass. These are then sent to the shipping department for shipping in boxes to the central warehouse. However, of the N vases sent from the factory, one quarter are not up to standard and are sent back to be melted down. Example program runs N: 1000 Number of b&d va5es: 250 Cost to ship 93 large boxes $14 each: $1302 Cost to ship 1 medium boxes 8 each: 8 Cost to ship 2 small boxes $3 each: $6 otal shipping cost: $2316 The remaining vase are packed as follows As many as possible are packed into large boxes each holding 8 vases. Large boxes cost 14 doilars to ship. Of the remaining vases, as many as possible are packed into medium boxes each holding 4 vases Medium boxes cost 8 dollars each to ship. The remaining vases are sent in small boxes that hold a single vase. Small boxes costing 3 dollars each to ship. Number of bad vases: 0 coat to ship 0 large boxes @ s14 @ach: 0 Cost to ship 0 medium boxes 8 each: 0 coat to ship 0 small boxes @ $3 @ach: 0 total shipping cost: 0 Write a Pep/9 assembly code program that inputs N and outputs a report on the total shipping costs Example reports are shown below N: 73 Number of bad vases: 18 Cost to ship 6 1arge boxes $14 each: 84 cost to ship 1 medium boxes $8 each: $8 Cost to ship 3 small boxes53 each: Total shipping cost : S101 Turn in your source code and examples of it being tested. Are there values of N for which the program will not give the correct output

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago