subject

An array of integers named parkingtickets has been declared and initialized to the number of parking tickets given out by the city police each day since the beginning of the current year. (thus, the first element of the array contains the number of tickets given on january 1; the last element contains the number of tickets given today.)a variable named ndays has been declared and initialized to hold the size of the array . (thus, if today were january 18, ndays would have the value 18; if today were february 3, ndays would have the value 34.)in addition, a variable named mosttickets has been declared , along with a variable k. 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. mosttickets=0; for (k=0; k< ndays; k++){if (parkingtickets[k]> mosttickets) mosttickets=parkingtickets[k]; }

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
question
Computers and Technology, 22.06.2019 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
question
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Based on the current economic situation do you expect the employment demand for graduating engineers to increase or decrease? explain the basis for your answer. with a significant economic recovery, what do you think will happen to future enrollments in graduating engineering programs?
Answers: 1
You know the right answer?
An array of integers named parkingtickets has been declared and initialized to the number of parking...
Questions
question
Mathematics, 11.11.2019 23:31
question
Mathematics, 11.11.2019 23:31
Questions on the website: 13722359