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
Birds mostly fly in a V because the lead bird cuts al of the wind and has the hardest work and then after a while the lead bird goes to the back and another bird takes his place cutting all the wind for the other birds
Answer:
105 km
Explanation:
The motorist was going 30 km/hr, and it took 3 hours 30 minutes. That's 3.5 hours. 3.5×30=105
Answer:
The correct option is;
Neither Technician A nor B
Explanation:
The evaporative emission monitor or Evaporaive Emission Control System EVAP System monitors enables the Power Control Module of the car to check fuel system leak integrity and the vapor consumption efficiency during engine combustion
It is a requirement of EPA on cars to check the emission of smug forming evaporates from cars
Serious monitor faults can cause the turning on of the check engine lights and the vehicle will not pass OBD II test, but it will not lead to engine shutdown
It runs when the engine is 15 to 85% full and the TP sensor is between 9% and 35%.
Therefore, the correct option is that neither Technician A nor B are correct.
Answer:
Both Techs A and B
Explanation:
Electronic braking systems are controlled by the electronic brake control module. It is a microprocessor that processes information from wheel-speed sensors and the hydraulic brake system to determine when to release braking pressure at a wheel that's about to lock up and start skidding and activates the anti lock braking system or traction system when it detects it is necessary.
Some electronic brake control modules can be programmed to the size of the vehicle's new tires to restore proper electronic brake control performance. While others may require replacing the module to match the module's programming to the installed tire size. So, both technicians A and B are correct.