Answer:
<u>for loop code:</u>
int total=0;
for(int i=0;i<10;i++)
{
total + = value[i];
}
Explanation:
By declaration we know that the array is of size 10 which means the index will start from 0.
The variable name to be used to store the sum is given as total
We will initialize total with zero so that no garbage value is used.
For loop will be used to access the elements of array and calculate the sum. The syntax of for loop is given as:
for (initialization; condition; increment/decrement)
{statement}
<u>Code:</u>
int total=0;
for(int i=0;i<10;i++)
{
total + = value[i];
}
Answer:
1.)
- C.) Optional
2.)
- D.) Short-term Notes Payable
3.)
- A.) Payroll Sinking Funds
4.)
- A.) A Formal Timekeeping System Is Used
(I'm possibly wrong on the last question, if so then my apologies and I wish you the best of luck.)
Bridge communication is the best solution to continue two different building for the same company.
<u>Explanation:</u>
Bridge communication to be placed in both building.master device should be placed in one building where should be connected to a high-end server and the slave device should be placed in another device.
Both the master device and salve should have a subsequent TCPIP address. For example, if the master TCPIP address is 192.168.1.51 and the salve Tcpip address should be 192.168.1.52.
Very easy configure and communication is established. Both devices should be connected with nonstop current interruption. Once communication established speed depends on device capacity.
Answer:
public class Main
{
public static void main(String[] args) {
System.out.println(min(3, -2, 7));
}
public static int min(int n1, int n2, int n3){
int smallest = Math.min(Math.min(n1, n2), n3);
return smallest;
}
}
Explanation:
*The code is in Java.
Create a method named min that takes three parameters, n1, n2, and n3
Inside the method:
Call the method Math.min() to find the smallest among n1 and n2. Then, pass the result of this method to Math.min() again with n3 to find the min among three of them and return it. Note that Math.min() returns the smallest number among two parameters.
In the main:
Call the method with parameters given in the example and print the result
Answer:
0.119
Explanation:
50 independent fair games
Mean will be 50/2 = 25
Standard deviation of the loosing probability is :
* 10 = 33.536
we have to loose 33 times out of 50 games.
To find the approximate probability we use z- value table.
z value = 
z - value = 2.2659
Looking at the z-value table we get 0.119.