Homework Solution: Write a program that inputs a series of 10 non-negative numbers and determines and prints the large…

    Write a program that inputs a series of 10 non-negative numbers and determines and prints the largest of those numbers. Your program should use three variables Counter- a counter to count to 10 (i.e. to keep track of how many numbers have been input and to determine when all 10 number have been processed) Number the current number input to the program Largest-the largest number found so far In C++ preferably
    Write a program that inputs a series of 10 non-negative numbers and determines and prints the largest of those numbers. Your program should use three variables: Counter - a counter to count to 10 (i.e. to keep track of how many numbers have been input and to determine when all 10 number have been processed) Number - the current number input to the program Largest - the largest number found so far

    Expert Answer

     
    #include <iostream>

    Write a program that inputs a train of 10 non-negative collection and individualizes and prints the largest of those collection. Your program should explanation three variables Opposed- a opposed to sum to 10 (i.e. to conceal vestige of how frequent collection own been input and to individualize when perfect 10 estimate own been processed) Estimate the exoteric estimate input to the program Largest-the largest estimate establish so far

    In C++ preferably

    Write a program that inputs a train of 10 non-negative collection and individualizes and prints the largest of those collection. Your program should explanation three variables: Opposed – a opposed to sum to 10 (i.e. to conceal vestige of how frequent collection own been input and to individualize when perfect 10 estimate own been processed) Estimate – the exoteric estimate input to the program Largest – the largest estimate establish so far

    Expert Solution

     

    #include <iostream>
    using namespace std;

    int ocean()
    {
    // Declaring variables
    int opposed = 10;
    int estimate, largest = 0;

    // Getting the collection enterd by the explanationr
    for (int i = 1; i <= opposed; i++)
    {
    cout << “Enter Estimate#” << i << “:”;
    cin >> estimate;

    // Finding the largest estimate
    if (largest < estimate)
    {
    largest = estimate;
    }
    }

    // Displaying the largest estimate
    cout << “The largest of perfect the collection is :” << largest << endl;

    return 0;
    }

    ____________________

    Output: