1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
natali 33 [55]
4 years ago
8

Design the logic for a program that allows a user to enter 20 numbers, then displays all of the numbers, the largest number, and

the smallest.
Computers and Technology
1 answer:
cluponka [151]4 years ago
7 0

Explanation:

<u>Logic of the program</u>:

Step 1: START

Step 2: Set Integer data type array variable with size 20.

Step 3: Get input from the user in the array variable.

Step 4: Print the array variable

Step 5: Set integer variable "Maximum" in which we store  the array index 0

Step 6: Set integer variable "Minimum" in which we store  the array index 0

Step 7: Again set an integer variable "i" to 0

Step 8: Set the while loop and pass condition the variable "i"  is less than 20

Step 9: Then, set the if conditional statement and check array[i]  is greater than the variable "Maximum" then,

Step 10: Initialize the value of array[i] in the variable "Maximum" i.e., Maximum =array[i]

Step 11:  Again set the if conditional statement and check array[i] is less than the variable "Minimum" then,

Step 12: Initialize the value of array[i] in the variable "Minimum" i.e., Minimum =array[i].

Step 13: END the IF condition.

Step 14: Increment in the variable "i" by 1 i.e., i =i+1

Step 15: END the WHILE  loop

Step 16: Print the value of the variable "Maximum"

Step 17: Print the value of the variable "Minimum"

You might be interested in
The challenge of preparing for ____________________ is in ensuring that employees do not feel that they are being prepared for t
Liula [17]

Answer:

"Cross-training " seems to be the right response.

Explanation:

  • Cross-training seems to be the method of constructing a multi-professional workers staff with incentive plans to make sure that they must have the same tools to complete different occupational tasks throughout the organization.
  • This will be a very broad approach besides randomized controlled training methods, both maximum and minimum frequency, for generations.
7 0
3 years ago
from january 2005 through july 2015, approximately how many electronic data records in the United States were breached, exposing
Brums [2.3K]
From January 2005 through July 2017, approximately 853 million electronic data records in the US were breached.
This allowed the attackers to take control over people's personal data, such as their various credit card numbers, and other important data, as well as their addresses, etc. The cyber police, as well as the regular police have been working hard to stop this from happening, but the hackers are very strong and smart.
4 0
3 years ago
Xbrl taxonomy: is the document format used to produce web pages. is the final product (report. is a classification scheme. is a
frosja888 [35]
The answer to this is "is a classification scheme"..hope that helped
3 0
4 years ago
And what way do you mixed and market economy support the ideals of democracy​
PolarNik [594]
Mixed and market economies protect individuals' ability to make their own economic decisions.
5 0
3 years ago
An intruder with malicious intent breaks into an office and steals a hard drive
kakasveta [241]

Answer: data security

Explanation:

The company's authentication protocols and data encryption measures denotes data security.

Data security simply means protecting unauthorized people from having access to a particular data. This is done to prevent unauthorized access of important information or to prevent fraud. Some of the data security measures include data encryption, tokenization, hashing, etc.

4 0
3 years ago
Other questions:
  • The create_python_script function creates a new python script in the current working directory, adds the line of comments to it
    9·1 answer
  • In a car crash, wearing a seat belt __________________.
    5·2 answers
  • Which of the following is the correct binary representation of the number 2?
    14·1 answer
  • When calling a function with arguments that should be modified, the __________ of those arguments are passed.
    5·1 answer
  • Why might an algorithm created to assist in hiring decisions be biased?
    15·1 answer
  • How does this happen on brianly???
    5·2 answers
  • Normalization works through a series of stages called normal forms. For most purposes in business database design, _____ stages
    7·2 answers
  • What is the role of computer in modern problem solving​
    13·1 answer
  • I need help!!!! 1.04
    9·1 answer
  • Write a program to assign and display a string value to any variable of your choice
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!