3.2k views
0 votes
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.

User Useraged
by
6.8k points

1 Answer

4 votes

Answer:

C++

Step-by-step 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.

User Wcandillon
by
7.2k points