i been asked to create a program in which you enter 2 numbers to four different classes ( car, van, SUV, truck) and the amount (the 2 num)
( X, 20)
and to get out of the loop you have to type EOF.
Please help me!
#include <iostream.h>
int main ()
{
char class;
int amount, count;
for (count=0; count<999; ++count)
cout<<"please enter your class"endl;
cin>>class;
cout<<"please enter the amount"<<endl;
cin>>amount;
now how can i display all of the amounts by each class? and the totals of them?