answersLogoWhite

0


Best Answer

It's not easy to show a flow chart using a text-based forum. Instead, I'll show the algorithm using pseudocode. You should be able to draw a flowchart from this.

  1. let largest=0
  2. let number=first_number
  3. if number
  4. let largest=number
  5. if number=last_number then goto 8
  6. number=next_number
  7. goto 3
  8. return largest
User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

This a text-based forum. We can't "draw" anything. All we can do is describe the procedure in words.

To find the maximum in a set of numbers, store the first value, then iterate through the remaining values, comparing each with the one that you stored. If the stored value is less than the current value, replace the stored value with the current value. When you've iterated through all the values, the stored value will contain the largest value.

In C++, you'd use the following function to determine the largest value in the given array, A, of the given size:

int max(int A[], size_t size)

{

int result=0;

if( size )

{

result=A[0];

for(int i=1; i<size; ++i )

if(result<A[i])

result=A[i];

}

return(result);

}

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

There are special flow-chart rulers that help you to draw the different boxes.

first draw the box and writ as start, and draw a arrow and draw input box and write as "Input first no as (A)","Input second no as (B)","input third no as "C".

and draw a arrow, and draw a decision box and give as " if A>B". and draw two line as correct"yes" and false"no". Ongoing of "yes" arrow draw a process and type "A=X" to express "A" 's value as "x" 's value. so x=a, and Ongoing of "no" arrow draw a process and type "B=X" to express "B" 's value as "x" 's value. so x=b, and get the outer two arrow of the processes and connect together. and connect that to a new function as"X>C" if yes type in the output box as Print "X" . if not Print "c". and conect the outer arrows as the end box...........

i used here that only two function boxes here. if u have any doubts pls contact me via my mail.............

(ahamedzaki19981010@gmail.com)

(+94) 777 353 623

This answer is:
User Avatar

User Avatar

Wiki User

7y ago

It is not possible to draw a flowchart here, however we can show you the algorithm in pseudocode which should help you to draw your own flowchart:

Algorithm: get_rangeis:

Input: a zero-based array of n values, v[n], such that n>0

Output: the min and max values in the closed range v[0:n-1]

let min := v[0]

let max := v[0]

for i := 1 to n-1

if v[i] < min then

let min := v[i]

else if v[i] > max then

let max := v[i]

end if

next i

return min, max

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

itanong mo sa matalino mong kaklaseng si ralen alam nya yan 4 sure may bayad nga lang hakhakhak

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

itanong mo sa matalinong mong kaklaseng si ralen :) alam nya yan 4 sure

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

max & min of a number is the number itself.

no flowchart required

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

1ekar=

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Draw a flowchart to find greater and smaller number from given two numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

There are two consecutive odd numbers such that five times the smaller plus twice the greater is 25 What is the smaller number?

There are two consecutive odd numbers such that five times the smaller plus twice the greater is 25. What is the smaller number?


How you could use a number line to determine which of two numbers is greater?

On a number line, the numbers start with zero and get larger as they move to the right, They are negative and get smaller as they move to the left from the zero. To find which number is greater, you can find the places of two numbers on the line and the one on the right is greater.


Are the smaller numbers mass and greater numbers protons?

The mass number is the sum of protons and neutrons.


-2 and -3 which is greater?

1


Draw a flowchart to accept 3 numbers and display the largest number?

draw a flowchart to display the first tenth even number


What odd numbers smaller than 36 but greater than 89?

None. If a number is smaller than 36 it cannot be greater than 89.


What numbers make a triangle?

Any three numbers where the sum of the two smaller numbers is greater than the third number. List the numbers in order from least to greatest, repeating any number if necessary. Add the first two numbers together and if this sum is greater than the third number then a triangle with those sides can be made. ie if the sum of the two smaller numbers is greater than the third number then a triangle can be made.


The sum of two numbers is 208 one third of the greater numbers equals the smaller number what are the numbers?

52 and 156.


There are two consecutive odd numbers such that twice the smaller number plus one is ten more than the greater number What is the smaller number?

11


How can you decide with of two integers is greater when both numbers are negative?

The number with the smaller absolute value (magnitude) is greater.


Are odd numbers less than prime number?

No. Odd numbers can be greater than, smaller than, or equal to prime numbers.


Is the sum of two numbers always greater than the larger number?

Not always, if the smaller number is 0 or a negative number. Then their sum will be equal or less than the greater number.