Answer:
Array can be used to do this program
Explanation:
#include <iostream>
using namespace std;
int main () {
int x;
int mini;
cout << "How many number i to be normalized";
cin >> x;
int Numlist[x]; // x is an array of the numbers that will be inputted
cout << "Kindly input the numbers to the adjusted";
for ( int i = 0; i < x; i++ ) {
cin>>Numlist[i]; // this will Store all the numbers inputted
}
mini = Numlist[0]; // this is to set the first element as the minimum to compare with others
for(i=0; i<x; i++)
{
if(mini>Numlist[i])
{
mini=Numlist[i];
}
}
//to adjust the numbers now
for(i=0; i<x; i++)
{
Numlist[i]=Numlist[i] - mini;
}
//This is to print the adjusted numbers
for(i=0; i<x; i++)
{
cout<<Numlist[i] <<" ";
}
return 0;
}