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
Strike441 [17]
3 years ago
5

Find the sum and product of each of these pairs of numbers. Express your answers as a base 3 expansion. Hint: We can just add an

d multiply using the grade-school algorithms (working column by column starting at the right), using the addition and multiplication tables in base three (for example, 2 + 1 = 10 and 2 · 2 = 11). When a digit-by-digit answer is too large to fit (i.e., greater than 2), we "carry" into the next column. (10 points) (112)3, (210)3
Engineering
1 answer:
Arlecino [84]3 years ago
8 0

Answer:

112_3 + 210_3 = 1022_3

112_3 \times 210_3 = 101220_3

Explanation:

To find the sum of the two numbers, start summing from the right most numbers.

right most: 2 + 0 = 2

middle: 1 + 1 = 2

left: 1 + 2 = 3. Converting 3 to base 3, we have 1 r 0 = 10.

Therefore, 112_3 + 210_3 = 1022_3.

To find the product, simply do

(0 \times 112) + (1 \times 112) + (2 \times 112)\\ = 000 + 112 + 1001 = 101220.

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
What is the definition of comma
masya89 [10]
Com·ma
/ˈkämə/
NOUN
1. a punctuation mark (,) indicating a pause between parts of a sentence. It is also used to separate items in a list and to mark the place of thousands in a large numeral.

2. a minute interval or difference of pitch.
5 0
3 years ago
A microwave transmitter has an output of 0.1W at 2 GHz. Assume that this transmitter is used in a microwave communication system
Len [333]

Answer:

gain = 353.3616

P_r = 1.742*10^-8 W

Explanation:

Given:

- The output Power P_o = 0.1 W

- The diameter of the antennas d = 1.2 m

- The frequency of signal f = 2 GHz

Find:

a. What is the gain of each antenna?

b. If the receiving antenna is located 24 km from the transmitting antenna over a free space path, find the available signal power out of the receiving antenna.

Solution:

- The gain of the parabolic antenna is given by the following formula:

                            gain = 0.56 * 4 * pi^2 * r^2 / λ^2

Where, λ : The wavelength of signal

            r: Radius of antenna = d / 2 = 1.2 / 2 = 0.6 m

- The wavelength can be determined by:

                            λ = c / f

                            λ = (3*10^8) / (2*10^9)

                            λ = 0.15 m

- Plug in the values in the gain formula:

                            gain = 0.56 * 4 * pi^2 * 0.6^2 / 0.15^2

                            gain = 353.3616

- The available signal power out from the receiving antenna is:

                            P_r = (gain^2 * λ^2 * W) / (16*pi^2 * 10^2 * 10^6)

                            P_r = (353.36^2 * 0.15^2 * 0.1) / (16*pi^2 * 10^2 * 10^6)

                            P_r = 1.742*10^-8 W

4 0
3 years ago
Student A says hazardous waste can take the form of solid, liquid, or gas. Student B says hazardous waste can only take the form
lina2011 [118]

Answer:

Student A

Explanation:

hope this helps have a great day

4 0
3 years ago
Consider a fully developed flow in a circular pipe (negligible entrance effects), how does the convective heat transfer coeffici
Alexeev081 [22]

Answer: A)  Gradually decrease

Explanation:

  The convection value of heat transfer rate are gradually decreasing with the flow of the heat. Flow in a circular pipe, flow direction does not change in the velocity path. The average of the coefficient of heat transfer and the number of pipes are needed and the effects are get neglected so that is why the flow are fully developed.

8 0
3 years ago
Other questions:
  • How many grams of water at 5.00 °C would we need to mix with 140.0 g of water at 85.0 °C to obtain a final temperature of 43.0 °
    6·1 answer
  • Draw the hierarchy chart and then plan the logic for a program needed by Hometown Bank. The program determines a monthly checkin
    8·1 answer
  • Air (ideal gas) is contained in a cylinder/piston assembly at a pressure of 150 kPa and a temperature of 127°C. Assume that the
    12·1 answer
  • Discuss the impact of the changing urban center. Include the impacts on political, economic, and social roles and opportunities.
    12·1 answer
  • A new 1.2-ha suburban residential development is to be drained by a storm sewer that connects to the municipal drainage system.
    15·1 answer
  • 8.2.1: Function pass by reference: Transforming coordinates. Define a function CoordTransform() that transforms the function's f
    8·1 answer
  • If a tapered roller bearing is adjusted to loose, the bearing will bind and overheat.
    11·1 answer
  • Some of our modern kitchen cookware is made of ceramic materials. (a) List at least three important characteristics required of
    12·1 answer
  • What is the primary difference between the process of lost-wax casting as practiced in ancient times and that same process today
    13·1 answer
  • Hello, I have a question, I would be glad if you can help.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!