Let's do the second task.
Make a program to determine whether you have to pay a tax or not according to your salary.
( in Indonesia, you have to pay salary tax if your minimum salary in a year is Rp 15.600.000,-)
Answer:
#include “iostream.h”
#include “conio.h”
main(){
int salary;
cout<<"Enter your salary per month: Rp."; cin>>salary;
if (salary<=0)
{cout<<"Do you mean that you area jobless?";}
else if ((salary*12)>=15600000)
{cout<<"You have to pay a tax";}
else
{cout<<"You may not pay a tax";}
getch();
}
Look at these picture below:
0 comments:
Post a Comment