Ask Question
4 October, 22:10

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.

+2
Answers (1)
  1. 5 October, 00:25
    0
    mostTickets=0;

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

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

    }
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers