Question

In: Computer Science

a) write a pseudocode to read three numbers and find the smallesr one b) write an...

a) write a pseudocode to read three numbers and find the smallesr one
b) write an algorithm for sane problem
c) draw flowchart for the same problem

Solutions

Expert Solution

Thanks for the question, Could you please mention the language (C, C++, C#, Java, Python) in which to write the algorithm. Below are the pseudocode and flowchart.

===============================================================

Psuedocode

begin

numeric a, b, c , smallest
display "Enter your first number"
accept a
smallest = a
display "Enter your second number"
accept b
if (smallest>b)
smallest = b
end if
display "Enter your third number"
accept c
if (smallest>c)
smallest = c
end if

display "Smallest number" + smallest

end
=============================================================

Flowchart


Related Solutions

Write a C++ program to read N numbers. Find sum, product, and average of N numbers
Write a C++ program to read N numbers. Find sum, product, and average of N numbers
a. Find three rational numbers between 3/4 and 0. 75 overbar b. Find three rational numbers...
a. Find three rational numbers between 3/4 and 0. 75 overbar b. Find three rational numbers between 1/9 and 0. 12 overbar
Write a program in Easy68K: a) Define an array of numbers in the memory. b) Read...
Write a program in Easy68K: a) Define an array of numbers in the memory. b) Read two numbers from keyboard. The first number is the size of the array and the second number is what index of the array you want to access. The index you entered can be larger than the array. c) Display the element indexed by (index % size) in the array.
Write pseudocode for quick find algorithm anf quick union algorithm Write pseudocode for quick find algorithm...
Write pseudocode for quick find algorithm anf quick union algorithm Write pseudocode for quick find algorithm and quick union algorithm
Write a program in C++ to read 10 numbers from keyboard and find their sum, average,...
Write a program in C++ to read 10 numbers from keyboard and find their sum, average, maximum and minimum
Let a , b , c be three integer numbers. Write a C++ program with a...
Let a , b , c be three integer numbers. Write a C++ program with a functions void rotate1(int* a,int* b,int* c) void rotate2(int& a,int& b,int& c) such that a -> b , b -> c and c -> a. Thus we use two different approaches (pointers in rotate1 and references in rotate2).
Draw a flowchart and pseudocode that accepts three numbers from a user and displays a message...
Draw a flowchart and pseudocode that accepts three numbers from a user and displays a message if the sum of any two numbers equals the third. Make a working version of this program in Python.
Let A and B be sets of real numbers such that A ⊂ B. Find a...
Let A and B be sets of real numbers such that A ⊂ B. Find a relation among inf A, inf B, sup A, and sup B. Let A and B be sets of real numbers and write C = A ∪ B. Find a relation among sup A, sup B, and sup C. Let A and B be sets of real numbers and write C = A ∩ B. Find a relation among sup A, sup B, and sup...
Write an algorithm (flowchart OR Pseudocode) for the following problems: Take ten different numbers as input...
Write an algorithm (flowchart OR Pseudocode) for the following problems: Take ten different numbers as input and display the sum of there squares (SS). Example: let the inputs are: 3, 0, -1, 0, 9, -5, 6, 0, 2, 1 then 157 is displayed, because: SS=32+02+(-1)2+02+92+(-5)2+62+02+22+12=157 Take input character from the user unless he enters '$'. Thereafter display how may vowels were entered by the user. Also display the number of each vowel ('a', 'e', 'i', 'o' and 'u') separately. For...
The sum of three nonnegative numbers is 36. One of the numbers is twice one of...
The sum of three nonnegative numbers is 36. One of the numbers is twice one of the other numbers. None of the numbers are greater than 12. What is the maximum value of the product of these three numbers? Use x, y, z as your variables
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT