Ok....my program fully works. I edited a little, the placement of the semicolons is what the problem was after myy breakthrough. Here is the finished piece:
Code:
#include<iostream>
#include<string>
using namespace std;
int main(){
string name, selection;
double sum,num[10],mean;
do{
int i;
cout<<"Please enter your name: "<<endl;
cin>>name;
cout<<"Your name is "<<name<<endl;
for(i=0;i<10;i++){
cout<<"Please enter a number: ";
cin>>num[i];
}
sum=num[0]+num[1]+num[2]+num[3]+num[4]+num[5]+num[6]+num[7]+num[8]+num[9];
cout<<"The sum of your numbers equals "<<sum<< endl;
mean=sum/10;
cout<<"The average of these numbers is "<<mean<<endl;
cout<<"Would you like to repeat this program? ";
cin>>selection;
}while(selection=="Yes" || selection=="yes");
return(0);
}
Thank you both for the help...very much needed. I hope to be able to help others soon from now.^_^