free fire name mahakal

free fire name mahakal

TI Design an algorithm in flowchart that will receive two integer items from a terminal operator, and display to the screen their sum, difference, product, and quotient. Note that the quotient calculation (first integer divided by second integer) is only to be performed if the second integer does not equal zero

tolong bantu membuat flowchartnya​

Design an algorithm in flowchart that will receive two integer items from a terminal operator, and display to the screen their sum, difference, product, and quotient. Note that the quotient calculation (first integer divided by second integer) is only to be performed if the second integer does not equal zero

tolong bantu membuat flowchartnya​

Jawaban dan Penjelasan:

To design the required flowchart/algorithm, there are many possible ways.

2 alternatives are given:

  • Method 1: by using one variable for each mentioned integer arithmetic operation. Thus, we need 4 variables.
    This method is shown on Flowchart #1.
  • Method 2: by using ONLY one variable for all mentioned integer arithmetic operations.
    This method is shown on Flowchart #2.

Some important things to be considered here:

  • Flowchart shows “the flow” of process. So, it should be in sequential manner.
    For this problem, particularly, it is incorrect if we “branch out” the outcome of input to 4 processes.
    In flowchart, branches can only be drawn out from a decision/conditional symbol.
  • The division of two integers yields in integer, too, in the form of quotient + remainder.
    For example: 5 / 2 = 2, remainder = 1. The quotient is 2.

[answer.2.content]