Mar 20, 2011 at 9:30pm UTC
#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;
}
}
Mar 20, 2011 at 10:00pm UTC
PLEASE ASK A SPECIFIC QUESTION, AND USE [CO DE]CODE
[/CODE] TAGS.
Mar 20, 2011 at 10:52pm UTC
i am a beginner if u r seeking specific code posts go another
Mar 20, 2011 at 11:31pm UTC
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.
Mar 21, 2011 at 8:50am UTC
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
Mar 21, 2011 at 4:13pm UTC
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.