i2u2me -2 Newbie Poster

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

sergent commented: . -1
MonsieurPointer commented: We won't do your homework -1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.