63 132
Assignments Done
99,1%
Successfully Done
In July 2018

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.
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions