Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C++

C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++csscareer
4 Posts 4 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Naveenkumarreddy Ramireddy
    wrote on last edited by
    #1

    you are a tax calculator in company, and you should calculate the tax based on staff’s salary as follows:
    -the salary is less than 600, the tax is 0.
    -the salary is greater than 600 and less than 800, the tax is 10% of the salary.
    -the salary is greater than 800 and less than 1000, the tax is 13% of the salary.
    -the salary is greater than 1000 and less than 1500, the tax is 18% of the salary.
    -the salary is greater than 1500, tax is 20% of the salary.
    Write a program in C++ to ask the user to enter the salary then calculate the tax using:
    If-Only structure, If-Else structure, Switch-Case structure.

    T V A 3 Replies Last reply
    0
    • N Naveenkumarreddy Ramireddy

      you are a tax calculator in company, and you should calculate the tax based on staff’s salary as follows:
      -the salary is less than 600, the tax is 0.
      -the salary is greater than 600 and less than 800, the tax is 10% of the salary.
      -the salary is greater than 800 and less than 1000, the tax is 13% of the salary.
      -the salary is greater than 1000 and less than 1500, the tax is 18% of the salary.
      -the salary is greater than 1500, tax is 20% of the salary.
      Write a program in C++ to ask the user to enter the salary then calculate the tax using:
      If-Only structure, If-Else structure, Switch-Case structure.

      T Offline
      T Offline
      trønderen
      wrote on last edited by
      #2

      So do it! Write that program! It won't write itself ...

      1 Reply Last reply
      0
      • N Naveenkumarreddy Ramireddy

        you are a tax calculator in company, and you should calculate the tax based on staff’s salary as follows:
        -the salary is less than 600, the tax is 0.
        -the salary is greater than 600 and less than 800, the tax is 10% of the salary.
        -the salary is greater than 800 and less than 1000, the tax is 13% of the salary.
        -the salary is greater than 1000 and less than 1500, the tax is 18% of the salary.
        -the salary is greater than 1500, tax is 20% of the salary.
        Write a program in C++ to ask the user to enter the salary then calculate the tax using:
        If-Only structure, If-Else structure, Switch-Case structure.

        V Offline
        V Offline
        Victor Nijegorodov
        wrote on last edited by
        #3

        It looks like a good start to develop a working program! :thumbsup:

        1 Reply Last reply
        0
        • N Naveenkumarreddy Ramireddy

          you are a tax calculator in company, and you should calculate the tax based on staff’s salary as follows:
          -the salary is less than 600, the tax is 0.
          -the salary is greater than 600 and less than 800, the tax is 10% of the salary.
          -the salary is greater than 800 and less than 1000, the tax is 13% of the salary.
          -the salary is greater than 1000 and less than 1500, the tax is 18% of the salary.
          -the salary is greater than 1500, tax is 20% of the salary.
          Write a program in C++ to ask the user to enter the salary then calculate the tax using:
          If-Only structure, If-Else structure, Switch-Case structure.

          A Offline
          A Offline
          Artem Moroz
          wrote on last edited by
          #4

          Hi there! I have started this Tax software program for you:

          #include

          using namespace std;

          int main()
          {
          cout<< "Tax software developed by https://iq.direct" << endl;
          cout<< "Enter Salary:";

          double s = 0, t = 0;
          cin >> s;
          
          cout<<"you entered: " << s << endl;
          
          if (s < 600)
          {
              t = 0;
          }
          if (s >= 600 && s < 800 )
          {
              t = s \* 0.1;
          }
          if (s >= 800 && s < 1000 )
          {
              t = s \* 0.13;
          }
          
          cout<< "The tax will be :" << t;
          
          
          return 0;
          

          }

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups