Question
use these equations to calculate the values you need: = ( + ) 2 Where is the spring wire length, is the number of coils
use these equations to calculate the values you need: = ( + ) 2 Where is the spring wire length, is the number of coils in the spring, is the outer diameter of the spring, and is the inner diameter of the spring. = ( )2 Where is spring mass and is the spring metal density. All springs in the system will be made with the same high-carbon steel. The steel, oil tempered ASTM A 229, has a density of 7.861 g/cm3. Your program must work within a larger program structure so you must write it as a function based on what you know about the spring project and the other parts of the larger program. You know the following information: Your function will require two inputs: one input is the inner and outer diameters of the spring, the other input is the number of coils in the spring. The diameters and number of coils must meet certain criteria: o The diameter input variable must be a 2-element vector and the number of coils input must be a scalar.o The first element of the diameter vector must be the inner diameter (i.e., the smaller diameter). The inner diameter cannot be greater than 95% of the outer diameter. o Both elements within the diameter vectors must be lengths between 2.5 cm and 30 cm, inclusive. o The spring must have at least 4 coils. Your function must return two output arguments: wire length (scalar) and spring mass (scalar) Your function must follow the teams flowchart, which is shown below
Get diameter vector from input arguments Define the spring metal density
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started