Answer to Question #264898 in C++ for Rille

Question #264898

12. Make a program that will input Sales, process the Value Added Tax deduction as follows:


Sales VAT


Less than equal =10000.00 10%


Above 10000.00 15 %



Display the taxable amount, Your program will be terminated if you input zero in the sales.



1
Expert's answer
2021-11-15T07:38:42-0500
#include <iostream>
using namespace std;
int main() {
  double sales;
  do {
    cout << "Enter sales:";
    cin >> sales;
    if (sales <= 10000.0)
      cout << "tax:" << 0.10 * sales << endl;
    else
      cout << "tax:" << 0.15 * sales << endl;
  } while (sales)
  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