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
ANEK [815]
2 years ago
6

It is better to know or not to know?​

Engineering
2 answers:
Serhud [2]2 years ago
5 0

Answer:

To know because getting knowledge is better than not getting it. It won't hurt u or harm u it will help

dmitriy555 [2]2 years ago
5 0
It is always better to know. It may be hurtful, it may be happy just better to know then to not know.
You might be interested in
Economics is the study of how individuals and societies make choices under the condition of
k0ka [10]

Answer:

ig scarcity

Explanation:

Hope it Helps!!!

3 0
2 years ago
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
What type of foundation do engineers use for a small and light building and when the load of the building is borne by columns? A
ikadub [295]

Answer:

A.

Explanation:

Individual footings are the commonest, and they are often used if the load of the building is borne by columns. Typically, every column will have an own footing. The footing is usually only a rectangular or square pad of concrete on which the column is erected

8 0
3 years ago
A cold air standard gas turbine engine with a thermal efficiency of 56.9 % has a minimum pressure of 100 kP
Aleks04 [339]

Answer:

a) 5.2 kPa

b) 49.3%

Explanation:

Given data:

Thermal efficiency ( л ) = 56.9% = 0.569

minimum pressure ( P1 ) = 100 kpa

<u>a) Determine the pressure at inlet to expansion process</u>

P2 = ?

r = 1.4

efficiency = 1 - [ 1 / (rp)\frac{r-1}{r} ]

   0.569   = 1 - [ 1 / (rp)^0.4/1.4

1 - 0.569  = 1 / (rp)^0.285

∴ (rp)^0.285 = 0.431

rp = 0.0522

note : rp = P2 / P1

therefore P2 = rp * P1 = 0.0522 * 100 kpa

                                   = 5.2 kPa  

b) Thermal efficiency

Л = 1 - [ 1 / ( 10.9 )^0.285 ]

   = 0.493 = 49.3%

4 0
3 years ago
A program is seeded with 30 faults. During testing, 21 faults are detected, 15 of which are seeded faults and 6 of which are ind
Vesna [10]

Answer:

Estimated number of indigenous faults remaining undetected is 6

Explanation:

The maximum likelihood estimate of indigenous faults is given by,

N_F=n_F\times \frac{N_S}{n_S} here,

n_F = the number of unseeded faults = 6

N_S = number of seeded faults = 30

n_s = number of seeded faults found = 15

So NF will be calculated as,

N_F=6\times \frac{30}{15}=12

And the estimate of faults remaining is  N_F-n_F = 12 - 6 = 6

8 0
3 years ago
Other questions:
  • Suppose that a wireless link layer using a CSMA-like protocol backs off 1ms on average. A packet’s link and physical layer heade
    5·1 answer
  • Water flows through a pipe at an average temperature of T[infinity] = 70°C. The inner and outer radii of the pipe are r1 = 6 cm
    13·1 answer
  • Coal fire burning at 1100 k delivers heat energy to a reservoir at 500 k. Find maximum efficiency.
    6·1 answer
  • MCQ : What are the main the constituents of acid rains?
    10·2 answers
  • Q1. Basic calculation of the First law (2’) (a) Suppose that 150 kJ of work are used to compress a spring, and that 25 kJ of hea
    6·1 answer
  • When we say that communication is
    13·1 answer
  • Technician A says that the low level brake fluid switch on a master cylinder will turn on the brake warning light when the syste
    9·1 answer
  • I really need help with my last topic,Hazard communication,if anyone can help me as soon as possible,that could be my Christmas
    12·1 answer
  • How can the use of local materials improve the standard of living of Filipinos?
    8·1 answer
  • It is possible to design a reactor where the scy conductor and the nitrogen/ammonia electrode operate at different temperatures.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!