Answer:
This code will print: 4
Explanation:
Following is the step-by-step explanation for the given code:
- Given is the array of data type double named myList, it has entries, 1, 5, 5, 5,5, 1:
double[] myList = {1, 5, 5, 5, 5, 1};
- Now the first element of the array (1) with index 0 will be stored in the variable max (data type double).
double max = myList[0];
- A variable indexOfMax having datatype int will be initiated as 0.
int indexOfMax = 0;
- Now for loop will be used to find the maximum number of the array. The variable i will be put as index for each element to compare with first element. If the checked element is greater than or equal to the integer in max, it will be replaced. So at the end the variable max will have value 5 that will be at index i = 4.
for (int i = 1; i < myList.length; i++)
{ if (myList[i] >= max)
{ max = myList[i];
- Now the variable i that is the index for max value will be stored in the variable indexOfMax (indexOfMax = 4).
indexOfMax = i; }}
- At end the value stored in variable indexOfMax will be printed, so 4 will be printed as output.
System.out.println(indexOfMax);
i hope it will help you!
public static void quarterstodollars(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter number of Quarters:");
System.out.print("Quarters:"); int Q1 = input.nextInt();
DecimalFormat fmt = new DecimalFormat("$#,###.##"); System.out.println("Total:"+fmt.format(calctotal(Q1)));}public static double calctotal(int Q1) { double total; total=(0.25 * Q1); return (total);}
Hope this helps!
Answer:
Microsoft word.
Explanation:
i am very sorry if the answer is wrong
The matchup are:
- information support and services - providing technical assistance to users
- network systems - creating interactive materials
- programming and software development - designing and developing applications for an organization's use
- web and digital communications -developing and implementing an
- organization's technology infrastructure
<h3>What is network system?</h3>
A network is known to be made up of a set of computers, servers, network devices, and other devices that are linked so that it can allow data sharing.
Therefore, The matchup are:
- information support and services - providing technical assistance to users
- network systems - creating interactive materials
- programming and software development - designing and developing applications for an organization's use
- web and digital communications -developing and implementing an
- organization's technology infrastructure
Learn more about network systems from
brainly.com/question/1326000
#SPJ1