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
ARP only permits address resolution to occur on a single network.could ARP send a request to a remote server in an IP datagram?w
romanna [79]

Answer:

The answer to this question is Yes it is possible

Explanation:

It can be done In the case where a special server is required in each network that would forward the request to the  remote ARP(Address Resolution Protocol) server and will receive the response from the server and send it to the requesting host.So we conclude that we can do that hence the answer is Yes.

5 0
4 years ago
Identify the four basic categories of hardware in a microcomputer system. system unit, modem, ram, and microprocessor system uni
lapo4ka [179]
<span>Solid-state storage uses rigid metallic platters to store data using the magnetic charges of the disk's surface.</span>
4 0
4 years ago
A(n) ____is a network of organizations and activities needed to obtain materials and other resources, produce final products, an
Oliga [24]

Answer:

c. supply chain

Explanation:

A supply chain in commerce, is a network of organizations and activities needed to obtain materials and other resources, produce final products, and get those products to their final users.

8 0
4 years ago
Why is being distracted by the sights and sounds of our devices dangerous?​
11111nata11111 [884]

Answer:

because we lose our reflexes and our lucidness... if we r in our devices we dont see the world. we dont see the dangers we dont see or feel what we need to to survive. we find safety in things like electronics but they will never help us when it comes to real life problems. like if we are going to get hit by a car we are reading our phone not looking at our surroundings not listening to the warnings.

Explanation:

hope this helps

8 0
3 years ago
The receptionist’s directly connected laser printer is printing blank sheets. The technician assigned to the trouble ticket has
Studentka2010 [4]

Answer:

Correct option is B: Print a test print from the printer's console

Explanation:

At first thought, a laser print that is printing blank pages would mean that the toner is exhausted and needs to be replaced. However, if after replacing the toner, and the problem of printing blank page continues, the first troubleshoot  step to take is to be sure that the fault is not from the side of the receptionist by printing a test print from the console of the printer.

4 0
4 years ago
Other questions:
  • Write a java program called allDigitsOdd that returns whether every digit of a positive integer is odd. Return true if the numbe
    6·1 answer
  • The Law of Increasing Opportunity Costs requires greater ______ of one good in order to produce ______ of another good.
    11·2 answers
  • A(n) ________ network is a computer network that spans a relatively small area, allowing all computer users to connect with each
    14·1 answer
  • Explain briefly why people often have a pretty good understanding of computer hardware.
    14·1 answer
  • Trading your bicycle for a snowboard exemplifies ?
    15·1 answer
  • Pls help me!!!!!!!!!!!!!
    5·2 answers
  • When an object is acted on by unbalanced forces, the object will always
    11·1 answer
  • Which input and output pair is correct for a bicycle?
    12·1 answer
  • How do you get a blank business card template in word?
    15·1 answer
  • Which addresses represent valid local loopback addresses? check all that apply.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!