Answer to Question #265620 in C for Sandeep Sharma

Question #265620

Write an algorithm to calculate income tax is annual income is given text as calculate followers





1
Expert's answer
2021-11-13T23:51:20-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