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
Convert 128 GB into KB​
goblinko [34]

Answer:

1,073,741,274  KB

Explanation:

Use an unit convertor or an calculator.

8 0
4 years ago
Read 2 more answers
A copy machine is available 24 hours a day. On a typical day, the machine produces 100 jobs. Each job takes about 3 minutes on t
Hoochie [10]

Answer:

13.3%

Explanation:

OEE= Availability × Performance × Quality

Availability = Run Time/ Planned Production Time

Run time = 3*100 = 300 + 0.2* 300 = 1.2 *300 = 360 mins

Planned Production time = 24*60 = 1440 mins

Availability = 360/1440 = 1/4 = 25%..............1

Performance = (Ideal Cycle Time × Total Count) / Run Time

Ideal Cycle Time = 2 min (Only the processing time)

Total Count= 100+20 = 120

Performance = 2*120/360 =66.67% .............2

Quality = 100%-20% = 80%.......3

Frpm 1,2,3

OEE=25% * 66.67 % * 80% =

0.13334=13.3%

4 0
4 years ago
The ACT science test takes___minutes.<br> A. 45<br> B. 30<br> C. 35<br> D. 60
Masja [62]

Answer:

a

Explanation:

8 0
3 years ago
Read 2 more answers
Information systems that support the sales process of B2C companies are typically Web storefronts that customers use to enter an
RoseWind [281]

Answer:

This statement is CORRECT in electronic commerce and Online stores

Explanation:

The term B2C is derived from e-commerce which means Business to Consumer which describes  the process of selling goods and services directly to consumers who are the end-users. The advent of the dot com web boom led to a huge increase in these kinds of companies that sell directly to consumers through their online (website) channels.

3 0
3 years ago
Why does this say I'm in middle school?
Andru [333]

You can change your grade by going to your profile in the top right corner.

7 0
4 years ago
Other questions:
  • Complex machines are defined by...
    14·2 answers
  • What's is the contribution of technology to the country?
    15·1 answer
  • reading is important blank areas of life A in very few B in many C only in academic D only in career​
    10·1 answer
  • Describe a time when you influenced someone else’s knowledge around technology, whether it be an app, a new gadget, etc. What di
    14·1 answer
  • A great way to obtain Hands-On training in a real quick environment is to complete a ??
    12·1 answer
  • 2. Which of the following statements describes a need or problem that can be solved using the technology design process.
    14·1 answer
  • What is the purpose of the Hide Slide feature in a presentation program?
    14·1 answer
  • Hi I'm new to Brainly anyone wanna be my frnd​
    15·1 answer
  • Write a program that get
    9·1 answer
  • Which wireless technology will John use to provide wide-range cellular service that focuses on indoor coverage, low cost, long b
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!