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
Brilliant_brown [7]
3 years ago
11

Input a list of positive numbers, terminated by 0, into an array Numbers[]. Then display the array and the largest and smallest

number in it.
Computers and Technology
1 answer:
leonid [27]3 years ago
5 0

Answer:

hope this helps and mark my ans brainliest if it helped.

Explanation:

def main():

Numbers = []

n = input("Enter the number: ")

while n != 0:

Numbers.append(n)

n = input("Enter the number: ")

if len(Numbers) > 0:

max = Numbers[0]

min = Numbers[0]

for i in range(0, len(Numbers)):

if max < Numbers[i]:

max = Numbers[i]

if min > Numbers[i]:

min = Numbers[i]

print Numbers

print "Largest: ", max

print "Smallest: ",min

  

main();

You might be interested in
The _______ displays the data series in separate columns side-by-side so that you can compare the relative heights of the column
k0ka [10]

Answer:

Cluster Column Charts.

Explanation:

Clustered column chart:-It displays multiple data series in separate vertical columns. Each series have the same axis labels.Clustered vertical columns thus allow direct comparison of multiple data series.When having three data series you can compare their heights also.So we conclude the answer is Cluster Column Charts.

3 0
3 years ago
Read 2 more answers
Which of the following are drivers of machine learning growth?
alukav5142 [94]

Answer:

machine learning

Explanation:

4 0
3 years ago
I will give Brainliest to the best answer, I need urgent HELP
laila [671]
The answer is B. Range
4 0
3 years ago
Write an expression that will cause the following code to print "Equal" if the value of sensorReading is "close enough" to targe
natali 33 [55]

Answer:

The C++ code is given below with appropriate comments

Explanation:

//Remove this header file if not using visual studio.

#include "stdafx.h"

//Include the required header files.

#include <iostream>

//Use for maths function.

#include <cmath>

using namespace std;

//Define main function

int main()

{

      // Define the variables

      double targetValue = 0.3333;

      double sensorReading = 0.0;

      //Perform the opeartion.

      sensorReading = 1.0 / 3.0;

      // Get the absolute floating point value and

      // Check up to 4 digits.

      if (fabs(sensorReading - targetValue) < 1E-4)

      {

             //Print equal if the values are close enough.

             cout << "Equal" << endl;

      }

      else

      {

             //Print not equal if the values are not                  

             //close enough.

             cout << "Not equal" << endl;

      }

      system("pause");

      //Return the value 0.

      return 0;

}

5 0
4 years ago
Which payment method typically charges the highest interest rates?
Dima020 [189]
Credit cards. You pay interest when you use them
7 0
3 years ago
Read 2 more answers
Other questions:
  • There’s No Difference In Security If You Use A Public PC Or Your Own Computer.
    6·1 answer
  • What do you believe are the advantages of a clean install over an upgrade? What additional choices do you think are important to
    9·1 answer
  • A client is asking for a printing solution that will print three sheets of paper with identical information on each page with a
    13·1 answer
  • List three things that scientists learned about earth beginning in the 1800s
    13·1 answer
  • Green Field county stadium is planning to conduct a cricket match between two teams A and B. A large crowd is expected in the st
    6·1 answer
  • What stylistic device does Reverend Jesse Jackson use in the following statement: "We must relate instead of debate; we must ins
    10·1 answer
  • Which of the following is an example of an access object?
    9·1 answer
  • Any Danganronpa fans around here? I'm bored.
    13·2 answers
  • Your computer science teacher asks you to sample a black and white image that is 4” x 6”. How would you sample the image to prov
    10·1 answer
  • As a network engineer, you have been creating patch (straight-through) cables for a network switch. You have plugged in all the
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!