PLease can somone check it and give me some feedbacks

include <iostream>
#include<iomanip>
using std::cin;
using namespace std;

 int max=100;

void general_options();
void input(int A[], int maxValue);
void input(int A[], int howMany);
int  count90 (int A[],int howMany);
void add10(int [], int howMany);
void printGrades(int [], int howMany); 




	
	

main()
{
    //variables    
    int scores;
    int howMany=0;
    int option=0;
    int s[100]={0};
    input(s, howMany);
    count90(s, 100);
    add10(s, 10);
    printGrades(s, howMany);
    general_options(); 
	cin>>option;
    
    switch(option){
		case 1: 
			howMany = input(s, 100);
			break;
		case 2: 
			break;
		// ...
		
		default: 
			break;
	}
	

}
  
    
    //options
    cout<<"Enter your choice:\n";
    cin>>option;
    
    
  system("pause");
   return 0;
}

    
    
    
//--------------------------------------------------


void general_options (int A){    
  
    cout<< "1-Enter the scores\n";
    cout<< "2-Print the grades\n";
    cout<< "3-Add 10 points to all the scores\n";
    cout<< "4-Count how many got 90 or above\n";
    cout<< "5-Sort the scores in descending order\n";
    cout<< "6-Exit Program\n";
    
    
}
    
//---------------------------------------------------
int input(int A[], int maxValue){
	int howMany = 0;
	
	cout<<"Enter how many scores: ";
	cin>>howMany; 
	cout<<"Enter the "<< howMany <<" scores" << endl;
	
	for(int i=0; i<howMany; i++){ 
		cin>>A[i];
	}
	
	return howMany;
}


//----------------------------------------------------
int  count90 (int A[],int howMany){

    {
    for( int i=90; i>howMany; i++);
   
         cin>>A[i];
    
    
    cout<<"You have"<<howMany<<"student(s):";
    cin>>howMany;
    }
}
    
    
//------------------------------------------------------
void add10(int [], int howMany){

     {
     
     while(i==90);
     {
     do
     
     if(i>howMany)
     cout<<"The new score is"<<score<<;
     for(i=0; i=howMany; i++)
     }
     {
              cin>>A[i];
     }
     {         
     {
     else
     cout<<"Add ten points to each student:";
     cin>>howMany;
     }
     }
     }
}


//-------------------------------------------------------
void printGrades(int [], int howMany){

{
     for(int i =0; i<howMany; i++)
     
     cout<<A[i]<<"\n";
     
}



//---------------------------------------------------------

I think I paste the wrong one.... sorry

#include <iostream>
#include<iomanip>
using std::cin;
using namespace std;
const int max= 100;
void general_options();
void input(int A[], int howMany);
int  count90 (int A[],int howMany);
void add10(int [], int howMany);
void printGrades(int [], int howMany); 



main()
{
    //variables    
    int scores;
    int howMany=0;
    int option=0;
    int s[100]={0};
    int max;


    count90(s, 100);
    add10(s, 10);
    printGrades(s, howMany);



    switch(option){
  case 1: 
   input(s, howMany);
   break;
  case 2: 

            break;
  // ...

  default: 
   break;
 }



    //options
    general_options(); 

    cout<<"Enter your choice: \n";
    cin>>option;


   system("pause");
   return 0;
}



//----------------------------------------------------
void general_options ()
{    

    cout<< "1-Enter the scores\n";
    cout<< "2-Print the grades\n";
    cout<< "3-Add 10 points to all the scores\n";
    cout<< "4-Count how many got 90 or above\n";
    cout<< "5-Sort the scores in descending order\n";
    cout<< "6-Exit Program\n";


}

//----------------------------------------------------
void input(int A[], int howMany)
{


 cout<<"Enter how many scores: ";
 cin>>howMany; 
 cout<<"Enter the "<< howMany <<" scores" << endl;

 for(int i=0; i<howMany; i++)
 { 
  cin>>A[i];
 }


}
//-----------------------------------------------------
int  count90 (int A[],int howMany)
{
    for( int i=90; i>howMany; i++)
   {
         cin>>A[i];
}

    cout<<"You have"<<howMany<<"student(s):";
    cin>>howMany;
    }

}    

//------------------------------------------------------
void add10(int [], int howMany){
     {

     while(i==90);
     {
     do

     if(i>howMany)
     cout<<"The new score is"<<score<<;
     for(i=0; i=howMany; i++)
     }
     {
              cin>>A[i];
     }
     {         
     {
     else
     cout<<"Add ten points to each student:";
     cin>>howMany;
     }
     }
     }
}
//-------------------------------------------------------
void printGrades(int [], int howMany){
{
     for(int i =0; i<howMany; i++)

     cout<<A[i]<<"\n";

}

//---------------------------------------------------------

Edited 3 Years Ago by mike_2000_17: Fixed formatting

This article has been dead for over six months. Start a new discussion instead.