Hello.. can someone teach me how to do this program.
This is the question.
1. An organization has aprox. $1000 available to be allocated in small amount to approved charities. Write a program that will read several amounts and ((report as soon as over $1000 has been allocated. << NOW this is the part that i didn't know how to do!))
2. Display the number of donations required to exceed $1000.
For example in the output ATTACHED this message should be displayed: "4 donations were made" << this also didn't know how to do it.
Please note that i didn't take arrays yet.. so i'm not suppose to use them.. i only took loops, if-else, switch, and functions.
This is what i know.. so far:
# include <iostream>
using namespace std;
int main ()
{
int x,i=0;
do
{
cout<<"Please enter an amount: ";
cin>>x;
i++;
}while(x<=1000);
return 0;
}