Answer:
Code is given below:
Explanation:
.data
str1: .space 20
str2: .space 20
msg1:.asciiz "Please enter string (max 20 characters): "
msg2: .asciiz "\n Please enter string (max 20 chars): "
msg3:.asciiz "\nSAME"
msg4:.asciiz "\nNOT SAME"
.text
.globl main
main:
li $v0,4 #loads msg1
la $a0,msg1
syscall
li $v0,8
la $a0,str1
addi $a1,$zero,20
syscall #got string to manipulate
li $v0,4 #loads msg2
la $a0,msg2
syscall
li $v0,8
la $a0,str2
addi $a1,$zero,20
syscall #got string
la $a0,str1 #pass address of str1
la $a1,str2 #pass address of str2
jal methodComp #call methodComp
beq $v0,$zero,ok #check result
li $v0,4
la $a0,msg4
syscall
j exit
ok:
li $v0,4
la $a0,msg3
syscall
exit:
li $v0,10
syscall
methodComp:
add $t0,$zero,$zero
add $t1,$zero,$a0
add $t2,$zero,$a1
loop:
lb $t3($t1) #load a byte from each string
lb $t4($t2)
beqz $t3,checkt2 #str1 end
beqz $t4,missmatch
slt $t5,$t3,$t4 #compare two bytes
bnez $t5,missmatch
addi $t1,$t1,1 #t1 points to the next byte of str1
addi $t2,$t2,1
j loop
missmatch:
addi $v0,$zero,1
j endfunction
checkt2:
bnez $t4,missmatch
add $v0,$zero,$zero
endfunction:
jr $ra
Answer:
c = 18.0569 mm
Explanation:
Strategy
We will find required diameter based on angle of twist and based on shearing stress. The larger value will govern.
Given Data
Applied Torque
T = 750 N.m
Length of shaft
L = 1.2 m
Modulus of Rigidity
G = 77.2 GPa
Allowable Stress
г = 90 MPa
Maximum Angle of twist
∅=4°
∅=4*
/180
∅=69.813 *10^-3 rad
Required Diameter based on angle of twist
∅=TL/GJ
∅=TL/G*
/2*c^4
∅=2TL/G*
*c^4
c=
∅
c=18.0869 *10^-3 rad
Required Diameter based on shearing stress
г = T/J*c
г = [T/(J*
/2*c^4)]*c
г =[2T/(J*
*c^4)]*c
c=17.441*10^-3 rad
Minimum Radius Required
We will use larger of the two values
c= 18.0569 x 10^-3 m
c = 18.0569 mm
Answer:
The flux (volume of water per unit time) through the hoop will also double.
Explanation:
The flux = volume of water per unit time = flow rate of water through the hoop.
The Flow rate of water through the hoop is proportional to the area of the hoop, and the velocity of the water through the hoop.
This means that
Flow rate = AV
where A is the area of the hoop
V is the velocity of the water through the hoop
This flow rate = volume of water per unit time = Δv/Δt =Q
From all the above statements, we can say
Q = AV
From the equation, if we double the area, and the velocity of the stream of water through the hoop does not change, then, the volume of water per unit time will also double or we can say increases by a factor of 2
Answer:
blah blah blah sh ut up read learn
Answer: downward velocity = 6.9×10^-4 cm/s
Explanation: Given that the
Diameter of the smoke = 0.05 mm = 0.05/1000 m = 5 × 10^-5 m
Where radius r = 2.5 × 10^-5 m
Density = 1200 kg/m^3
Area of a sphere = 4πr^2
A = 4 × π× (2.5 × 10^-5)^2
A = 7.8 × 10^-9 m^2
Volume V = 4/3πr^3
V = 4/3 × π × (2.5 × 10^-5)^3
V = 6.5 × 10^-14 m^3
Since density = mass/ volume
Make mass the subject of formula
Mass = density × volume
Mass = 1200 × 6.5 × 10^-14
Mass M = 7.9 × 10^-11 kg
Using the formula
V = sqrt( 2Mg/ pCA)
Where
g = 9.81 m/s^2
M = mass = 7.9 × 10^-11 kg
p = density = 1200 kg/m3
C = drag coefficient = 24
A = area = 7.8 × 10^-9m^2
V = terminal velocity
Substitute all the parameters into the formula
V = sqrt[( 2 × 7.9×10^-11 × 9.8)/(1200 × 24 × 7.8×10^-9)]
V = sqrt[ 1.54 × 10^-9/2.25×10-4]
V = 6.9×10^-6 m/s
V = 6.9 × 10^-4 cm/s