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
It is when you don’t give up and you stand for your rights
Material engineering studies the physical behavior of metallic elements.
Answer: Option C
<u>Explanation:
</u>
Material Engineering is the creation and learning about the materials at an atomic level. An engineers from this branch focus on material and model its characteristics using the computer.
Also, they combine the knowledge of solid-states, metallurgy, chemistry and ceramics to the application level. It also has a great role in building the future with the advancing study in nanotechnology, biotechnology, etc. Simply, these are meant to have vivid applications in future life.
Answer:
c) site preparation
Explanation:
A construction process can be defined as a series of important physical events (processes) that must be accomplished during the execution of a construction project.
Generally, in the construction of any physical asset such as offices, hospitals, schools, stadiums etc, the first step of the construction process is site preparation. Site preparation refers to processes such as clearing, blasting, levelling, landfilling, surveying, cutting, excavating and demolition of all unwanted objects on a piece of land, so as to make it ready for use.
This ultimately implies that, site preparation should be the first task to be accomplished in the construction process.
Hence, the construction process typically begins with site preparation before other activities such as the laying of foundation can be done.
Additionally, construction costs can be defined as the overall costs associated with the development of a built asset, project or property. The construction costs is classified into two (2) main categories and these are; capital and operational costs.
Answer:
28 , 24-inch screwdrivers
Explanation:
The total number of screwdrivers that can be purchased is = 70
4 - inch length screwdrivers = 10
6- inch length screwdrivers = 12
8- inch length screwdrivers = 20
Total = 20 +12 +10 = 42
Remaining = 70-42 = 28
So, heavy 24-inch screwdrivers = 28