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, 23.06.2019 06:00
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
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
question
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
You know the right answer?
An array of integers named parkingtickets has been declared and initialized to the number of parking...
Questions
question
Mathematics, 28.02.2020 03:32
question
Spanish, 28.02.2020 03:32
question
Mathematics, 28.02.2020 03:34
question
Mathematics, 28.02.2020 03:35
Questions on the website: 13722361