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
Cloud [144]
2 years ago
6

A project manager wants to look at employee attendance data. Given that rn employees are working on the project , and the manage

r has the record of the employees present on n days of the project , find the maximum number of consecutive
History
1 answer:
givi [52]2 years ago
7 0

The maximum number of consecutive days in which all the employees are present is only 2 days.

To solve this question, we need to understand the concept of zero indexing.

<h3>What is Zero Indexing?</h3>

The zero-based index is a method of addressing arrays in which the first element of a series is allocated the index 0, instead of the index 1, as is common in non-programming situations.

From the given information, Let assume that:

  • There are r = 3 employees and,
  • n = 5 workdays to analyze.

  • The attendance data strings, data = [YYY, YYY, YNN, YYN, YYN].

We will realize that:

  • There are only two days at the start of the period in which all the workers are present.

By applying zero indexing for employees:

  • Employees 1, as well as 2, are not present (i.e absent) on the third day, and
  • Employee 2 is also absent on the fourth and fifth days.

Thus, the maximum number of consecutive days is 2 days and it takes place only at the beginning.

Learn more about zero indexing here:

brainly.com/question/25012091

You might be interested in
____ was a key ideal of the Enlightenment.
Ainat [17]

Answer:

A. Democracy.

Explanation:

The age of Enlightenment of the 17th and 18th centuries was an age of ideas intellectually and philosophically where reason centers the basics of everything. Thinkers of this period began to question traditional authority and chose to propagate the idea of humanity through rational changes.

<u>Philosophers of this Enlightenment believe in the notion of a democratic government where the people can have their voices heard and also participate and be a part of the government system</u>. With the decline in the monarchical ruling system, democracy began to emerge as the popular form of governing the people, in the belief that the government is created for the people and their welfare, and thus, it is only reasonable that they are made a part of the system. Famous thinkers of this age include <u>Thomas Hobbes, John Locke, Jean-Jacques Rousseau, René Descartes</u> among others.

5 0
3 years ago
Describe the manner in which Congress and the President share power in the fields of foreign affairs, war, and national defense.
Sedaia [141]
The president is the supreme chief when it comes to the military and what the president decides the military has to do. Of course, they have numerous advisers who help them so it's not like they go and plan worldwide missions as they see fit. The president also negotiates treaties with other countries and represents the country in any affairs with foreign countries, both enemies and allies.

The congress has to ratify these treaties or give their approval for leading a war. This is to prevent the president from doing whatever they want to do and from being tyrannical and leading to pointless wars or getting treaties that don't benefit the American people. However, due to certain loopholes and various acts, there have been historical wars that presidents organized without the support of the congress.

The division of power should be considered reasonable because nobody can decide things on their own.
6 0
3 years ago
How did texas become part of the united states?
babunello [35]

Explanation: The Texas annexation was the 1845 annexation of the Republic of Texas into the United States of America, which was admitted to the Union as the 28th state on December 29, 1845. The Republic of Texas declared independence from the Republic of Mexico on March 2, 1836.

7 0
3 years ago
What was the largest Empire in history​
stiv31 [10]

Answer:

The Mongol Empire

Explanation:

5 0
3 years ago
Read 2 more answers
Describe one similarity of Iran and China’s cultural revolutions.
Sergio039 [100]

should of added the graph ! not sure

3 0
3 years ago
Other questions:
  • What colony had profitable lifestyle based on agriculture?
    11·1 answer
  • What was the main reason that the southern economy remained largely agricultural?
    13·2 answers
  • An enumerated power is a power of congress that is ?
    6·2 answers
  • How did Deborah Sampson contribute to the war effort?
    5·1 answer
  • Which word best describes the way in which the artist portrays Napoleon? modest weak powerful religious
    13·2 answers
  • Why do you think African American involvement in the American Revolution is often overlooked?  Where else might you see this hap
    12·1 answer
  • Help please sorry for low quality picture
    10·1 answer
  • 2.) What did Quakers get instructed to do, and why are they being instructed to do this?​
    10·1 answer
  • Why did social, economic, and political inequalities exist for different immigrant populations?
    11·1 answer
  • Which Indian tribe lived in the Cordilleran region of Canada?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!