Answer:
Explanation:
This can easily be done by using the min function, although since it's asking you to write a program to do this I would implement it like this:
def minimum(a, b):
if a < b:
return a
else:
return b
if a is less than b, then of course the minimum value if a. But if it isn't that means one of two things, a=b or b<a, either way b will still be the minimum value, since it never mentioned anything about returning something else if a=b.
Answer:
displays an application-defined icon and line of text.
Answer:
See Explanation
Explanation:
The line by line explanation of the modified program is as follows:
(1)
min is declared and initialized to the highest possible integer and max is declared and initialized to the least possible integer
int min,max;
min = Integer.MAX_VALUE; max = Integer.MIN_VALUE;
This iterates through each row. Because each row has a different number of elements, the row length of each is calculated using data[row].length
for ( int < ; col++){
The following if statements get the minimum and the maximum elements of the array
if(data[row][col] < min){ }
if(data[row][col] > max){ }
(2):
The loop remains the same, however, the print statement is adjusted upward to make comparison between each row and the highest of each row is printed after the comparison
for ( int < row++){
for ( int < col++){
if(data[row][col] > max){ }
}
System.out.println( "max = " + max);
max = Integer.MIN_VALUE;
}
<em>See attachment for complete program that answers (1) and (2)</em>
Answer:
the type of computer system that is required for processing of scientific data is : supercomputer
for distribution of data over a network :Client/server computing
working from home :A laptop
Answer: Explanation:
The amount that Nancy can deduct in the current year for investigating these two businesses.
Nancy could deduct the $35,000 for hotel investigation expenses.
Nancy can deduct $2,000 + $1133 = $3,133 of the restaurant expenses the first year and then the other $51,000 over a period of 180 months, that is $1133 per month.