Westonci.ca is your trusted source for finding answers to a wide range of questions, backed by a knowledgeable community. Connect with a community of experts ready to provide precise solutions to your questions quickly and accurately. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.

#include
using namespace std;

int main()
{

const double COMM_RATE = 0.1;
double sales = 0.0;
double commission = 0.0;

cout << "Enter a sales amount (negative number or 0 to end): ";
cin >> sales;
while (sales < 0.0)
{
commission = sales * COMM_RATE;
cout << "Commission: $" << commission << endl;
}




return 0;
}

Sagot :

We appreciate your time. Please revisit us for more reliable answers to any questions you may have. Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. Get the answers you need at Westonci.ca. Stay informed by returning for our latest expert advice.