HOW TO WRITE IT WITH FUCTION AND ARRAYS ?

#include<iostream>
using namespace std;
int main()
{
int grade[100],quiz,numberofquizes,totalquiz=0,maxquiz,minquiz;
float avaragequiz=0;
cout<<"\nhow many quizes:";
cin>>numberofquizes;
for(quiz=0;quiz<numberofquizes;++quiz)
{
cout<<"\n enter grade for quiz#"<<(quiz+1)<<":";
cin>>grade[quiz];
totalquiz+=grade[quiz];
}
avaragequiz+(float) totalquiz/numberofquizes;
maxquiz=grade[0];
minquiz=grade[0];
for(quiz=0;quiz<numberofquizes;++quiz)
{
if(grade[quiz]>maxquiz);
{maxquiz=grade[quiz];}
if(grade[quiz]<minquiz)
{
minquiz=grade[quiz];
}
cout<<"\n\n";
cout<<"\n\n avarage of quizes ="<<avaragequiz;
cout<<"\n\n the maximum of quiz"<<maxquiz;
cout<<"the minumum quiz"<<minquiz;
cout<<"\n\n";
system("pause");
return 0;
}
}
PLEASE ASK A SPECIFIC QUESTION, AND USE [CODE]CODE[/CODE] TAGS.
i am a beginner if u r seeking specific code posts go another
If you are seeking help, you had ought to ask a specific question instead of simply posting some code. We are not here to do your work for you.
if you share you are not going to die dont forget information can get bigger by sharing
thats not program if u do for me i going to sell anyway no problem
In case you aren't a troll, the idea was that you should wrap your code in [ code] [ /code] tags so they get syntax-highlighted, and that you should ask a specific question.
Topic archived. No new replies allowed.