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
Law Incorporation [45]
1 year ago
14

in a particular factory, a team leader is an hourly paid production worker who leads a small team. in addition to hourly pay, te

am leaders earn a fixed monthly bonus. team leaders are required to attend a minimum number of hours of training per year. design a teamleader class that extends the productionworker class you designed in programming challenge 1 (employee and production worker classes). the teamleader class should have member variables for the monthly bonus amount, the required number of training hours, and the number of training hours that the team leader has attended. write one or more constructors and the appropriate accessor and mutator functions for the class. demonstrate the class by writing a program that uses a teamleader object
Computers and Technology
1 answer:
malfutka [58]1 year ago
7 0

Facilitate team development for successful project completion. Through coaching and mentoring, provide teammates with technical leadership.

Establishing best practices and habits will help the team maintain high standards for the quality of its software. Identify and promote the team's potential development and improvement areas.

#include<iostream>

using namespace std;

/*C++ Function to print leaders in an array */

void printLeaders(int arr[], int size)

{

  for (int i = 0; i < size; i++)

   {

       int j;

       for (j = i+1; j < size; j++)

       {

           if (arr[i] <=arr[j])

               break;

       }  

       if (j == size) // the loop didn't break

           cout << arr[i] << " ";

 }

}

/* Driver program to test above function */

int main()

{

   int arr[] = {16, 17, 4, 3, 5, 2};

   int n = sizeof(arr)/sizeof(arr[0]);

   printLeaders(arr, n);

   return 0;

}

Learn more about Development here-

brainly.com/question/28011228

#SPJ4

You might be interested in
What has information technology made piracy possible?
Bond [772]
Well, more and more people are buying products and then uploading them online so that other people, who may not have the money or just don't want to buy them can download them for free. Of course, this is illegal, however it is a common practice all over the globe. Even if you are not downloading, but rather just watching a show on a website where you don't have to pay for it - it is still piracy.
5 0
3 years ago
What is the easiest way to deploy a C++ program to a user’s computer? a. Copy the source code to the user’s computer and then co
Morgarella [4.7K]

Answer:

c. Copy the executable file to the user’s computer

Explanation:

When you run a c++ program, an executable file (.exe) is created in the same directory with the source file.

To deploy this program on another system, you need to transfer the executable file from the original system where the program was executed to the new system.

The program will work fine without errors.

However, do not mistake the executable file for the source file. The source file ends in .cpp.

8 0
2 years ago
C++
nikitadnepr [17]

Answer:

Check the explanation

Explanation:

<u>The Code</u>

#include <fstream>

#include <iostream>

#include <cmath>

#include <cstring>

#include <cstdlib>

#include <ctime>

using namespace std;

//Function Declarations

void fillArrayWithRandNos(int nos[],int size);

void displayArray(int nos[],int size);

double mean(int nos[],int size);

double variance(int nos[],int size);

double median(int nos[],int size);

int mode(int nos[],int size);

void histogram(int nos[],int size);

int main() {

  //Declaring variables

const int size=100;

srand(time(NULL));

 

// Creating array dynamically

int* nos = new int[size];

 

//Calling the functions

fillArrayWithRandNos(nos,size);

displayArray(nos,size);

cout<<"Mean :"<<mean(nos,size)<<endl;

cout<<"variance :"<<variance(nos,size)<<endl;

cout<<"Median :"<<median(nos,size)<<endl;

cout<<"Mode :"<<mode(nos,size)<<endl;

histogram(nos,size);

 

  return 0;

}

void fillArrayWithRandNos(int nos[],int size)

{

  for(int i=0;i<size;i++)

  {

      nos[i]=rand()%(45) + 55;

  }

}

void displayArray(int nos[],int size)

{

  cout<<"Displaying the array elements :"<<endl;

  for(int i=0;i<size;i++)

  {

      cout<<nos[i]<<" ";

      if((i+1)%10==0)

      cout<<endl;

  }

}

double mean(int nos[],int size)

{

  double sum=0;

  for(int i=0;i<size;i++)

  {

      sum+=nos[i];

  }

  return sum/size;

}

double variance(int nos[],int size)

{

  double avg=mean(nos,size);

 

double variance,sum=0;

for(int i=0;i<size;i++)

{

sum+=pow(nos[i]-avg,2);

}

//calculating the standard deviation of nos[] array

variance=(double)sum/(size);

return variance;

}

double median(int nos[],int size)

{

      //This Logic will Sort the Array of elements in Ascending order

  int temp;

  for (int i = 0; i < size; i++)

{

for (int j = i + 1; j < size; j++)

{

if (nos[i] > nos[j])

{

temp = nos[i];

nos[i] = nos[j];

nos[j] = temp;

}

}

}

 

int middle;

float med;

middle = (size / 2.0);

if (size % 2 == 0)

med = ((nos[middle - 1]) + (nos[middle])) / 2.0;

else

med = (nos[middle]);

return med;

}

int mode(int nos[],int size)

{

  int counter1 = 0, counter2, modevalue;

for (int i = 0; i < size; i++) {

counter2 = 0;

for (int j = i; j < size; j++) {

if (nos[i] == nos[j]) {

counter2++;

}

if (counter2 > counter1) {

counter1 = counter2;

modevalue = nos[i];

}

}

}

if (counter1 > 1)

return modevalue;

else

return 0;

}

void histogram(int nos[],int size)

{

  int hist[9]={0};

  for(int i=0;i<size;i++)

  {

      if(nos[i]>=55 && nos[i]<=59)

      {

      hist[0]++;

      }

      else if(nos[i]>=60 && nos[i]<=64)

      {

      hist[1]++;

      }

      else if(nos[i]>=65 && nos[i]<=69)

      {

      hist[2]++;

      }

      else if(nos[i]>=70 && nos[i]<=74)

      {

      hist[3]++;

      }

      else if(nos[i]>=75 && nos[i]<=79)

      {

      hist[4]++;

      }

      else if(nos[i]>=80 && nos[i]<=84)

      {

      hist[5]++;

      }

      else if(nos[i]>=85 && nos[i]<=89)

      {

      hist[6]++;

      }

      else if(nos[i]>=90 && nos[i]<=94)

      {

      hist[7]++;

      }

      else if(nos[i]>=95 && nos[i]<=99)

      {

      hist[8]++;

      }

  }

     

  cout<<"Displaying the count of numbers in each interval:"<<endl;

 

      int cnt=0;

  for(int i=55;i<=99;i+=5)

  {

  cout<<i<<"-"<<i+4<<"|"<<hist[cnt]<<endl;

 

      cnt++;

  }

 

  cout<<"Displaying the histogram :"<<endl;

  cnt=0;

  for(int i=55;i<=99;i+=5)

  {

  cout<<i<<"-"<<i+4<<"|";

  for(int j=0;j<hist[cnt];j++)

  {

      cout<<"*";

  }  

      cout<<endl;

      cnt++;

  }          

     

 

 

}

#########

___________________________

The output can be seen in the attached image below.

8 0
3 years ago
____ steganography places data from the secret file into the host file without displaying the secret data when you view the host
EastWind [94]

Answer: Insertion steganography

Explanation: Insertion steganography is the way of encrypting the data with the help of a regular files and message. It is encrypted by the ordinary files because the identification of files can be neglected. This process is carried out just for the protection purpose in extra form and gets decrypted  in the destination port .It has the working based on the replacement of the bits in a file .

8 0
2 years ago
Which of these is a valid use of the Reply All feature?
zalisa [80]

Answer:

I think is None of this ,

6 0
3 years ago
Other questions:
  • Which three phrases describe a wireframe
    12·1 answer
  • A computer with a frequency 2 GHZ and its average cycle per instruction is 2. what is the MIPS of the computer?
    6·1 answer
  • Which is NOT a benefit of using visual aids?
    9·2 answers
  • What are the disadvantages of using pointers?
    6·1 answer
  • I am bad with excell pleasee heelp
    15·1 answer
  • Which programming language represents data in the form of a series of zeros and ones​
    7·1 answer
  • If you said the bottom margin, you are talking about what?
    13·2 answers
  • How does computer number system play a Vital role in a computer calculation. ​
    8·1 answer
  • Plzz help me with this question.........
    6·1 answer
  • Put simply, what tasks do algorithms help computers perform?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!