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
melomori [17]
3 years ago
12

Write a program that will accept n number of integers from the keyboard. When the loop exits output the largest and smallest val

ue entered. Note: Be careful, it is not appropriate to initialize the variables that hold the largest and smallest values to 0 as your first number. If you think about it if all values entered are greater than 0 then your program will output 0 as the smallest number and this was not a number that was entered.
Required: The only decisions staments allowed inside the loop are to determine the largest and smallest value. This means you are not allowed to use a decision to determine if the first number was entered. This is going to require you to prime your loop.

Computers and Technology
1 answer:
Andre45 [30]3 years ago
6 0

Answer:

Explanation:

n = eval(input('Enter # of number you want to enter: '))

list_=[]

for i in range(n):

   number = eval(input("enter number: "))

   list_.append(number)

   if i == n-1:

       maximum = max(list_)

       minimum = min(list_)

       print("maximum : "+str(maximum))

       print("minimum : "+str(minimum))

   

You might be interested in
Shannon wants to work with renewable energy. She is researching what it would take to become a geochemist. A geochemist is someo
Liula [17]

Answer:

Critical thinking

Explanation:

Shannon needs to be a Critical thinker to be effective in this position. Critical thinking has to do with giving deep and good thoughts while doing analysis, or assessment in other to come up with good judgements about a subject or topic.

Since she is going to be studying water and elements in it, she would be doing a lot of analysis and assessments and In other to do good in her field she must learn to think critically before arriving at her conclusions.

3 0
4 years ago
ANSWER ASAP!!! 12 POINTS!!!!! RIGHT ANSWERS ONLY
suter [353]

Answer:

B.

Explanation:

8 0
2 years ago
Read 2 more answers
Write a program in Java programming language to display or calculate “Hello, Daddy and Mum”
olganol [36]

Answer:

class Simple{

public static void main(String args[]){

System.out.println("Hello Daddy and Mum);

}

}

Explanation:

First, we create a class, then a method and then give the Integrated Data Environment (IDE) the command to give out an output that says Hello, Daddy and Mum”

8 0
2 years ago
What are the most important benefits of using Virtual Reality in business training?.
Effectus [21]

Answer:

If something goes wrong, it doesn't affect any real-world situations or the company itself in the real world

Explanation:

8 0
3 years ago
Read 2 more answers
Which of the following is not a type of degree of freedom?
motikmotik

Answer:

Option (B) Linear movement will be the answer.

4 0
3 years ago
Other questions:
  • What file formats can you safely use in a video presentation
    14·1 answer
  • _____ is a function performed by control programs that manages computer resources, such as storage and memory.
    11·1 answer
  • How do i protect my computer from electrical spikes
    14·2 answers
  • You must have an active ____ to test external links.
    5·1 answer
  • Fill in the blank
    11·1 answer
  • What type of backlighting receives dc power directly from a motherboard and doesn't use an inverter?
    11·1 answer
  • What is the name of the process of checking the client's production environment to ensure software and hardware compatibility wi
    5·2 answers
  • Desktop and personal computer are also known as​
    7·1 answer
  • 12. Why is it so important to pay attention to your digital reputation?
    14·1 answer
  • Which of these can be a problem for people with accessibility issues? Select 4 options.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!