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:
for 1st question the answer is 5th option.
for 2nd question the answer is 2nd option
hope it helps you mate
please mark me as brainliast
Answer:
Georgia Tech is committed to WGAR 53566 THE ANSWER IS JELLY IS KING AND THE JELLY IS KING AND hope to improve the human condition in your community.
Explanation:
Answer:
the elongation of the metal alloy is 21.998 mm
Explanation:
Given the data in the question;
K = σT/ (εT)ⁿ
given that metal alloy true stress σT = 345 Mpa, plastic true strain εT = 0.02,
strain-hardening exponent n = 0.22
we substitute
K = 345 / 
K = 815.8165 Mpa
next, we determine the true strain
(εT) = (σT/ K)^1/n
given that σT = 412 MPa
we substitute
(εT) = (412 / 815.8165 )^(1/0.22)
(εT) = 0.04481 mm
Now, we calculate the instantaneous length
= 
given that
= 480 mm
we substitute
=
× 
= 501.998 mm
Now we find the elongation;
Elongation = 
we substitute
Elongation = 501.998 mm - 480 mm
Elongation = 21.998 mm
Therefore, the elongation of the metal alloy is 21.998 mm
Answer:
To fit text to a shape in Affinity Designer, make sure you have your text selected. Then, grab the Frame Text Tool and click on the shape. A blinking cursor will appear within the shape, indicating that you can begin typing. The text you type will be confined to the boundaries of the shape.
Explanation: