Complete TRY THIS Exercise 1, and then modify the IPO chart information and C++ instructions so that the commission rate will always be 10%.
How is commission rate set to 10% always?
<writing instruction>
IPO Chart Inforomation C++ Instructions
Input
sale1 double sale1 = 0.0;
sale2 double sale2 = 0.0;
commission double commission = 0.0;
Processing
total sales double totalSales = 0.0;
Output
commission double commission = 0.0;
Algorithm
1. enter slae1, sale2, and the cout << "First sale? ";
commission rate cin >> sale1;
cout << "Second sale? ";
cin >> sale2;
cout << "Commission rate in decimal
format? ";
cin >> commissionRate;
2. calculate the total sales totalSales = sale1 + sale2
by adding sale1 to sale2
3. calculate the commission commission = totalSales *
by multiplying the total sales commissionRate;
by the commission rate
4. display the commission cout << "Commission: $"
<< commission << endl;
< written instruction>
Thanks