Answer:
Is there an early pay discount?
Explanation:
This determines and instructs what path the code should take,
if there is no early pay discount, it has different instructions to follow.
C is likely the best answer here.
Answer:
Social media is the correct answer for the above question.
Explanation:
- Social media is the media that is used to communicate with the other person with the help of an internet connection. There is so much software that gives this type of facility. for example whats up and twitter.
- The above question asked about that technology which is used to connect the people to communicate and the technology is social media which gives the features to connect and communicate all over the world with the help of the internet. Hence "Social media" is the correct answer.
A 2d array (i.e. 2 dimensional array) represents its elements in rows and columns
<h3>The program in Java</h3>
The method in Java, where comments are used to explain each line is as follows
//This defines the method
public static int diagSum(int[][] myArray) {
//This initializes sum to 0
int sum = 0;
//This iterates through each row of the array
for (int i = 0; i < myArray.length; i++) {
//This calculates the sum of the diagonals
sum+=myArray[i][i];
}
//This returns the sum
return sum;
}
Read more about methods at:
brainly.com/question/15969952