I can help you out ! What do you need to know bud ?
Answer:
Explanation:
The following code is written in Java and it uses nested for loops to create the array elements and then the same for loops in order to print out the elements in a pyramid-like format as shown in the question. The output of the code can be seen in the attached image below.
class Brainly {
public static void main(String[] args) {
int jagged[][] = new int[5][];
int element = 1;
for(int i=0; i<5; i++){
jagged[i] = new int[i+1]; // creating number of columns based on current value
for(int x = 0; x < jagged[i].length; x++) {
jagged[i][x] = element;
element += 1;
}
}
System.out.println("Jagged Array elements are: ");
for ( int[] x : jagged) {
for (int y : x) {
System.out.print(y + " ");
}
System.out.println(' ');
}
}
}
Answer:
LA15; LA22
LA16; LA31; LA32
LA169; LA126;
LA127; LA141
Explanation:
Given
Required
Course sequence to satisfy the prerequisite
From the course prerequisite, we have:
and
This means that LA15 and LA22 are the base courses, and they have no prerequisite. So, we have:
LA16 and LA31 have LA15 as their direct course prerequisite. So, the sequence becomes
To complete the sequence, we read each course and place them other their prerequisite.
<em>See attachment for complete tree</em>
<em></em>
From the tree, we have the sequence to be:
<em>LA15; LA22</em>
<em>LA16; LA31; LA32</em>
<em>LA169; LA126;</em>
<em>LA127; LA141</em>
<em />
Answer:
The term memory collectively describes hard disk, CD and flash drive
Explanation: