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!
Answer: Even though the hardware is inexpensive the writing of program is not efficient through this method as proper development of program is necessary for the clear execution due to factors like:-
- The facility of writing program even the cost of hardware is less but it is not a free facility.
- It also has a slower processing for the execution of the program
- The construction of the efficient program is necessary for the compilation and execution of it rather than poorly constructed program is worthless and inefficient in working.
Answer:Put on an ESD(Electrostatic discharge) strap.
Explanation: An ESD wrap which is also known as ground wrap is a sort of a wrap that is tied around the wrist to protect the person electronic equipment's static electricity. This wrap produces anti static energy which help in not producing any static charge while the technician touches the inner parts of the CPU of other internal parts of the system.
Answer:
wireless connection
Explanation:
key point worth noting : reduces some unnecessary cost
As the Head of IT unit your Head of Department, I will recommend that wireless connection should put in place. wireless connection will reduce cost of laying wires to different department of the Local Government Authority and also save record time that would have been used up during the installation.
Major benefits of wireless networking
1. Increased network coverage: wireless networks can be used to reach places in Local Government Authority office that are not accessible for wires and cables.
2. Improved Scalability: Wireless systems can be configured to meet the needs of specific departments of the Local Government Authority. These can be easily modified and scaled depending on each department’s needs.
3. Lower overall cost:Wireless Networking is relatively less costlier than wired Networks since no cables is required between the devices as well as lower long-term costs due to lesser maintenance fees since there is less equipment.