Ask Question
15 March, 15:38

Without using any additional variables, and without changing the values of ndays or the elements of the parkingTickets array, write some code that results in mostTickets containing the largest value found in parkingTickets.

+1
Answers (1)
  1. 15 March, 19:17
    0
    mostTickets=0;

    for (k=0; k< ndays; k++) {

    if (parkingTickets[k]>mostTickets) mostTickets=parkingTickets[k];

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Without using any additional variables, and without changing the values of ndays or the elements of the parkingTickets array, write some ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers