jcrowley7883 jcrowley7883
  • 11-03-2022
  • Computers and Technology
contestada

Write a pseudocode for the logic of a program that accepts five numbers from a user and displays one of the following messages:- The largest number is xx. The smallest number is xx

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 17-03-2022

The pseudocode of a program is used as a prototype of the program

How to write the pseudocode

The pseudocode of the program is as follows:

  1. Counter = 1
  2. Input num
  3. Min = num
  4. Max = num
  5. // Input remaining 4 numbers
  6. do {
  7. Counter = Counter + 1
  8. Input num
  9. If (num < Min) { Min = num }
  10. if (num > Max)  {Max = num}
  11.  }
  12. while (counter < 5)
  13. Print Min, Max
  14. End

Read more about pseudocode at:

https://brainly.com/question/24735155

Answer Link

Otras preguntas

At the begining of 6 grade the ratio of number of the advanced math students to the number of regular students was 3:8. However after taking the placement tests
At the begining of 6 grade the ratio of number of the advanced math students to the number of regular students was 3:8. However after taking the placement tests
What was an effect of nationalism in Europe in the early 1900s?
Suppose theta= 11pi/12. How do you use the sum identity to find the exact value of sin theta?
At the begining of 6 grade the ratio of number of the advanced math students to the number of regular students was 3:8. However after taking the placement tests
How do you find the perimeter of a dented square?
What was an effect of nationalism in Europe in the early 1900s?
How do you find the perimeter of a dented square?
if arctan(3/5)=K    Tan(k)=?
Suppose theta= 11pi/12. How do you use the sum identity to find the exact value of sin theta?