Answer:
Advantages Disadvantages
It is easy to explore and find your way around the system using a WIMP/ GUI interface They need significantly more memory (RAM) to run than other interface types
You do not have to learn complicated commands They use more processing power than other types of interface
Explanation:
Answer:
<!DOCTYPE html>
<html>
<body>
<h2>Unordered List with Square Bullets</h2>
<ul style="list-style-type:square;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body>
</html>
Answer:
1. G=D+(A+C^2)*E/(D+B)^3
cobegin:
p1: (D+B)
p2: p1^3
p3: C^2
p4: A+ p3
p5: E/p2
p6: p4 * p5
p7: D + p6
:G
coend
2. Now The value A=2, B=4, C=5, D=6, and E=8
p1: 6+4 =10
p2: p1 ^3= 10^3= 1000
p3: c^2= 5^2 =25
p4: A + p3= 2 +25 =27
p5: 8/1000
p6: 27 *8/1000
p7: D+ P6= 6+ 216/1000
= 6216/1000
=6.216
Explanation:
The above, first bracket with power is processed, and then power inside and outside bracket. And rest is according to BODMAS, and one process is solved at a time.
Not entirely sure what you want to achieve, but consider this program:
var a = 'foo';
var b = 'bar';
var c = { first : a, second : b };
console.log(JSON.stringify(c, null, 4));
A json object c is constructed using the values from variables a and b. Is this what you mean?
Answer:
import java.util.*;
class Main
{
public static void main(String[] args)
{
System.out.println("Enter integers and 0 to exit");
Scanner a1=new Scanner(System.in);
System.out.println(add(a1));
}
public static int add(Scanner a1)
{
int total = a1.nextInt();
if (a1.hasNextInt())
{
total =total +add(a1);
}
return total;
}
}
Explanation:
The only thing that needs explanation here is hasnextInt. This returns true if entered number is integer and false if entered is not an integer. And rest is as shown in the program.