Answer to Question #14348 in C++ for thabo mohlabane

Question #14348
Create an application that contains a method that computes the final price for a sales transaction and returns that value to a calling method. The method requires three arguments: 1 product price, 2 salesperson commision rate, and 3 customer discount rate.
1
Expert's answer
2012-09-07T10:42:03-0400
#include<iostream>
using namespace std;


int main()
{
& float a,b,c,d;
&
& cout <<" 1. Product price: ";
& cin>>a;
cout <<"\n 2. Salesperson commision rate (As a percentage from the& product price): ";
cin>>b;
cout <<"\n 3. Customer discount rate (In percent) : " ;
cin>>c;
d= a+(a/100)*b-(a/100)*c;
cout <<"\n Final price& : "<< d<<"\n\n" ;

system("PAUSE");
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS