Answer:
import java.util.ArrayList;
import java.util.Scanner;
import java.util.Collections;
public class num4 {
public static void main(String[] args) {
int sum = 0;
Scanner in = new Scanner(System.in);
System.out.println("Enter number");
int num = in.nextInt();
ArrayList<Integer> list = new ArrayList<>();
while (num >= 0){
list.add(num);
System.out.println("Enter another positive number, enter a negative to stop");
num = in.nextInt();
}
int maximum = Collections.max(list);
int listSize = list.size();
for(int i:list){
sum = sum+i;
}
double average = (double) sum/listSize;
System.out.println("Maximum number entered is "+maximum);
System.out.println("Average of the number is "+average);
}
}
Explanation:
In this program:
- A Scanner class is used to receive user input and store in a variable
- A while loop with the condition while (num >= 0) is used to ensure only non-negative numbers are entered
- An ArrayList is created and used to store all the user's valid entries
- The Max Method in the Collections class is used to find the maximum value entered
- To find the average, a for loop is used to add all elements in the list and divide by the size of the list
- Finally the Average and maximum is printed out
The easiest way to migrate data from Quickbooks desktop to QuickBooks online is to Go to Company, then pick out Export Company File to QuickBooks Online. Select Start your export.
<h3>How lengthy does it take to emigrate from QuickBooks laptop to QuickBooks Online?</h3>
Common Deciding Factors to transform QuickBooks laptop to on-line. If you seek thru QuickBooks boards and on-line communities, you'll discover humans bringing up that it takes the handiest 15-half-hour to transform documents from QuickBooks Desktop to Online. Then, there could be customers bringing up the time taken to be as much as 24 hours.
Go to Company, then pick out Export Company File to QuickBooks Online. Select Start your export. Sign in as an admin for your QuickBooks Online business enterprise. Select Choose on-line business enterprise, and pick the QuickBooks Online business enterprise you need to update together along with your business enterprise file.
Read more about the QuickBooks :
brainly.com/question/24441347
#SPJ1
Answer:
a place where people study space is a Spacey agent
Answer:
C
The answer would be letter C. The satellite image
represent a low-pressure system with a cold front. The cold front is always
associated with the low-pressure. Moreover, weather front is a boundary
separating two masses of air of different density.