Answer:
Please kindly check explainations for the code.
Explanation:
lw $t1, Num1
lw $t2, Num2
lw $t3, Num3
blt $t1, $t2, if
beq $t1, $t2, elseif
else:
add $t0, $t3, 5
sw $t0, Result
endif:
#.....other statements after if-elseif-else
if:
sw $t1, Result
b endif
elseif:
ble $t2, $t3, if2
or $t0, $t1, $t3
sw $t0, Result
b endif
if2:
and $t0, $t2, $t3
sw $t0, Result
b endif
Go to attachment for the onscreen code.
Answer:
// A optimized school method based C++ program to check
// if a number is composite.
#include <bits/stdc++.h>
using namespace std;
bool isComposite(int n)
{
// Corner cases
if (n <= 1) return false;
if (n <= 3) return false;
// This is checked so that we can skip
// middle five numbers in below loop
if (n%2 == 0 || n%3 == 0) return true;
for (int i=5; i*i<=n; i=i+6)
if (n%i == 0 || n%(i+2) == 0)
return true;
return false;
}
// Driver Program to test above function
int main()
{
isComposite(11)? cout << " true\n": cout << " false\n";
isComposite(15)? cout << " true\n": cout << " false\n";
return 0;
}
Explanation:
Answer: Web Browsers
Explanation: The application software that works on the World Wide Web(www) is known as the web browser. Web browsers are the application must be installed on the user's system so that the accessing of the web server can be done.
There are different types of web browsers, out of which the most popular is Chrome and other examples are Internet Explorer, Opera, Firefox etc.