Can you anser my question
On page 17, author Joey Bartolomeo writes “Caleb participated in the investigation by testifying about what happened during the health seminar at his school.” As it is used in that sentence, what does "testify" mean? *
0 points
C. to persuade someone to join a group
B. to disguise or hide from sight
A. to argue so as to make a person agree
D. to talk and answer questions about something after formally promising to tell the truth
Answer:
Social media network
Explanation:
Social media network are online platform that allows individuals or organizations to create a public profile, base on the information provided on their database, they group people or organizations into subgroups or clusters usually base on their interest, likes, dislikes, geographical location etc.
Answer:
Have a nice day :) God Bless!
Explanation:
Answer:
The method in Java is as follows:
public static ArrayList<Integer> appendPosSum(ArrayList<Integer> nums) {
int sum = 0;
ArrayList<Integer> newArr = new ArrayList<>();
for(int num : nums) {
if(num>0){
sum+=num;
newArr.add(num); } }
newArr.add(sum);
return newArr;
}
Explanation:
This defines the method; it receives an integer arraylist as its parameter; nums
public static ArrayList<Integer> appendPosSum(ArrayList<Integer> nums) {
This initializes sum to 0
int sum = 0;
This declares a new integer arraylist; newArr
ArrayList<Integer> newArr = new ArrayList<>();
This iterates through nums
for(int num : nums) {
If current element is greater than 0
if(num>0){
This sum is taken
sum+=num;
And the element is added to newArr
newArr.add(num); } }
At the end of the iteration; this adds the calculated sum to newArr
newArr.add(sum);
This returns newArr
return newArr;
}
Answer:
please mark as brainliest!!
Explanation:
public class SumOfDigits{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Please enter a number to calculate sum of digits"); int number = sc.nextInt(); // Remember number/10 reduces one digit from number // and number%10 gives you last digit int sum = 0; int input = number; while (input != 0) { int lastdigit = input % 10; sum += lastdigit; input /= 10; } System.out.printf("Sum of digits of number %d is %d", number, sum); // closing Scanner to prevent resource leak sc.close(); } }