1) Small cylinder/cone objects are to be delivered to another location. These cubic objects will be...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1) Small cylinder/cone objects are to be delivered to another location. These cubic objects will be placed inside a rectangular box for ease of management. Assumed the dimension of the cylinder is 3cm for height and 1.5cm radius, while the rectangular box (length, width, depth) is 15x18x20 cm. Given is a template (Figure 3) of a C program that determine: i) the number of cylinder that can be placed inside the rectangular box. ii) the unfilled remaining space in the rectangular box 5/14 The program should prompt user to enter dimension of cylinder, then dimension of rectangle. The program must display the number of cylinders in the box and the remaining space. Complete the Diagram in Figure 3 with the appropriate C statements a) Define all variables needed to store the dimension of both shapes (cylinder and rectangular) b) Prompt user to enter dimensions and read data c) Process to calculate the number of cylinders that can be placed in the box d) Process to calculate the remaining space unfilled by the cylinders Display the result // Program to calculate space filling for rectangular box #include int main (void) ( // a) Variables declaration // b) Prompt user to enter data // c) & d) Process // e) Display the output return 0; Figure 3 1) Small cylinder/cone objects are to be delivered to another location. These cubic objects will be placed inside a rectangular box for ease of management. Assumed the dimension of the cylinder is 3cm for height and 1.5cm radius, while the rectangular box (length, width, depth) is 15x18x20 cm. Given is a template (Figure 3) of a C program that determine: i) the number of cylinder that can be placed inside the rectangular box. ii) the unfilled remaining space in the rectangular box 5/14 The program should prompt user to enter dimension of cylinder, then dimension of rectangle. The program must display the number of cylinders in the box and the remaining space. Complete the Diagram in Figure 3 with the appropriate C statements a) Define all variables needed to store the dimension of both shapes (cylinder and rectangular) b) Prompt user to enter dimensions and read data c) Process to calculate the number of cylinders that can be placed in the box d) Process to calculate the remaining space unfilled by the cylinders Display the result // Program to calculate space filling for rectangular box #include int main (void) ( // a) Variables declaration // b) Prompt user to enter data // c) & d) Process // e) Display the output return 0; Figure 3
Expert Answer:
Answer rating: 100% (QA)
Program to calculate space filling for rectangular box include include int mainvoid a Variables decl... View the full answer
Related Book For
Operations Management
ISBN: 978-0071091428
4th Canadian edition
Authors: William J Stevenson, Mehran Hojati
Posted Date:
Students also viewed these programming questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
Discuss the seven contemporary communication issues facing managers.
-
What should an entrepreneur be prepared for when considering franchising his or her business?
-
Consider the network in figure. If R = 1k?, L = 20mH, C = 50?F, and Rs = ?, determine the resonant frequency w0 the Q of the network, and the bandwidth of the network what impact does an RS of 10k?...
-
Describe how the transaction date is determined for the purpose of initially recognising items arising from foreign currency transactions.
-
Amana Cement Corporation is a private corporation controlled by Amin Amana. The company's adjusted trial balance and other related data at 31 December 20X5 are given below. Although the company uses...
-
(a) Discuss four benefits that would accrue to a foreign investor investing in the international bonds and (b) Highlight four conditions that must be met by a subsidiary before it could be considered...
-
Maggie's Magazines (MM) has straight nonconvertible bonds that currently yield 9%. MM's stock sells for $22 per share, has an expected constant growth rate of 6%, and has a dividend yield of 4%. MM...
-
Describe the main supply chain challenges that dell is now facing and provide your recommendations for solving them.
-
What does the fossil Archaeopteryx tell us about bird evolution?
-
What fundamental change in Earths environment is attributed to the cyanobacteria?
-
Why is radiation used to treat some forms of cancer?
-
Laura says she doesnt believe that humans were at one time chimpanzees or gorillas. Jeff says he doesnt believe it either. Explain why biologists also dont believe that humans are descended from...
-
Describe how natural selection occurs.
-
Both the endocrine and nervous systems transmit information around an animal's body. Which of the following is a characteristic of nervous system signals? O a. allow gradual changes to take place in...
-
Jax Incorporated reports the following data for its only product. The company had no beginning finished goods inventory and it uses absorption costing. $ 57.30 per unit $ 10.30 per unit $ 7.80 per...
-
Consider the magazine rack and its pieces shown on the following page. The raw material is 1 inch by 6 inches by 6 feet long planks of oak lumber. The 6 rails and handle are made from one plank of...
-
What is shift scheduling and how is it done?
-
How has Palliser competed internationally? How have its location strategies helped it? Pallise? Furniture is the largest furniture manufacturer in Canada, but it grew out of the basement of its...
-
Figure 7.18 shows a liquid-level system in which two tanks have cross-sectional areas \(A_{1}\) and \(A_{2}\), respectively. The volume flow rate into tank 1 is \(q_{\mathrm{i}}\). A pump is...
-
For the three-room house shown in Figure 7.35, all rooms are perfect squares and have the same dimensions. An air conditioner produces an equal amount of heat flow \(q_{\mathrm{ho}}\) out of each...
-
Consider the single-tank liquid-level system shown in Figure 7.19, where the volume flow rate into the tank through a pipe is \(q_{\mathrm{i}}\). The liquid leaves the tank through an orifice of area...
Study smarter with the SolutionInn App