Answer:
M = 281.25 lb*ft
Explanation:
Given
W<em>man</em> = 150 lb
Weight per linear foot of the boat: q = 3 lb/ft
L = 15.00 m
M<em>max</em> = ?
Initially, we have to calculate the Buoyant Force per linear foot (due to the water exerts a uniform distributed load upward on the bottom of the boat):
∑ Fy = 0 (+↑) ⇒ q'*L - W - q*L = 0
⇒ q' = (W + q*L) / L
⇒ q' = (150 lb + 3 lb/ft*15 ft) / 15 ft
⇒ q' = 13 lb/ft (+↑)
The free body diagram of the boat is shown in the pic.
Then, we apply the following equation
q(x) = (13 - 3) = 10 (+↑)
V(x) = ∫q(x) dx = ∫10 dx = 10x (0 ≤ x ≤ 7.5)
M(x) = ∫10x dx = 5x² (0 ≤ x ≤ 7.5)
The maximum internal bending moment occurs when x = 7.5 ft
then
M(7.5) = 5(7.5)² = 281.25 lb*ft
Answer:
- using System;
- public class Program
- {
- public static void Main()
- {
- Console.WriteLine("Enter number of students: ");
- int num = Convert.ToInt32(Console.ReadLine());
- string [] firstName = new string[num];
- string [] lastName = new string[num];
-
- for(int i=0 ; i < num; i++){
- Console.WriteLine("Enter first name: ");
- firstName[i] = Console.ReadLine();
-
- Console.WriteLine("Enter last name: ");
- lastName[i] = Console.ReadLine();
- }
-
- for(int j=0; j < num; j++){
- Console.WriteLine(lastName[j] + "," + firstName[j]);
- }
- }
- }
Explanation:
Firstly, prompt user to enter number of student to be stored (Line 6- 7). Next, create two array, firstName and lastName with num size (Line 8-9).
Create a for-loop to repeat for num times and prompt user to enter first name and last name and then store them in the firstName and lastName array, respectively (Line 11 - 17).
Create another for loop to traverse through the lastName and firstName array and display the last name and first name by following the format given in the question (Line 19 - 21).
Answer:
def theRoundTrip(movement):
x=0
y=0
for i in movement:
if i not in ["U","L","D","R"]:
print("bad input")
return
if i=="U":
y+=1
if i=="L":
x-=1
if i=="D":
y-=1
if i=="R":
x+=1
return x==0 and y==0