Functions to compute the stress and strain in a steel rod

Assignment Help C/C++ Programming
Reference no: EM13938906

Write a main function and the following functions to compute the stress and strain in a steel rod of diameter D (inches) and length L (inches) subject to the compression loads p of 10,000 to 1,000,000 pounds in increments of 100,000 pounds. The modulus of elasticity E for steel is 30 x 10 with an exponent of 6.

A function to compute the stress from the formulas
Stress f = P/A (p divided by a)
Where A = πD^2 /4.0

A function to compute the strain from the formulas
Elongated pr shortened length L= FL/E
Strain e= L/L = f/E

A function to output the stress and strain at different loads of P.

Reference no: EM13938906

Questions Cloud

Determine whether the debt-to-equity ratio is increase : Determine whether the debt-to-equity ratio is increasing or decreasing and whether the company should be concerned.
What aspect of vision has he or she lost : What seems to be the most difficult issue he or she has encountered as a result of vision loss? How does this personal experience compare with the descriptions in your text?
What are the specific key environmental forces : In your opinioin, what are the specific key environmental forces that created an opportunity for your company? Have there been changes in the purchasing patterns of your organization's target market in recent years
Describe the structure of hemoglobin : What does a electrocardiogram measure and record? List the normal ECG deflection waves and intervals. What do the various ECG waves represent?
Functions to compute the stress and strain in a steel rod : A function to output the stress and strain at different loads of P.
Abc corporation is considering an expansion project : ABC Corporation is considering an expansion project. The necessary equipment could be purchased for $29,388 and shipping and installation costs are another $717. The project will also require an initial $4,436 investment in net working capital. The c..
Find the npv and pi of a project that costs : Find the NPV and PI of a project that costs $1,500 and returns $800 in year one and $850 in year two. Assume the project's cost of capital is 8 percent.
What is your chosen firms competitive advantage : Write the essay on your chosen Multinational Enterprise. What is your chosen firm's competitive advantage? And is its competitive advantage sustainable in the long-term?
Program to compute with two numbers. : I have the 1st two statements figured out, and had the arithmetic figured out based on results of 22 and 16, but turns out I interpreted it wrong and results should be what's posted above when the user changes the two numbers. The tutorial says no..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Function alter with two parms passed by reference

Write a function alter with two parms passed by reference: x and y. alter changes the value of x to x+y and changes the value of y to x*y. Write a main function to read in two integers, print the two integers, call the function alter using the two..

  Value referenced by the pointer.

Add 10 to the value referenced by pointer switch.Add 4 to the address stored in pointer switch.Subtract 5 from the value referenced by the pointer.

  Write a program that will convert a temperature

Write a program that will convert a temperature in Fahrenheit to its equivalent in Celsius. Show the Celsius temperature formatted to 1 decimal place.

  Write a cc program to prepare the weighted scoring model

write a cc program to prepare the weighted scoring model. final grades are based on three exams worth 15 20 and 25

  Generate a random number and guess what the number is

Prepare a program in c++ that generates a random number and asks the user to guess what the number is. If the user's guess is higher than the random number, the program should display "Too high, try again."

  What does the given code print

What does the following code print: char* s1 = "ABCDE"; char* s2 = "ABCE"; if (strcmp(s1,s2) endl; else cout = " endl.

  An application that instantiates five librarybook object

Write an application that instantiates five LibraryBook objects

  What is the output of the corrected loop

What is the output of the loop as it is written and correct the syntax of the loop so that the logic of the corrected loop corresponds to the formatting of the original loop. What is the output of the corrected loop?

  Examine the differences between a linear and augmented line

"Developing a Website" Please respond to the following: Examine the differences between a linear and augmented linear structure. Examine the differences between hierarchical and linear structures. Explain why a coherent structure is necessary. Provid..

  Draw a two-dimensional house seen from the front

Draw a two-dimensional house seen from the front, the way a child would: with a dor, two windows, and a roof with a chimney

  Program to remove comments from the program

A C++ program that asks the user to enter a name of a file containing a C++ program - Program reads the file and produces an output that deletes all comments beginning with // and comments between /* */

  Why should stream operators be overloaded as friend function

Why should the stream operators and >> be overloaded as friend functions? Why should the arithmetic operators +, -, *, and / be overloaded as friend functions?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd