
Concept explainers
A matrix names mach contains three columns of data concerning the energy output of several machines. The first column contains an ID code for a specific machine, the second column contains the total amount of energy produced by that machine in calories, and the third column contains the amount of time required by that machine to produce the energy listed in column 2 in hours. Write a function name MPower to accept as input the matrix mach and return a new matrix named P containing two columns and the same number of rows as mach. The first column should contain the machine ID codes, and the second column should contain the average power generated by each machine in units of watts. You must use a loop to accomplish this. Do not use direct matrix operations.

Want to see the full answer?
Check out a sample textbook solution
Chapter 20 Solutions
Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
- An Inclining experiment done on a ship thats 6500 t, a mass of 30t was moved 6.0 m transvesly causing a 30 cm deflection in a 6m pendulum, calculate the transverse meta centre height.arrow_forwarda ship 150 m long and 20.5 m beam floats at a draught of8 m and displaces 19 500 tonne. The TPC is 26.5 and midshipsection area coefficient 0.94. Calculate the block, prismatic andwaterplane area coefficients.arrow_forwardA vessel loads 680 t fuel between forward and aft deep tanks. centre of gravity of forward tank is 24m forward of ships COG. centre to centre between tanks is 42 m. how much in each tank to keep trim the samearrow_forward
- Beam of a vessel is 11% its length. Cw =0.72. When floating in SW of relative denisity 1.03, TPC is 0.35t greater than in freshwater. Find the length of the shiparrow_forwardAn inclining experiment was carried out on a ship of 4000tonne displacement, when masses of 6 tonne were moved transverselythrough 13.5 m. The deflections of a 7.5 m pendulurnwere 81, 78, 85, 83, 79, 82, 84 and 80 mm respectively.Caiculate the metacentric height.arrow_forwardA ship of 10 000 tonne displacement has a waterplanearea of 1300 m2. The ship loads in water of 1.010 t/m3 andmoves into water of 1.026 t/m3. Find the change in meandraughtarrow_forward
- A ship of 7000 tonne displacement has a waterplane areaof 1500 m2. In passing from sea water into river water of1005 kg/m3 there is an increase in draught of 10 cm. Find the Idensity of the sea water.arrow_forwardA ship has 300 tonne of cargo in the hold, 24 m forward ofmidships. The displacement of the vessel is 6000 tonne and its centre of gravity is 1.2 m forward of midships.Find the new position of the centre of gravity if this cargo ismoved to an after hold, 40 m from midshipsarrow_forwardSketch and describe how ships are supported in dry dock. When and where does the greatest amount of stresses occur?arrow_forward
- Sketch and desribe a balanced rudder and how it is suspendedarrow_forwardA ship 140 m long and 18 m beam floats at a draught of9 m. The immersed cross-sectionai areas at equai intervais are 5,60, 116, 145, 152, 153, 153, 151, 142, 85 and 0 m2 respectively.Calculate:(a) displacement(b) block coefficient(c) midship section area coefficient(d) prismatic coefficient.arrow_forwardA steamer has waterplane area 1680m2 recorded in water with relative denisty 1.013. Displacement = 1200 t, calculate difference in draught in salwater reltive denisity 1.025.arrow_forward
- Principles of Heat Transfer (Activate Learning wi...Mechanical EngineeringISBN:9781305387102Author:Kreith, Frank; Manglik, Raj M.Publisher:Cengage Learning
