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:
Plastic deformation, irreversible or permanent. Deformation mode in which the material does not return to its original shape after removing the applied load. This happens because, in plastic deformation, the material undergoes irreversible thermodynamic changes by acquiring greater elastic potential energy.
Elastic deformation, reversible or non-permanent. the body regains its original shape by removing the force that causes the deformation. In this type of deformation, the solid, by varying its tension state and increasing its internal energy in the form of elastic potential energy, only goes through reversible thermodynamic changes.
Answer:
More Drag on the down going wing and More Lift on the up going wing
Explanation:
The autorotation spins of blades used in airborne wind energy technology sectors help drive and move the winds and water propeller-type turbines or shafts of generators to produce electricity at altitude and transmit the electricity to earth through conductive tethers.
Sometimes autorotation takes place in rotating parachutes, kite tails. Etc.
As a result, more Drag usually induces the autorotation spin characteristics of a straight-wing aircraft on the downgoing wing and More Lift on the up-going wing.
Answer:
See explaination
Explanation:
The Fourier transform of y(t) = x(t - to) is Y(w) = e- jwto X(w) . Therefore the magnitude spectrum of y(t) is given by
|Y(w)| = |X(w)|
The phase spectrum of y(t) is given by
<Y(w) = -wto + <X(w)
please kindly see attachment for the step by step solution of the given problem.
Answer:
Hepatitis C is a viral infection that causes liver inflammation, sometimes leading to serious liver damage. The hepatitis C virus (HCV) spreads through contaminated blood.