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
Kobotan [32]
3 years ago
10

7. Which of the following is a disadvantage of an electromagnet?

Engineering
1 answer:
Sati [7]3 years ago
7 0

Answer:

I think

electromagnets require power to operate

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
Write a iterative function that finds the n-th integer of the Fibonacci sequence. Then build a minimal program (main function) t
Natasha2012 [34]

Answer:

Codes for each of the problems are explained below

Explanation:

PROBLEM 1 IN C++:

#include<iostream>

using namespace std;

//fib function that calculate nth integer of the fibonacci sequence.

void fib(int n){

  // l and r inital fibonacci values for n=1 and n=2;

  int l=1,r=1,c;

 

  //if n==1 or n==2 then print 1.

  if(n==1 || n==2){

      cout << 1;

      return;

  }

  //for loop runs n-2 times and calculates nth integer of fibonacci sequence.

  for(int i=0;i<n-2;i++){

      c=l+r;

      l=r;

      r=c;

      cout << "(" << i << "," << c << ") ";

  }

  //prints nth integer of the fibonacci sequence stored in c.

  cout << "\n" << c;

}

int main(){

  int n; //declared variable n

  cin >> n; //inputs n to find nth integer of the fibonacci sequence.

  fib(n);//calls function fib to calculate and print fibonacci number.

}

PROBLEM 2 IN PYTHON:

def fib(n):

   print("fib({})".format(n), end=' ')

   if n <= 1:

       return n

   else:

       return fib(n - 1) + fib(n - 2)

if __name__ == '__main__':

   n = int(input())

   result = fib(n)

   print()

   print(result)

7 0
2 years ago
Read 2 more answers
Which of the following applies to a module?
Ipatiy [6.2K]

Answer:

D all of the above

Explanation:

because I said so

3 0
2 years ago
Describe a project in which you would use a pleater, ruffling foot, or gathering foot. Explain each of these tools and choose th
WITCHER [35]

A project that requires using a pleater, a ruffling foot, or a gathering foot is the creation of a dress.

A pleater, a ruffling foot, and a gathering foot are all accessories for sewing machines or machines themselves that help fashion designers to give the fabric a different shape or texture, and therefore create unique pieces.

  • Pleater: This tool includes multiple needles that go through the fabric to create multiple pleats
  • Ruffling foot: This is usually an accessory for sewing machines to create ruffles
  • Gathering foot: This tool is used to create gathers in fabric, these differ from ruffles because they are smaller and more subtle than ruffles

All of the tools can be used in the creation of a dress, for example, a pleater can be used in the top section of the dress to give it a nice texture and make it different from the skirt. In the same way, others such as the ruffling foot or the gathering foot can be used in the sleeves of the dress.

Learn more in: brainly.com/question/24702927

8 0
2 years ago
A NC drill press is to perform a series of through-hole drilling operations on a 1.75 in thick aluminum plate that is a componen
jekas [21]

Answer:

26.7 min

Explanation:

First, we will find the <u>time required to drill each hole</u>:

  • N = 300 x 12/0.75 \pi = 1527.7 rev/min
  • fr = 1527.7 (0.015) = 22.916 in/min

Formula for <u>distance per hole</u>: 0.5 + A + 1.75

  • A = 0.5 (0.75) tan (90-100 / 2) = 0.315 in
  • Tm = (0.5 + 0.315 + 1.75) / 22.916 = 0.112 min

Now, we will calculate the <u>time required to draw back the drill form hole</u>:

              = 0.112 / 2 = 0.056 min

Time to move between holes = 1.5 / 15 = 0.1 min

For 100 holes, the number of moves between holes = 99

Total time required to drill 100 holes (t):

                       t = 100 (0.112 + 0.056) + 99 (0.1) = 26.7 min

7 0
3 years ago
Read 2 more answers
Other questions:
  • La base de los tema relacionados a las ciencia de las ingeniería es?
    7·1 answer
  • Are you able to text without looking at your phone?
    10·1 answer
  • You are a technical writer for Landson Toy Company. Landson has just designed a new, more durable swing set for 6- to 10-year-ol
    9·1 answer
  • Please write the command(s) you should use to achieve the following tasks in GDB. 1. Show the value of variable "test" in hex fo
    5·1 answer
  • Consider a sphere made of stainless steel with diameter of 25 cm. It is heated to temperature of 300°C for some chemical tests.
    12·1 answer
  • How to Cancel prescription
    12·1 answer
  • Can someone help me plz!!
    13·1 answer
  • A wing generates a lift L when moving through sea-level air with a velocity U. How fast must the wing move through the air at an
    7·1 answer
  • When economist determine that a nations GDP has declined, they can point to this as a sign of what?
    8·1 answer
  • A ruptured desiccant bag in a reciever-driver is usually caused by what?​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!