Answer:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
int[] arr = {4, 6, 9, 12};
int sum = 0;
for(int i=0; i<arr.length; i++){
sum += arr[i];
}
for(int i=0; i<arr.length; i++){
System.out.print(arr[i] + " ");
}
System.out.println("");
System.out.println("The sum of the numbers: " + sum);
}
}
Explanation:
* The code is written in Java.
- Initialize the array with the given numbers
- Initialize the <em>sum</em> variable as zero
- Calculate the sum in the first for loop
- Print the numbers in the second for loop
- Print the <em>sum</em>
Answer:
D) extents
Explanation:
Disks fragmentations in computer science refers to the cases of a file system laying out its contents in a non-continuous manner thus preventing an in-place alteration of the contents (that is the contents of the file are scattered in fragments across different location on the disk). Disk fragmentation is mostly associated with aging. To mitigate against this, modern implementation of file systems try to preallocate longer chunks of disk space, this is called extents, in this way fragmentation is avoided since a contiguous size of disk space is preallocated to the files and its contents stay together.
Answer:
Explanation:
Computer simulations are helpful because they can handle the computation of a big number of variables, at the same time. The universe is a constantly changing place with many different variables changing other variables. Thus, a computer is ideal to simulate, or predict, real life phenomena because of its processing power.
Answer:
I dont not not the frsidjkbzxc.n bzl,b vbsv,gcjdvc,
Explanation:
Answer:
A computer does not have brain of its own