Purchase Solution

C++ Program - Min/Max Number

Not what you're looking for?

Ask Custom Question

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.

Purchase this Solution

Solution Summary

The solution is attached.

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: ...

Purchase this Solution


Free BrainMass Quizzes
Architectural History

This quiz is intended to test the basics of History of Architecture- foundation for all architectural courses.