Answer:
// Program to convert rounded decimal to string
// This program segment is written in Java programming language
// Comments are used for explanatory purpose
// Program starts here
import java.text.D ecimalFormat;
public class RoundNumbers
{
public static void main(String[] args) {
// Declare number and assign value to it
double cv = 18.7713;
// Call decimalformat method
DecimalFormat commaType = new DecimalFormat("#,###.###");
//Convert cv to string
String myPi = commaFormat.format(cv);
// Print result
System.out.println(commaType.format(cv));
}
}
// End of Program
b serves as food for the yeast
Answer:
A MAC ADDRESS is a hardware identification number that uniquely identifies each device on a network.
Explanation:
Answer:
31 bits.
Explanation:
Given, total number of registers = 55
Total instructions = 60
Size of memory = 16 KB
Now, no of registers are 55. We find the next greater or equal power of 2 which is 64 = 26. Hence, 6 bits are required to represent a register operand.
Number of instructions = 60. We find the next greater or equal power of 2 which is 64 = 26. Hence, 6 bits are required to represent a instruction.
Size of memory = 64 KB = 26 * 210 * 23 bits = 219 bits. Hence, 19 bits are required to represent a memory location.
Now, an instruction has 2 parts, opcode and operand. As given there are only two address instructions which are memory operand and register operand.
Hence, total bits would be: 6 bits (opcode) + 6 bits (register operand) + 19 (memory operand) = 31 bits.
Answer:
Yes.It would be considered as a computer Crime.
Explanation:
This is because you are an unauthorised user