#include <iostream>
using namespace std;
main()
{
int child, position;
string name;
long int salary, TotalSalary, support;
cout<<"Enter Your Name = ";
cin>>name;
cout<<"1. Director = Rp. 15.000.000"<<endl;
cout<<"2. Manager = Rp. 10.000.000"<<endl;
cout<<"3. Supervisor = Rp. 7.000.000"<<endl;
cout<<"4. Staff = Rp. 5.000.000"<<endl;
cout<<"Enter Your Position [1/2/3/4] = ";
cin>>position;
switch (position)
{
case 1:
cout<<"----Director----"<<endl;
salary=15000000;
break;
case 2:
cout<<"----Manager----"<<endl;
salary=10000000;
break;
case 3:
cout<<"----Supervisor----"<<endl;
salary=7000000;
break;
case 4:
cout<<"----Staff----"<<endl;
salary=5000000;
break;
default:
cout<<"You're Not An Employee";
}
cout<<"Your child(S) = ";
cin>>child;
if(child>=2)
{
support=1500000;
}
else if (child<2)
{
support=1000000;
}
cout<<"Name = "<<name<<endl;
cout<<"Your Position = "<<position<<endl;
cout<<"Number Of Child(s)"<<child<<endl;
TotalSalary = salary + support;
cout<< "Total Salary = Rp. "<<TotalSalary;
}