![Problem Solving with C++ (9th Edition)](https://www.bartleby.com/isbn_cover_images/9780133591743/9780133591743_largeCoverImage.gif)
It is important to consider the effect of thermal expansion when building a structure that must withstand changes in temperature. For example, a metal beam will expand in hot temperatures. The additional stress could cause the structure to fail. Similarly, a material will contract in cold temperatures. The linear change in length of a material if it is allowed to freely expand is described by the following equation:
L Δ=α L 0 T Δ
Here, L0 is the initial length of the material in meters, LΔ is the displacement in meters, TΔ is the change in temperature in Celsius, and a is a coefficient for linear expansion.
Write a
Aluminum | 2.31 × 10–5 |
Copper | 1.70 × 10–5 |
Glass | 8.50 × 10–6 |
Steel | 1.20 × 10–5 |
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Chapter 2 Solutions
Problem Solving with C++ (9th Edition)
Additional Engineering Textbook Solutions
C++ How to Program (10th Edition)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Software Engineering (10th Edition)
Java How To Program (Early Objects)
- The Harris-Benedict equation estimates the number of calories your body needs to maintain your weight if you do no exercise. This is called your basal metabolic rate, or BMR. The calories needed for a woman to maintain her weight is: WBMR = 655 + (4.3 × weight in pounds) + (4.7 × height in inches) − (4.7× age in years) The calories needed for a man to maintain his weight is: MBMR = 66 + (6.3 × weight in pounds) + (12.9 × height in inches) − (6.8 × age in years) A typical chocolate bar will contain around 230 calories. Write a java program that allows the user to input his or her weight in pounds, height in inches, and age in years. The program should then output the number of chocolate bars that should be consumed to maintain one’s weight for both a woman and a man of the input weight, height, and age. NOTE: This is an application of a selection statement! Input Data: Use a named constant for the number of calories in a “typical chocolate bar.” Use Scanner methods to enter the…arrow_forwardNumerical Integration : Definite Integral Language : Pythonarrow_forwardTwo small charged objects attract each other with a force F when separated by a distance d.If the charge on each object is reduced to one-fourth of its original value and the distance between them is reduced to d/2,the force becomes?arrow_forward
- Wo Home I(O noPHP) I Homework 10 Q2 Q1 Q3 L Q4 Q5 Q6 (a) Q7 Q8 Q9 Q10 (x = L, y = 0) |(x = 0, y = 0) (b) A beam is subjected to a linearly increasing distributed load. The elastic curve (deflection) is shown in the figure. The equation to find the maximum deflection is given below. Create a matlab code where you can calculate the maximum deflection (dy/dx=0) using the bisection method. Use initial guesses of 1 and 5, L= 6.27 m, E = 73000 kN/cm2, I=38000 cm4, and w0= 2.5 kN/cm. What will be the value of x (location of maximum deflection) after 15 bisection iteration? wo -(-æ³ +2L²x³ – L^x) 120EIL dy de wo (-5xª + 6L²x² – Lª) 120EIL Choices 2.5236 1.402 2.804 4.206 Submit I Attempts 1 |arrow_forwardMatlab A rocket is launched vertically and at t-0, the rocket's engine shuts down. At that time, the rocket has reached an altitude of ho- 500 m and is rising at a velocity of t125 m/s. Gravity then takes over. The height of the rocket as a function of time is: h(t)- ho+vot-gt², t20 where g = 9.81 m/s². The time t=0 marks the time the engine shuts off. After this time, the rocket continues to rise and reaches a maximum height of himax meters at time t-tmax. Then, it begins to drop and reaches the ground at time t = tg. a. Create a vector for times from 0 to 30 seconds using an increment of 2 s. b. Use a for loop to compute h(t) for the time vector created in Part (a). e. Create a plot of the height versus time for the vectors defined in Part (a) and (b). Mark the z and y axes of the plot using appropriate labels. d. Noting that the rocket reaches a maximum height, Amax, when the height function, h(t), attains a maxima, compute the time at which this occurs, tmax, and the maximum…arrow_forwardThis is not a graded assignment but a part of a review I'm studying, please do not reject the question, and thank you in advance for your solution!arrow_forward
- Matlab A rocket is launched vertically and at t-0, the rocket's engine shuts down. At that time, the rocket has reached an altitude of ho- 500 m and is rising at a velocity of to 125 m/s. Gravity then takes over. The height of the rocket as a function of time is: h(t)-ho+vot-gt², t20 where g -9.81 m/s². The time t-0 marks the time the engine shuts off. After this time, the rocket continues to rise and reaches a maximum height of Amax meters at time t = tmax. Then, it begins to drop and reaches the ground at time t = tg. a. Create a vector for times from 0 to 30 seconds using an increment of 2 s. b. Use a for loop to compute h(t) for the time vector created in Part (a). e. Create a plot of the height versus time for the vectors defined in Part (a) and (b). Mark the and y axes of the plot using appropriate labels. d. Noting that the rocket reaches a maximum height, max, when the height function, h(t), attains a maxima, compute the time at which this occurs, max, and the maximum height,…arrow_forward3t 8. A parametrie equation is given by x= (Note that the y = denominator approaches 0 when t approaches -1) Plot the function (the plot is called the Folium of Descartes) by plotting two curves in the same plot-one for -30 sts-1.6 and the other for -0.65 ts 40.arrow_forwardPython, Please use Spyderarrow_forward
- applied numericl methodsarrow_forwardQ1/The pressure drop in pascals (Pa) for a fluid flowing in a pipe with a sudden decrease in diameter can be determined based on the loss of head equation given below: h = 24-11 2g Area A Area A Area A Where: V₂ is the velocity in position 2 (m/s), g: is acceleration due to gravity = 9.81 m/s², A₁ and A₂ are the cross-sectional areas of the tube in position 1 and 2 respectively. A==d² Where: d is the diameter (m). Write a program in a script file that calculates the head loss. When the script file is executed, it requests the user to input the velocity (V₂) in m/s and values of diameters (d, and d₂). The program displays the inputted value of v followed by a table with the values of diameters in the first and second columns and the corresponding values of h, in the third column. 2 2arrow_forwardWirte a matlab code to plot the 3D image of a helix: Use the following parameters and equations that define the axes in 3D: p=0.199; Pitch distance (distance between the turns)a=0.02999500; Radius of the helis wireb=0.191; Radius of the helixn = 5, is the number of helis turns. δ = atan(p/(2*pi*b)); The pitch anglex’ = b + a cos(Ө)y’ = -a sin(Ө) sin(δ)x = x’ sin(ф)+y’ cos(ф);y =-x’ cos(ф)+y’ sin(ф);z = p*ф/(2*pi)+a*sin(Ө)*cos(δ);arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
![Text book image](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)