Answer:
Following code will store the largest value in array parkingTickets in the variable mostTickets
mostTickets = parkingTickets[0];
for(int k = 0; k<parkingTickets.length; k++)
{
if(parkingTickets[i]>mostTickets)
{
mostTickets = parkingTickets[i];
}
}
Explanation:
In the above code segment, initially the number of tickets at first index is assumed as largest value of tickets in array.
Then using a for loop each value in the array parkingTickets is compared with the current mostTickets value.
If the compared value in parkingTickets array is larger than the current mostTickets value. Then that value is assigned to mostTickets.
This process is repeated for all elements in array.
Thus after looping through each element of array the largest value in array will get stored in mostTickets variable.
Answer:
INPUT "Enter the length";l
INPUT "Enter the width";w
PRINT "The area is ";l*w
D, because it’s the only one in html format
<span>I'm not sure but I do know Collaboration means working together toward a mutual goal. so I hope that helps at least a little </span>