Hi!
Could someone please compile this programm for a win32 system and send
the exe-file to my email adress cr*****@hotmail.com? For the time I
don't have access to a computer wih a compiler and I need this for an
assignment. Please correct if there are any bugs.
thanks!
Cristian
-------------------------------------------
#include<iostream.h>
void main()
{
int i;
int cl;
double money[4]={0,0,0,0};
double amo;
while (cl!=999)
{
****cout<<"Enter the class of the contributor \n";
****cin>>cl;
****cout<<"Enter amount \n";
****cin>>amo;
if (cl==1)
money[0]=amo+money[0];
if (cl==2)
money[1]=amo+money[1];
if (cl==3)
money[2]=amo+money[2];
if (cl==4)
money[3]=amo+money[3];
}
cout<<"The freshmen contributed "<<money[0]<<"$ \n";
cout<<"The sophomores contributed "<<money[1]<<"$ \n";
cout<<"The j contributed "<<money[2]<<"$ \n";
cout<<"The s contributed "<<money[3]<<"$ \n";
int largest=0;
for (i=0; i<4:i++)
if(money[i]>money[largest])
largest=i;
cout<<"The number of the class that contributed the most is"<<i+1;
}