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

What are the domain, range, and asymptote of h(x) = (1.4)x + 5?
Please help???? Geometry
Send help, inverse trigonometric functions
The Senate rejecting a treaty negotiated by the president is an example of which process in the U.S. government? natural law checks and balances laissez faire p
The function g(x) = 3(x - 3)2 + 2 will translate 3 units to the right
PGA is the first stable product of
Calling all chemists...please help me!  Ive attached a screen shot of the problem
Miguel: me gusta practicar deportes. ?practicas deportes? juan: sí, yo los practico también. me gusta practicar todos los días porque me gusta hacer ejercicio.
Four more than the product of 18 and a number Use the variable n to represent the unknown number.
Please help !!!! Geometry