Discover the best answers at Westonci.ca, where experts share their insights and knowledge with you. Discover precise answers to your questions from a wide range of experts on our user-friendly Q&A platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

#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 :

Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. We appreciate your time. Please come back anytime for the latest information and answers to your questions. Find reliable answers at Westonci.ca. Visit us again for the latest updates and expert advice.