Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can someone please help me write a in C code ANSI. Please No C++ ONLY C source program in standard ANSI C format only. No
Can someone please help me write a in C code ANSI.
Please No C++ ONLY C source program in standard ANSI C format only. No other format will be accepted ASSIGNMENT: Write a C program that asks the user to enter the strain for a 304 stainless steel sample in in/in. If the strain is less than 0, an error message should be printed and the program should end. If the strain is greater than the strain at the fracture stress (the strain at the end of the necking region), print that the sample broke and end the program. If the strain passes the error check (that is, if the strain is within acceptable limits), the formulas above should be used to calculate the stress based on the strain. Print the strain, the stress in ksi, and which regime the strain corresponds to. INTRODUCTION: For a solid body, stress indicates the strength of the material from which the body is made, while strain measures the deformation of the body under a force. Through tension and compression tests, the stress and strain can be related to each other and give insight into how much force a material can experience without undue deformation or failure. Once stress and strain data have been collected, they can be plotted to produce a stress-strain diagram. A sample stress-strain diagram is shown below. For this problem, use the following constants: Young's Modulus Elastic Limit - Strain Yield Stress (stress in yielding region) K true fracture stress 28.000 ksi 0.001527 in/in 30 ksi 184.923 ksi 0.45 n 0 - ultimate stress fracture stress proportional limit elastic limit yield stress And use the following strain ranges for the regions: Y Elastic Region Yielding Strain Hardening Necking 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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