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

Although Frida Kahlo's paintings did not achieve commercial success during her lifetime, near the enA.posterior  B.posthumous  C.preempted  D.primed of the 20th
3. For each of the male and female reproductive organs listed below, identify the function Male reproductive organs: Testes function - Penis function - Female
What are the complementary mRNA and tRNA sequences for this sequence of DNA bases: CGA?
most active transport proteins use energy from the breakdown of what?
What type of government did the Roman Empire utilize?
The simplest operational cell is still more complex than a computer? 1)true 2) false
how does an author use artifacts in literature?
-6 9/16 written as a decimal
the ratio of students with bikes to students with scooters in the school is 85:51. What is the greatest common factor that you could use to simplify this ratio
Can an oxygen canister ever be half open