Answer:
public class sum{
public static void main(String []args){
int sum = 0;
int[] a = {9,2,8,4,0,6};
for ( int i = 0; i < a.length; i++ )
{
sum = sum + a[i];
}
System.out.println("The sum is: "+sum );
}
}
Explanation:
First create the class in java programming.
Then create the main function and declare the variable and array.
To calculate the sum of all element in array, first we have to traverse the array pick element one by one and then add,
so, we have to use loop for traversing and add with sum which inialize with zero.
suppose array element is 1,2,3,4
sum = sum +a[1] means sum = 0 +1=1
the sum = 1+2=3, sum = 3+4=7.
and then finally print the result store in sum.
On the color wheel, the secondary colors are located between the colors they are made from. The six tertiary colors (red-orange, red-violet, yellow-green, yellow-orange, blue-green and blue-violet) are made by mixing a primary color with an adjacent secondary color
To provide clear, balanced, and unbiased information about the topic.
Answer:
Answered below
Explanation:
A secondary storage device, also called external storage or auxiliary storage device, is a non-volatile, internal or external storage device. They are storage devices that are used to store data permanently and can be used to store large amounts of data. Applications and programs in a computer, such as operating systems, drivers, files, applications etc are stored in the secondary storage device.
Examples of these devices include;
Hard disk drives, solid-state drives, CD-ROMS, DVD, Google drive, USB flash drive etc.