Answer:
//importing package java.util.ArrayList to use ArrayList in the program
import java.util.ArrayList;
import java.util.Date;
public class test_array_list {
// Main method
public static void main(String[] args) {
// Create an array list of objects
ArrayList<Object> s = new ArrayList<Object>();
s.add(new Loan());
s.add(new Date());
s.add(new String("String class"));
s.add(new Circle());
// Display all the elements in the list by
// invoking the object’s to String() method
for (int element = 0; element < o.size(); element++) {
System.out.println((s.get(element)).toString());
}
}
}
Explanation:
The Above code has proper comments to which is self explanatory.
From Google:
"<span>a built-in C++ function that returns the current time(according to your computer system's clock) as seconds elapsed since midnight on January 1, 1970; often used as the seed argument in the srand function; a program that uses the time function must contain the #include <ctime> directive"
I hope this helps you with your question</span>
Answer:
hello your question is incomplete attached below is missing part of the question
Determine how many bits are needed for the opcode
answer : 7 bits
Explanation:
Given data:
memory unit = 26 bits per word
Instruction set consists = 756 different operations
Determine how many bits are needed for the opcode
First we determine The number of bits required to represent 756 operations
=
= 9.56 ≈ 10 bits
finally the number of bits needed for the opcode can be determined by
and 
since 2^10 > 756 hence the number of bits will be 10 bits