EBK NUMERICAL METHODS FOR ENGINEERS
EBK NUMERICAL METHODS FOR ENGINEERS
7th Edition
ISBN: 8220100254147
Author: Chapra
Publisher: MCG
bartleby

Videos

Textbook Question
Book Icon
Chapter 2, Problem 12P

The bubble sort is an inefficient, but easy-to-program, sorting technique. The idea behind the sort is to move down through an array comparing adjacent pairs and swapping the values if they are out of order. For this method to sort the array completely, it may need to pass through it many times. As the passes proceed for an ascending-order sort, the smaller elements in the array appear to rise toward the top like bubbles. Eventually, there will be a pass through the array where no swaps are required. Then, the array is sorted. After the first pass, the largest value in the array drops directly to the bottom. Consequently, the second pass only has to proceed to the second-to-last value, and so on. Develop a program to set up an array of 20 random numbers and sort them in ascending order with the bubble sort (Fig. P2.12).

Chapter 2, Problem 12P, 2.12	The bubble sort is an inefficient, but easy-to-program, sorting technique. The idea behind the

FIGURE P2.12

Blurred answer
Students have asked these similar questions
A counter flow double pipe heat exchanger is being used to cool hot oil from 320°F to 285°F using cold water. The water, which flows through the inner tube, enters the heat exchanger at 70°F and leaves at 175°F. The inner tube is ¾-std type L copper. The overall heat transfer coefficient based on the outside diameter of the inner tube is 140 Btu/hr-ft2-°F. Design conditions call for a total heat transfer duty (heat transfer rate between the two fluids) of 20,000 Btu/hr. Determine the required length of this heat exchanger (ft).
! Required information A one-shell-pass and eight-tube-passes heat exchanger is used to heat glycerin (cp=0.60 Btu/lbm.°F) from 80°F to 140°F by hot water (Cp = 1.0 Btu/lbm-°F) that enters the thin-walled 0.5-in-diameter tubes at 175°F and leaves at 120°F. The total length of the tubes in the heat exchanger is 400 ft. The convection heat transfer coefficient is 4 Btu/h-ft²°F on the glycerin (shell) side and 70 Btu/h-ft²°F on the water (tube) side. NOTE: This is a multi-part question. Once an answer is submitted, you will be unable to return to this part. Determine the rate of heat transfer in the heat exchanger before any fouling occurs. Correction factor F 1.0 10 0.9 0.8 R=4.0 3.0 2.0.15 1.0 0.8.0.6 0.4 0.2 0.7 0.6 R= T1-T2 12-11 0.5 12-11 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (a) One-shell pass and 2, 4, 6, etc. (any multiple of 2), tube passes P= T₁-11 The rate of heat transfer in the heat exchanger is Btu/h.
! Required information Air at 25°C (cp=1006 J/kg.K) is to be heated to 58°C by hot oil at 80°C (cp = 2150 J/kg.K) in a cross-flow heat exchanger with air mixed and oil unmixed. The product of heat transfer surface area and the overall heat transfer coefficient is 750 W/K and the mass flow rate of air is twice that of oil. NOTE: This is a multi-part question. Once an answer is submitted, you will be unable to return to this part. Air Oil 80°C Determine the effectiveness of the heat exchanger.

Chapter 2 Solutions

EBK NUMERICAL METHODS FOR ENGINEERS

Knowledge Booster
Background pattern image
Mechanical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Refrigeration and Air Conditioning Technology (Mi...
Mechanical Engineering
ISBN:9781305578296
Author:John Tomczyk, Eugene Silberstein, Bill Whitman, Bill Johnson
Publisher:Cengage Learning
Text book image
Principles of Heat Transfer (Activate Learning wi...
Mechanical Engineering
ISBN:9781305387102
Author:Kreith, Frank; Manglik, Raj M.
Publisher:Cengage Learning
12. Searching and Sorting; Author: MIT OpenCourseWare;https://www.youtube.com/watch?v=6LOwPhPDwVc;License: Standard YouTube License, CC-BY
Algorithms and Data Structures - Full Course for Beginners from Treehouse; Author: freeCodeCamp.org;https://www.youtube.com/watch?v=8hly31xKli0;License: Standard Youtube License