76 283
Assignments Done
Successfully Done
In May 2019

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
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): ";
cout <<"\n 3. Customer discount rate (In percent) : " ;
d= a+(a/100)*b-(a/100)*c;
cout <<"\n Final price& : "<< d<<"\n\n" ;


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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions