Answer to Question #98699 in C++ for ed powers

Question #98699
Design and Write a C++ program which accepts an amount on money entered in $, if
the amount is greater or equals to 1000 $, a 5% discount is given to the customer. It should also display the amount the customer has to pay.
1
Expert's answer
2019-11-15T10:44:18-0500

#include <iostream>


using namespace std;


int main()

{

  float sum;

  cout << "\tEnter the sum of money which client must to pay in $!" << endl;

  cin >> sum;

  if(sum >= 1000)

    cout << "Client gets discount 5%! Pay, please : " << sum-(sum*0.05) << " $";

  return 0;

}


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
New on Blog
APPROVED BY CLIENTS