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:
1. Band saw lower wheel does not require a guard * true or false 2. Band saw upper guide should be adjusted to within 1/8" of the work piece * true or false 3. Find board & linear ft for 10 pieces of 4" x 4" x 8' *
Answer:
a. V = 109.64 × 10⁵ ft/min
b. Mw = 654519.54 kg/hr
Explanation:
Given Parameters
mass flow rate of water, Mw = 90000g/min = 6607.33 kg/s
inlet temperature of water, T1 = 84 F = 28.89 C
outlet temperature of water, T2 = 68 F = 20 C
specific heat capacity of water, c = 4.18kJ/kgK
rate of heat remover from water, Qw is given by
Qw = 6607.33[28.89 - 20] * 4.18
Qw = 245529.545kw
For air, inlet condition
DBT = 70 F hi = 43.43 kJ/kg
WBT = 60 F wi = 0.00874 kJ/kg
u1 = 0.8445 m/kg
oulet condition,
DBT = 70 F RH = 100.1
h1 = 83.504kJ/kg
Wo = 0.222kJ/kg
check the attached file for complete solution