Zipoids is a level of currency used by obscure gamers. These gamers must pay tax in the following manner 0 - 5,000 zipoids – 0% tax 5001 - 10,000 zipoids – 10% tax 10,001 – 20,000 zipoid – 15% tax Above 20,000 zipoids 20% tax Write a program that will get the amount of Zipoids earned and will compute the tax. Your program should output the tax and the adjusted pay after the tax. You should use a ladder style if /else to compute this. Do not put cin or cout inside the if logic. Only compute the tax.

Respuesta :

Answer:

C++

Explanation:

#include <iostream>

int main() {

   int zipoids, tax = 0;

   cout<<"Enter Zipoids earned: ";

   cin>>zipoids;

   // Compute tax

   if ((zipoids > 5000) && (zipoids <= 10000))

       tax = 10;

   else if ((zipoids > 10000) && (zipoids <= 20000))

       tax = 15;

   else

       tax = 20;

   // Output tax

   cout<<endl;

   cout<<"Tax: "<<tax<<"%";

   return 0;

}

To compute the adjusted pay, you need to have the original pay.

Hope this helps.