Question

Times New Ro - 12 AN Y Abb Abbd Aalb Hd Abbcode IT Normal No Spac. Headings Tele subtitles Paragraph FALL 2019 ENGR 200 P2: S- de Aabe dabbel ad AaBCd dobbel label AABACO ABC ABC AaBbcd Subtle Em Emphasis Intense E. Strong Quote Intense Q._ Subtle Re

There is a specific input method as well that is needed to be used. If possible could you help with the following criteria? It is posted below.

   PROGRAM DESCRIPTION 

   DESCRIPTION OF VARIABLES
   NAME         |  TYPE    | DESCRIPTION                                
   -----------------------------------------------------------------------------

*******************************************************************************/

/* Preprocessor directives */
#include <stdio.h>
#include <math.h>

/* Main function */
int main(void)
{
   /* Declare variables */

   
   /* Print headings */
   printf("********************************************");
   printf("\n ");
   
   /* Input values */
   
   /* Compute */
   

   /* Print output values */
   printf("\n\nRESULTS");
   printf("\n********************************************\n\n\n");

   /* Exit the program */
   return 0;
}
/******************************************************************************/
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Code

#include<stdio.h>
#include<math.h>

int main()
{
   /* Declare variables */
   float F,L,A0,L0;
   float stress,strain;

   /* Print headings */
   printf("********************************************");
   printf("\n\tSIMPLE TRUE STRESS AND STRAIN\n\n");
  
   /* Input values */
   printf("Enter Force in pound :");
   scanf("%f",&F);
   printf("Enter Gauge Length in Inches :");
   scanf("%f",&L);
   printf("Enter Initial x-sectional area in in^2:");
   scanf("%f",&A0);
   printf("Enter Initial Gauge Length in Inches :");
   scanf("%f",&L0);

   /* Compute */
   stress=(F*L)/(L0*A0);
   strain=log(L/L0);

   /* Print output values */
   printf("\n\nResult\n");
   printf("True stress = %.2f psi\n",stress);
   printf("True strain = %.2f in/in\n",strain);
   printf("********************************************");
   printf("\n");

   /* Exit the program */
   return 0;
}

output

- x C. C:\WINDOWS\system32\cmd.exe ******************************************** SIMPLE TRUE STRESS AND STRAIN Enter Force in

If you have any query regarding the code please ask me in the comment i am here for help you. Please do not direct thumbs down just ask if you have any query. And if you like my work then please appreciates with up vote. Thank You.

Add a comment
Know the answer?
Add Answer to:
There is a specific input method as well that is needed to be used. If possible...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I have a question during my Tensile Test of Sturctural Steel. Ive collected all the data, can you calculate the Elastic...

    I have a question during my Tensile Test of Sturctural Steel. Ive collected all the data, can you calculate the Elastic Modulus and referring to the stress strain curve of your samples , discuss and compare the results, specify the similarities and differences if there is any and provide possible reasons. Thanks Date of Lab Mark (for tutor only) 1. General information of the sample: Web sample or flange sample? web Specimen dimension (Before Testing) Width, mm Gauge length, mm...

  • 1. State the difference between I and polycrystalline materials. Deformability of BCC and FCC met...

    1. State the difference between I and polycrystalline materials. Deformability of BCC and FCC metals. Strength and UTS of metals. 2. Determine the slip systems in BCC and FCC materials. Show the calculations that support your determinations. 3. Find the indices that represent the planes in the following cubic unit cell and show the X-Ray diffract-ability of the these planes in FCC and BCC structures: 4. A tensile specimen with a 12 mm initial diameter and 50 mm gauge length...

  • Figure < 1 of 1 Consider, for instance, a bar of initial length L and cross-sectional...

    Figure < 1 of 1 Consider, for instance, a bar of initial length L and cross-sectional area A stressed by a force of magnitude F. As a result, the bar stretches by AL (Figure 1) Let us define two new terms: • Tensile stress is the ratio of the stretching force to the cross-sectional area: stress = 5 • Tensile strain is the ratio of the elongation of the rod to the initial length of the bar strain= 41 It...

  • Prime Number Programing in C Note: The program is to be written using the bitwise operation....

    Prime Number Programing in C Note: The program is to be written using the bitwise operation. Use an integer array (not a Boolean array) and a bit length (for instance 32 bits). In this program you will write a C program to find all prime numbers less than 10,000. You should use 10,000 bits to correspond to the 10,000 integers under test. You should initially turn all bits on (off) and when a number is found that is not prime,...

  • i need help in problem 3.6 which is the first picture. the other 2 pictures are...

    i need help in problem 3.6 which is the first picture. the other 2 pictures are the equations that i need. opened read only to prevent modification incompressibly, which because of the large strains cannot be accoun for via v = ). If the original length is L and the current length is /, volu conservation requires LA,=IA - A=A.(L/I) assuming uniform str and strain. Hence, 0x = A 4 = AS where A=1/L is a stretch ratio and is...

  • Please write the python functions Problem: Electric wire (Figure is a cylindrical conductor covered by an...

    Please write the python functions Problem: Electric wire (Figure is a cylindrical conductor covered by an insulating material. Figure 2 shows the structure ofa single conductor. The resistance of a piece ofwire is given by the formula: A d where ρ is the resistivity of the conductor, and I (in meter), A, and d (in meter) are the length, cross-sectional area, and diameter of the wire. The wire diameter, d, is commonly specified by the American Wire Gauge (AWG). Which...

  • Do case #4 Background: The data shown on the following page was obtained from Tension Tests...

    Do case #4 Background: The data shown on the following page was obtained from Tension Tests of 10 unknown ductile metals. For each test, various dimensions and loads were measured before and after failure. The data is a summary of readings taken during the test (loads vs extensometer readings). Purpose: To determine the stress, strain, yield stress and modulus of elasticity of a circular shaped specimen from a tension test. Directions: A. For your particular case (depending on your last...

  • Zybooks 11.12 LAB*: Program: Online shopping cart (continued) Python 3 is the code needed and this...

    Zybooks 11.12 LAB*: Program: Online shopping cart (continued) Python 3 is the code needed and this is in Zybooks Existing Code # Type code for classes here class ItemToPurchase: def __init__(self, item_name="none", item_price=0, item_quantity=0): self.item_name = item_name self.item_price = item_price self.item_quantity = item_quantity # def __mul__(self): # print_item_cost = (self.item_quantity * self.item_price) # return '{} {} @ ${} = ${}' .format(self_item_name, self.item_quantity, self.item_price, print_item_cost) def print_item_cost(self): self.print_cost = (self.item_quantity * self.item_price) print(('{} {} @ ${} = ${}') .format(self.item_name, self.item_quantity, self.item_price,...

  • III. ASSIGNMENT 2.1 As discussed in class, the example program enumerates all possible strings (or if...

    III. ASSIGNMENT 2.1 As discussed in class, the example program enumerates all possible strings (or if we interpret as numbers, numbers) of base-b and a given length, say l. The number of strings enumerated is b l . Now if we interpret the outputs as strings, or lists, rather than base-b numbers and decide that we only want to enumerate those strings that have unique members, the number of possible strings reduces from b l to b!. Furthermore, consider a...

  • ASSIGNMENT DUE DATE GOT PUSHED BACK TO LATE THIS WEEK. PLEASE READ COMMENTS AND CODE BEFORE...

    ASSIGNMENT DUE DATE GOT PUSHED BACK TO LATE THIS WEEK. PLEASE READ COMMENTS AND CODE BEFORE ANSWERING CODING SECTIONS HW07 #Q1-Q5 HW08 #Q1-Q2 // READ BEFORE YOU START: // Please read the given Word document for the project description with an illustrartive diagram. // You are given a partially completed program that creates a list of students for a school. // Each student has the corresponding information: name, standard, and a linked list of absents. // Please read the instructions...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT