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 need to strike a<br>- among work, life, family, and other responsibilities is<br>universal.​
Dmitriy789 [7]
The need to strike is purposely to create unity and equal rights for what a group might feel is unfair .
4 0
3 years ago
How would you justify using cloud computing?
podryga [215]

Cloud Computing

Explanation:

1.Cloud computing allows employees to be more flexible in their work practices. For example, you have the ability to access data from home, on holiday, or via the commute to and from work (providing you have an internet connection).

2.Network capabilities are extended without requiring investment in new infrastructure, personnel, or software. Technology is integrated into every-day appliances allowing them to interconnect with other devices, making them more 'smart' or automated.

3.Cloud computing benefits

  • Efficiency / cost reduction. By using cloud infrastructure, you don't have to spend huge amounts of money on purchasing and maintaing equipment.
  • Data security.
  • Scalability.
  • Mobility.  
  • Disaster recovery..
  • Control.
  • Competitive edge.

4.Cloud environments promise several benefits such as reduced expenses and simplicity to ser- vice providers and service requesters [Foster et al. ... 2010], trust management and security are ranked among the top 10 obstacles for adopting cloud computing

6 0
4 years ago
When talking about the physical elements of the internet, the term redundancy refers to:?
Sphinxa [80]
It refers to the physical elements of the internet
6 0
4 years ago
Hardware refers to programs and protocols used on a computer system.<br><br> True<br> False
lapo4ka [179]

Answer:

False

Explanation:

7 0
3 years ago
Read 2 more answers
A computer has __________processing device
Artist 52 [7]

Answer:

electronic processing device

4 0
3 years ago
Other questions:
  • Famed science fiction writer H. G. Wells once envisioned something to store vast amounts of information. What did he call it?
    15·2 answers
  • An option button is a square button that enables you to make one choice among two or more options.
    15·1 answer
  • Jennifer recently bought a new computer to type a new manuscript she’s been working on. She also stored a lot of movies on it to
    10·1 answer
  • What’s bigger 4,000,000 KB or 2.8 GB
    5·2 answers
  • PLEASE HURRY!!!
    11·1 answer
  • This isn't a question
    8·1 answer
  • CLS <br> N = 1<br> FOR J = 1 TO 5 <br> PRINT N<br> N = 10*N+1 <br> NEXT J<br> END
    14·1 answer
  • If cell G7 contains the function ________, it states that if the value in cell C3 is 9, the number 7 will be assigned to cell G7
    6·1 answer
  • Write a C# program named DoubleDecimalTest thatdeclares and displays two variables - a double and a decimal.Experiment by assign
    9·1 answer
  • Hey! PLEASE HELP!!!
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!