Answer:
See explaination
Explanation:
Taking a look at the The Logic function, which states that an output action will become TRUE if either one “OR” more events are TRUE, but the order at which they occur is unimportant as it does not affect the final result. For example, A + B = B + A.
Alternatively the Most significant bit which is also known as the alt bit, high bit, meta bit, or senior bit, the most significant bit is the highest bit in binary.
See the attached file for those detailed logic functions designed with relation to the questions asked.
Answer:
//import the Random class
import java.util.Random;
//Begin class definition
public class CoinFlipper {
//The main method
public static void main(String []args){
//Create an object of the Random class
Random ran = new Random();
System.out.println("Result");
//Use the object and the number of times for simulation
//to call the flipCoin method
flipCoin(ran, 25);
} //End of main method
//Method to flip coin
public static void flipCoin(Random ran, int nooftimes){
//Create a loop to run as many times as specified in variable nooftimes
for(int i=1; i<=nooftimes; i++)
System.out.println(ran.nextInt(2) + 1);
}
} //End of class definition
====================================================
Sample Output:
Result
1
1
1
2
1
2
2
1
2
1
1
2
1
2
1
1
1
2
1
1
1
2
2
1
2
========================================================
Explanation:
The above code has been written in Java. It contains comments explaining every part of the code. Please go through the comments.
The sample output from the execution of the code is also given above.
The code is re-written as follows without comments.
import java.util.Random;
public class CoinFlipper {
public static void main(String []args){
Random ran = new Random();
System.out.println("Result");
flipCoin(ran, 25);
}
public static void flipCoin(Random ran, int nooftimes){
for(int i=1; i<=nooftimes; i++)
System.out.println(ran.nextInt(2) + 1);
}
}
Explanation: For number 3 I would say shade and darkness.
Answer:
// Here is code in C.
#include "stdio.h"
// create function to print all the combinations
void print_combi(char a,char b,char c)
{
// print all combinations of three characters
printf("%c%c%c %c%c%c %c%c%c %c%c%c %c%c%c %c%c%c\n",a,b,c,a,c,b,b,a,c,b,c,a,c,a,b,c,b,a);
}
// driver function
int main(void)
{
// create 3 char variable and initialize
char a='x',b='y',c='z';
// call the function
print_combi(a,b,c);
printf("\n");
// initialize with different character
a='1',b='2',c='3';
// call the function
print_combi(a,b,c);
printf("\n");
// initialize with different character
a='#',b='$',c='%';
// call the function
print_combi(a,b,c);
printf("\n");
return 0;
}
Explanation:
Create three char variables a, b, c. First initialize them with x, y, z. then call the function print_combi() with three parameters . this function will print all the combinations of those characters.We can test the function with different values of all the three char variables.
Output:
xyz xzy yxz yzx zxy zyx
123 132 213 231 312 321
#$% #%$ $#% $%# %#$ %$#
A C program to find all combinations of character variables:
void main ()
{
char f;
char s;
char t;
f = 'x';
s = 'y';
t = 'z';
System.out.print("" + f + s + t + " " + f + t + s + " " + s +f + t +
" " + s + t + f + " " + t + f + s + " " + t + s + f);
}
}
A description
B. judgment
C. interpretation
D. analysis
Reset
Next
Answer: B. judgment
Explanation: To critique a work of art, there are a 4 steps method:
Description: describe everything you see in the work: name of the artist, the title, what you observe, what media he/she used, the year it was created;
Analysis: describe how the artist uses the elements of art (line, shape, color, texture, space) and the principlesofdesign (balance, movement, pattern, emphasis, contrast);
Interpretation: try to explain what is the meaning of the art, why the artist created it, what was he/she's idea for it, based on the 2 previous steps;
JudgmentorEvaluate: make an opinion of why the art is worth it based on the other steps and give reasons for liking or disliking, its importance or the way it make you feel;
After going through each step, your evaluation or opinion will be expressed in the 4th step: Judgment.
b. 24 = 16 subnets, 228 - 2 = 268E6 hosts per subnetwork
c. 24 - 2 = 14 subnets, 24 = 16 hosts per subnetwork
d. 24 = 16 subnets, 24 - 2 = 14 hosts per subnetwork
Answer:
d. 24 = 16 subnets, 24 - 2 = 14 hosts per subnetwork
Explanation:
When four bits are borrowed from the fourth octet of class C IP address 200.245.10.150, the IP address is subnetted to 16 subnets, where the number of subnets is equal to two raised to the number of borrowed bits (ie, 2^ number of borrowed bits), and 14 assignable host IP address gotten from the formula;
= 2^(number of host bits in the fourth octet) - 2
= (2^4) - 2
= 16 - 2 = 14 host addresses