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
crimeas [40]
3 years ago
14

Please help im really confused

Engineering
1 answer:
Travka [436]3 years ago
8 0

Answer:

1,8 and 2,13 and 3,2 and 4,7 and 5,18

Explanation:

You might be interested in
CS3733: Homework/Practice 05 Suppose we would like to write a program called monitor which allows two other programs to communic
valina [46]

Answer:

#include<stdio.h>

#include<stdlib.h>

#include<unistd.h>

#include<sys/types.h>

#include<string.h>

#include<pthread.h>

//#include<sys/wait.h>

int main(int argc, char** argv)

{

int fd1[2];

int fd2[2];

int fd3[2];

int fd4[2];

char message[] = "abcd";

char input_str[100];

pid_t p,q;

if (pipe(fd1)==-1)

{

 fprintf(stderr, "Pipe Failed" );

 return 1;

}

if (pipe(fd2)==-1)

{

 fprintf(stderr, "Pipe Failed" );

 return 1;

}

if (pipe(fd3)==-1)

{

 fprintf(stderr, "Pipe Failed" );

 return 1;

}

if (pipe(fd4)==-1)

{

 fprintf(stderr, "Pipe Failed" );

 return 1;

}

p = fork();

if (p < 0)

{

 fprintf(stderr, "fork Failed" );

return 1;

}

// child process-1

else if (p == 0)

{

 close(fd1[0]);// Close reading end of first pipe

 char concat_str[100];

 printf("\n\tEnter meaaage:"):

 scanf("%s",concat_str);

 write(fd1[1], concat_str, strlen(concat_str)+1);

 // Concatenate a fixed string with it

 int k = strlen(concat_str);

 int i;

 for (i=0; i<strlen(fixed_str); i++)

 {

  concat_str[k++] = fixed_str[i];

 }

 concat_str[k] = '\0';//string ends with '\0'

 // Close both writting ends

 close(fd1[1]);

 wait(NULL);

//.......................................................................

 close(fd2[1]);

 read(fd2[0], concat_str, 100);

 if(strcmp(concat_str,"invalid")==0)

 {

 printf("\n\tmessage not send");

 }

 else

 {

  printf("\n\tmessage send to prog_2(child_2).");

 }

 close(fd2[0]);//close reading end of pipe 2

 exit(0);

}

else

{

 close(fd1[1]);//Close writting end of first pipe

 char concat_str[100];

 read(fd1[0], concal_str, strlen(concat_str)+1);

 close(fd1[0]);

 close(fd2[0]);//Close writing end of second pipe

 if(/*check if msg is valid or not*/)

 {

  //if not then

  write(fd2[1], "invalid",sizeof(concat_str));

  return 0;

 }

 else

 {

  //if yes then

  write(fd2[1], "valid",sizeof(concat_str));

  close(fd2[1]);

  q=fork();//create chile process 2

  if(q>0)

  {

   close(fd3[0]);/*close read head offd3[] */

   write(fd3[1],concat_str,sizeof(concat_str);//write message by monitor(main process) using fd3[1]

   close(fd3[1]);

   wait(NULL);//wait till child_process_2 send ACK

   //...........................................................

   close(fd4[1]);

   read(fd4[0],concat_str,100);

   close(fd4[0]);

   if(sctcmp(concat_str,"ack")==0)

   {

    printf("Messageof child process_1 is received by child process_2");

   }

   else

   {

    printf("Messageof child process_1 is not received by child process_2");

   }

  }

  else

  {

   if(p<0)

   {

    printf("Chiile_Procrss_2 not cheated");

   }

   else

   {

     

    close(fd3[1]);//Close writing end of first pipe

    char concat_str[100];

    read(fd3[0], concal_str, strlen(concat_str)+1);

    close(fd3[0]);

    close(fd4[0]);//Close writing end of second pipe

    write(fd4[1], "ack",sizeof(concat_str));

     

   }

  }

 }

 close(fd2[1]);

}

}

8 0
3 years ago
Which timeline shows the correct order of contributions made to the discovery of DNA?
Akimi4 [234]

Answer:

<em><u>THE ANSWER IS: B</u></em>

Explanation:

I took the Unit test and the answer is B

3 0
3 years ago
Read 2 more answers
The flexural strength or MOR of a ceramic is 310 MPa. A block of the ceramic, which is 20 mm wide, 15 mm high, and 300 mm long,
Alja [10]

Answer:

F=6200\ \text{N}\\

Explanation:

In this problem you need to define the force that acts upon a beam in a 3 point bending problem. I put a picture of the problem taken from Wikipedia:

In this problem the flexural strength is defined with the following formula:

\sigma=\cfrac{3FL}{2bd^2}

where F is the force applied, L the length between the two rods, b the width of the ceramic block and d it's height.

The force is then defined as:

F=\cfrac{2\sigma bd^2}{3L}=6200\ \text{N}

3 0
3 years ago
An insulated piston-cylinder device initially contains 0.16 m2 of CO2 at 150 kPa and 41 °C. Electric resistance heater supplied
lyudmila [28]

Answer:

I=0.3636

Explanation:

See the attached picture for explanation.

4 0
3 years ago
Engineers, scientists, and designers innovate products by taking apart existing
masya89 [10]

Answer:

Mechanical dissection

Explanation:

Taking apart old things and innovating to improve upon them is mechanical dissection.

7 0
3 years ago
Other questions:
  • Question 5
    7·2 answers
  • Ratio equivalent to 12 red beans to 5 total beans
    15·1 answer
  • Diffrerentiate y=cos^{4} (3x+1)
    5·1 answer
  • Best budget freestyle drone?
    6·1 answer
  • Resistance to impact is an example of a(n)
    12·1 answer
  • The volume of the pyramid is 36 cubic cm, find the volume of the prism.
    5·1 answer
  • Is Tesla French, American, German, or Russian?
    10·2 answers
  • Deviations from the engineering drawing cannot be made without the approval of the
    15·2 answers
  • Which of the following describes all illustrations created by freehand?
    10·2 answers
  • While, Do...while, and For loops can best be characterized as which of the following?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!