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
At entrance to the nozzle, the pressure is 0.180 MPa and the temperature is 1200 K. The kinetic energy of the gas entering the nozzle is very much smaller than ... The specific heat of the exhaust gas varies with temperature approximately as follows: ... Problem 4P: In an aircraft jet engine at takeoff, the combustion product.
Answer:
The final temperature of water is 381.39 °C.
Explanation:
Given that
Mass of water = 5 kg
Heat transfer at constant pressure Q = 2960 KJ
Initial temperature = 240 °C
We know that heat transfer at constant pressure given as follows

We know that for water

Lets take final temperature of water is T
So


T=381.39 °C
So the final temperature of water is 381.39 °C.
Correct answer is option E. No dimensions
As we know formula Pressure (P) is
also,
- Dimensional formula of <em>Pressure is </em>

- Dimensional formula of <em>length is L </em>
- Dimensional formula of <em>mass is M</em>
- Dimensional formula of <em>velocity is </em>

So, as given W=
Dimensional formula of W =
since all terms get cancelled
Work is dimensionless i.e no dimensions
Learn more about dimensions here brainly.com/question/20351712
#SPJ10
Answer:
The principal stresses are σp1 = 27 ksi, σp2 = -37 ksi and the shear stress is zero
Explanation:
The expression for the maximum shear stress is given:

Where
σx = stress in vertical plane = 20 ksi
σy = stress in horizontal plane = -30 ksi
τM = 32 ksi
Replacing:

Solving for τxy:
τxy = ±19.98 ksi
The principal stress is:

Where
σp1 = 20 ksi
σp2 = -30 ksi
(equation 1)
equation 2
Solving both equations:
σp1 = 27 ksi
σp2 = -37 ksi
The shear stress on the vertical plane is zero