A program to compute the diameter in centimeters of steel rod, and aluminum rod, and a copper rod, which can withstand a particular compression load. The allowable compression stress of steel, aluminum, and copper is 25,000 lbs/m², 15,000 lbs/m², and 20,000 lbs/m², respectively.

Area of rod = compression load
________________________
Allowable compression stress

Area = π r^2 where diameter d= 2r

Input the compression load. Print the type of material, load, allowable stress, and diameter. Used formatted output with field with specifications that align output.

Solution Preview

Hi, this is my c program. I run the code in turbo c++. Attached is my output. Hope it helps.

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

void main()
{
double comprLoad,comprStress; /*to store load,stress of rod */
double d,area; /* for diameter and area of the rod */
char type[20]; /* rod type */

/* ...

Solution Summary

The solution gives a complete C program on computing the diameters of steel rod, aluminum rod, and copper rod using the given formula. The output of the program is also provided for reference.

9. The temperature distribution u(x, t) in a 2-m long brass rod is governed by the problem
......
(a) Determine the solution for u(x, t).
(b) Computethe temperature at the midpoint of therod at the end of 1 hour.
(c) Computethe time it will take for the temperature at that point to diminish to 5° C.
(d) Computethe ti

A 1 kg collar C slides without friction along therod OA and is attached to rod BC by a frictionless pn. Therods rotate in the horizontal plane. At the instant shown BC is rotating counterclockwise and the speed of C is 1m/s, increasing at a rate of 1.2m/s^2. Determine at this instant, a) the tension n rod BC, b) the force exer

The 6lb slender rod AB is originally shown at rest, suspended in the vertical position. A 1lb ball is thrown at therod with the velocity v= 50ft/s and strikes therod at C. Determine the angular velocity of therod just after the impact. Take e = 0.7 and d= 2ft. (See attachment for diagram)

Thediameters of 100 rods produced by Rodco are listed in the file P03_18.xlsx. Based on these data, you can be approximately 99.7% sure that the diameter of a typical rod will be between what two numbers?

Thediameters of grapefruits in a certain orchard are normally distributed with a mean of 6.95 inches and a standard deviation of 0.75 inches. Show all work.
(A) What percentage of the grapefruits in this orchard have diameters less than 6.6 inches?
(B) What percentage of the grapefruits in this orchard are larger than 6.

A 3.0 kg rod of length 5.0 m has at opposite ends point masses of 4.0 kg and 6.0 kg(a) Will the center of mass of this system be (1) nearer to the 4.0 kg mass, (2) nearer to the 6.0 kg mass, or (3) at the center of therod? Why?
(b) Where is the center of mass of the system?

A 1.10 m-long massless rod is pivoted at one end and swings around in a circle on a frictionless table. A block with a hole through the center can slide in and out along therod. Initially, a small piece of wax holds the block 10.0 cm from the pivot. The block is spun at 50.0 rpm, then the temperature of therod is slowly increa

The resistivity of a semiconductor can be modified by adding different amounts of impurities. A rod of semiconducting material of length L and cross-sectional area A lies along the x-axis between x=0 and x=L. The material obeys Ohm's law, and its resistivity varies along therod according to p(x)= p0exp(-x/L). The end of therod

A homogeneous and uniform rod of length 10ft and weight 100lbs rests in the corner of a room as shown. The coefficient of static friction between therod and floor is (Us=.4). There is no friction between therod and the wall although there is a compression force. What is the minimum angle that therod can make with the floor an