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
GrogVix [38]
3 years ago
13

Any programmer who writes a Diophantine equation solver must occasionally encounter an infinite loop.

Engineering
1 answer:
Sergio [31]3 years ago
4 0

Answer: True

Explanation:

An Infinite loop occurs in a computer programming when a sequence of instructions run endlessly without stopping until there is an external intervention, this intervention could be pull or plug. It is also known as endless loop. It occurs due to using of variables that are not properly updated or when there is an error in looping condition.

You might be interested in
The output side of an ideal transformer has 35 turns, and supplies 2.0 A to a 24-W device. Ifthe input is a standard wall outlet
Crank

Answer:

The current drawn from the outlet is 0.2 A

The number of turns on the input side is 350 turns

Explanation:

Given;

number of turns of the secondary coil, Ns = 35 turns

the output current, I_s = 2 A

power supplied, P_s = 24 W

the standard wall outlet in most homes = 120 V = input voltage

For an ideal transformer; output power = input power

the current drawn from the outlet is calculated;

I_pV_p = P_s\\\\I_p = \frac{P_s}{V_p} = \frac{24}{120} = 0.2 \ A

The number of turns on the input side is calculated as;

\frac{N_p}{N_s} = \frac{I_s}{I_p}  \\\\N_p = \frac{N_sI_s}{I_p} \\\\N_p = \frac{35 \times 2}{0.2} \\\\N_p = 350 \ turns

4 0
3 years ago
Milk has a density of as much as 64.6 lb/ft3. What is the gage pressure at the bottom of the straw 6.1 inches deep in the milk?
gregori [183]

Answer:

Explanation:

1 inch is 0.0833333feet

6.1 inches is 0.5083 feet

Density = mass/volume

64.6 = mass/0.50833

mass = 64.6 x 0.5083 =32.83618lb

3 0
3 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 is the need to achieve population inversion​
notka56 [123]

Explanation:

Population inversion is a process of achieving more electrons in the higher energy state than the lower energy state. In order to achieve population inversion, we need to supply energy to the laser medium. The process of supplying energy to the laser medium is called pumping.

3 0
3 years ago
Eight energy corporations made plans to increase their combined spending on efficiency programs to $50 million per year for the
tangare [24]

Answer:

F=531831381

Explanation:

There are two  ways of doing this question:

1) By Formula

2) By Using  Compound interest Table

By Formula:

F=A*\frac{(1+i)^{n}-1}{i}

Where:

F is future value

A is annual amount per year

i is interest rate

n is number of years

F=50 million*\frac{(1+0.08)^{8}-1}{0.08}

F=531831381

By Using  Compound interest Table:

F=A(F/A,i,n)

From Table F/A at i=8% and n=8 is 10.6366

F=50000000*(10.6366)

F=531830000≅531831381

The difference in two answers is due to decimal points if you take value from table to greater decimal points you will get the exact answer as by using formula.

7 0
3 years ago
Other questions:
  • It is true about Metals and alloys: a)-They are good electrical and thermal conductors b)-They can be used as semi-conductors c)
    7·2 answers
  • The lab technician you recently hired tells you the following: Boss, an undisturbed sample of saturated clayey soil was brought
    6·1 answer
  • Hey, I have a question, I was thinking that if you have engineering skills or drawing skill you could help me to start a project
    15·1 answer
  • The water in a large lake is to be used to generate electricity by the installation of a hydraulic turbine-generator at a locati
    7·1 answer
  • Nicholas wants to verify whether a file is a hard link to a file within the same directory. Which of the following commands coul
    6·1 answer
  • Working with which of these systems requires a technician that has been certified in an EPA-approved course?
    11·1 answer
  • Ignore swell and shrinkage for this problem.
    5·1 answer
  • Write a function separatethem that will receive one input argument which is a structure containing fields named length and width
    8·1 answer
  • Plateau Creek carries 5.0 m^3 /s of water with a selenium (Se) concentration of 0.0015 mg/L. A farmer withdraws water at a certa
    12·1 answer
  • Name the famous engineer in the world​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!