Answer:
Check the exlanation
Explanation:
1) add $s0,$s0,$s1 \rightarrow R-format
opcode rs rt rd shamt function
000000 $s0 $s1 $s0 00000 100000
000000 10000 10001 10000 00000 100000
= 0X42118020
2) lw $s0,0X20($t7)\rightarrow I-format
opcode rs rt offset
100000 $s0 $t7 0X20
100000 10000 01111 0000000000010000
= 0X820F0010
3) addi $s0,$s0,-10 \rightarrow I-format
opcode rs rt offset
001000 $s0 $s0 -10
001000 10000 10000 1111111111110110
= 0X2210FFF6
4) ori $s1,$a0,100 \rightarrow I-format
opcode rs rt offset
001101 $s0 $a0 100
001101 10000 00100 0000000001100100
= 0X36040064
5) j 0X400C \rightarrow J-format
opcode rs
000010 0X400C
000010 0000000000100000000001100
= 0X0800400C
import Java.util*
public class Average{
public static void main(String [] args){
int sum = 0;
int numbers = 0;
for(int i = 0; i < 5; i++){
Scanner sc = new Scanner(System.in);
System.out.println(“Please enter your integers: “);
numbers = sc.nextInt();
sum += numbers;
}
System.out.println(“The average is: “ + sum/5)”
}
}
Answer:
Kernel.
Explanation:
An operating system platform is a system software pre-installed on a computing device to manage or control software application, computer hardware and user processes.
This ultimately implies that, an operating system (OS) is essentially an interface between the computer’s hardware and all the software applications (programs) running on it.
Some examples of an operating system are QNX, Linux, OpenVMS, MacOS, Microsoft windows, IBM, Solaris, VM, etc.
Kernel is part of the operating system core. It is responsible for controlling security, managing the file system, and providing a platform for applications to run on.
Basically, the kernel is the foundational or fundamental layer of the operating system (OS) and as such it is loaded into memory whenever the computer system starts to boot i.e the kernel must always reside in the memory of a computer because it is saddled with the responsibility of managing computer resources such as the central processing unit (CPU), peripheral devices, random access memory (RAM) and input/output instructions from software programs.