Assume you have a four-column matrix named BoltStock25 containing information about quarter-inch-diameter bolts your company has in stock. The first column contains the bolt length, the second column contains the number in stock, the third column contains the minimum stock that should be maintained (based on usage), and the fourth column contains the maximum number allowed in stock (based on storage space). You wish to determine how many bolts of each type to order according to the following guidelines:
- If the number in stock falls to less than the minimum stock desired plus 50 for any specific length, more of that length should be ordered.
- All orders must be in multiples of 100 of any specific length.
- The current stock plus the number ordered for a specific length must not exceed the maximum allowable stock.
- When an order is placed for a specific length, the total stock should then be as close as possible to the maximum allowed stock.
- You may assume that the maximum stock allowed is always at least 150 more than the minimum stock desired.
Create a new two-column matrix BoltOrder25. The first column should contain the lengths of all bolts that will be ordered. The second column will contain the number of each length to be ordered.
Example: One row of BoltStock25 contains [3, 219. 175, 900]. Since the number in stock (219) is less than 50 more than the minimum stock desired (175), more should be ordered to bring the total as close to 900 as possible. This means 600 should be ordered, bringing the total to 819.
Want to see the full answer?
Check out a sample textbook solutionChapter 15 Solutions
THINKING LIKE AN ENGINEER W/ACCESS
- The steel cables supporting the "Lion's Gate" suspension bridge are approximate1y 1200 meters long. If the temperature ranges from –9° to +26 ° C between winter and summer extremes, calculate the variation in the length of the cables.Linear coefficient (steel): 12 x 10-6/ ° C .arrow_forwardSketch and explain a PV Diagram and a Temperature Entropy Diagram for a 4 stroke diesel enginearrow_forward0.113 cubic meter of air at 8.25 bar is expanded in a cylinder until the volume is 0.331 cubic meters. Calculate the final pressure and work done if the expansion is Isothermal Adiabatic (take γ = 1.4)arrow_forward
- The effective radius of the pads in a single collar thrust block is 230 mm and the total load on the thrust block is 240 kN when the shaft is running at 93 rev/mm. Taking the coefficient of friction between thrust collar and pads to be 0.025, find (i) the power lost due to friction, (ii) the heat generated per hour, iii) the mass flow of oil in kilograms per hour through the block assuming all the heat is carried away by the oil, allowing an oil temperature rise of 20°C and taking the specific heat of the oil to be 2 kJ/kg k.arrow_forwardBrake Specific Fuel Consumption - 0.3 kg/kwh, Mechanical Efficiency- 90% Calorific Value of Fuel -45 MJ/kg. Given these values, find the indicated power, indicated thermal efficiency and brake thermal efficiency.arrow_forwardThe following data were taken during a one-hour trial run on a single cylinder, single acting, four-stroke diesel engine of cylinder diameter of 175 mm and stroke 225 mm , the speed being constant at 1000 rpm :Indicated mep: 5.5 barsDiam. of rope brake: 1066 mmLoad on brake: 400 NReading of balance: 27 NFuel consumed: 5.7 kgCalorific value: 44.2 MJ/kgCalculate the indicated power, brake power, specific fuel consumption per indicated kWh and per brake kWh , mechanical efficiency, indicated thermal and brake thermal efficiency.arrow_forward
- State Charles's Law. A receiver contains 20 kg of air at 3200 kN/m sq. gauge and 16 degrees C . Calculate the new pressure and heat energy transfer if air is heated to 35 degrees C . Neglect any expansion of the reservoir. Take R for air = 0.287 kJ / kg / ° K ,Specific heat at constant volume Cv = 0.718 kJ / kg / ° K ,Atmospheric pressure = 100 kN/m²arrow_forwardDefine Mechanical Efficiency, Brake and Indicated thermal efficiencyarrow_forwardIn a single cylinder, four stroke, single acting gas engine, the cylinder diameter is 180 mm and the stroke is 350 mm . When running at 250 rpm , the mean area of the indicator diagram taken off the engine is 355 mm² , length of diagram 75 mm , scale of the indicator spring 90 kN/m sq per mm , and the number of explosions was counted to be 114 per minute. Calculate the indicated power.arrow_forward
- A diesel engine is being assembled in a shop where the temperature is kept at 20 ° C . At this temperature, the length of a steel valve push rod is 460 mm . Calculate the clearance required if the engine is expected to reach an operating temperature of 96 ° C .Linear coefficient (steel): 12 x 10-6/ ° C .arrow_forwardA) If collor A has a velocity of 10 ft/s determine the velocity of collor B B) If collor A has an acceleration of 5 ft/s determine the acceleration of collor Barrow_forwardI'm having trouble figuring out the forces on Ay and By.arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY