Explore BrainMass

Explore BrainMass

    C++ Program - Min/Max Number

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    I started writing a program and need help. I need to be able to enter up to 15 numbers and output the minimum number, maximum number and the geometric mean. I have a program started, is there a way to shorten it? And I don't understand the geometric mean.

    Thank you for your help.

    © BrainMass Inc. brainmass.com November 24, 2021, 11:26 am ad1c9bdddf
    https://brainmass.com/engineering/electrical-engineering/program-min-max-number-30536

    Solution Preview

    See attached file.

    #include <iostream.h>
    #include <math.h>

    int getMin(int *);
    int getMax(int *);
    float getMean(int *);

    void main()
    {
    int numbers[15];

    for(int i=0; i<15;i++)
    cin>>numbers[i];

    cout<<"Min: ...

    Solution Summary

    The solution is attached.

    $2.49

    ADVERTISEMENT