Trial and Error learning is a method only advisable where the solution is the only important aspect for the problem at hand. Should not be used or cannot be used for specific cases where the solution is needed given in a limited number of chance or trial. By making mistakes, error, and trying out to possibilities or potential solutions, one is able to eliminate one by one possible factors / solutions to the problem until the correct solution is found.
Answer:
import java.util.Scanner;
public class Country{
public static void main (String[] args){
Scanner input = new Scanner(System.in);
System.out.print("Input a country name: ");
String country = input.nextLine();
System.out.println("I would love to go to " + country);
}
}
Explanation:
For technology:
<span>It is an open-source operating system used for smartphones and tablet computers.
</span><span>In science fiction:
It is a robot with a human appearance.</span>
Answer:
(a)
= 
Explanation:
To convert from binary to hexadecimal, convert each 4 binary digits to its hexadecimal equivalent according to the following;
<em>Binary => Hex</em>
0000 => 0
0001 => 1
0010 => 2
0011 => 3
0100 => 4
0101 => 5
0110 => 6
0111 => 7
1000 => 8
1001 => 9
1010 => A
1011 => B
1100 => C
1101 => D
1110 => E
1111 => F
(a) 1100 1111 0101 0111
=> Taking the first four binary digits : 1100
According to the table, the hexadecimal equivalent is C
=> Taking the second four binary digits : 1111
According to the table, the hexadecimal equivalent is F
=> Taking the third four binary digits : 0101
According to the table, the hexadecimal equivalent is 5
=> Taking the last four binary digits : 0111
According to the table, the hexadecimal equivalent is 7
Therefore, the hexadecimal representation of
1100 1111 0101 0111 is CF57
Even numbers are numbers whigh are divisible by 2. Therefore, the first even number is 2. A pseudocode which adds the first 100 even numbers can be written thus :
counter = 0
sum = 0
interval = 2
while counter < 100 :
sum = sum + interval
interval += 2
counter +=1
print(sum)
- A counter takes count of the number of values summed
- Initializes a variable which holds the sum of even values
- Since even numbers are divisible by 2; every factor ; increase every added value by 2
- The program ends once counter is 100
Learn more : brainly.com/question/25327166