1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tresset [83]
4 years ago
14

An array of integers named parkingTickets has been declared and initialized to the number of parking tickets given out by the ci

ty 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.
Computers and Technology
1 answer:
WINSTONCH [101]4 years ago
3 0

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.

Explanation:

  • A variable named ndays has been declared and initialized to hold the size of the array.
  • 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 mostTickets has been declared, along with a variable k.
  • If today were January 18, ndays would have the value 18; if today were February 3, ndays would have the value 34

mostTickets=0;

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

{

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

}

You might be interested in
When a customer places an order atBookBox.com, the company processesthe customer's payment information,sends the order to the ne
mash [69]

Answer:

fulfillment management process

Explanation:

According to my research on the different business process', I can say that based on the information provided within the question this is best described as the fulfillment management process. Which is the process that a company goes through from accepting an order to delivering that order to the client. Which is what is happening in this situation.

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

6 0
4 years ago
Blake is on the fast track and hopes to get a promotion soon. he wants to make sure that he is always able to
sergiy2304 [10]

Answer:

D

Explanation:

7 0
2 years ago
Aisha is opening a flower shop and wants to set up a web site so her customers can find her shop. What type of domain is typical
hjlf

Answer: .com      

Explanation:

.com is the part of Domain name system with which any organization or company name can be attached for working as online website..Com is the top-level domain. Company names are registered with ICANN organization to make it official website over internet and so that users can approach towards it.

  • According top the question, .com is the domain name that mostly used for sites for selling goods and products that related with an organization.
  • Thus, Aisha would be using .com domain name for her flower shop website so that customers can buy her flowers through online mode.
7 0
3 years ago
What word is used today to refer to network-connected hardware devices?.
lions [1.4K]
Th answer to your question is Endpoint
5 0
2 years ago
Color theory is a type of code, like HTML, that computers use to visually display colors.
mars1129 [50]

I think that it is a true or false question and I would say true

7 0
3 years ago
Other questions:
  • What are the high and low temperatures on Saturn? (C)
    11·1 answer
  • Which business application uses location information to provide a service and is designed to give mobile users instant access to
    5·1 answer
  • Python
    15·1 answer
  • You might have trouble interpreting a message if:
    15·1 answer
  • Why do you think you are ready to handle the high school type of education and atmosphere? (in complete sentences)​
    11·1 answer
  • Which vulnerability can occur if a programmer does not properly validate user input and allows an attacker to include unintended
    13·1 answer
  • NEED HELP
    9·1 answer
  • Which Python expression results in 49?<br><br> 7 * 2<br><br> 7^2<br><br> 7 // 2<br><br> 7 ** 2
    12·2 answers
  • Choose all items that are true about the two example of HTML shown on the right.
    5·2 answers
  • Discuss how social media can affect social movements and social change.
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!