Answer:
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
int main() {
string name[5];
int age[5];
int i,j;
for ( i = 0; i<=4; i++ ) {
cout << "Please enter student's name:";
cin >> name[i];
cout << "Please enter student's age:";
cin >> age[i];
}
for (i=0;i<=4;i++){
cout<<"Age of "<< name[i]<<" is "<<age[i]<<endl;
}
}
Output of above program is displayed in figure attached.
Answer:
int()
Explanation:
float() is using decimals, so that can't be it, like float(input( "how much does this cost?"))
print() is used to print something, not a user asking, like print("hello")
string() means like a whole, like string( I am good)
By elimination, int() is correct.
Hope this helps!
Answer:
1561.84 MPa
Explanation:
L=20 cm
d1=0.21 cm
d2=0.25 cm
F=5500 N
a) σ= F/A1= 5000/(π/4×(0.0025)^2)= 1018.5916 MPa
lateral strain= Δd/d1= (0.0021-0.0025)/0.0025= -0.16
longitudinal strain (ε_l)= -lateral strain/ν = -(-0.16)/0.3
(assuming a poisson's ration of 0.3)
ε_l =0.16/0.3 = 0.5333
b) σ_true= σ(1+ ε_l)= 1018.5916( 1+0.5333)
σ_true = 1561.84 MPa
ε_true = ln( 1+ε_l)= ln(1+0.5333)
ε_true= 0.4274222
The engineering stress on the rod when it is loaded with a 5500 N weight is 1561.84 MPa.
I don’t know what you mean by that
Answer:
The question has some details missing : The 35-kg block A is released from rest. Determine the velocity of the 13-kgkg block BB in 4 ss . Express your answer to three significant figures and include the appropriate units. Enter positive value if the velocity is upward and negative value if the velocity is downward.
Explanation:
The detailed steps and appropriate calculation is as shown in the attached file.