SlideShare a Scribd company logo
1 of 6
#include <conio.h>
#include <iostream>
#include <stdio.h>
# define pajak0.1
intmain(){
usingnamespace std;
intgaji_pokok,tjg_i,ja,kelamin,status,ta,ta1,gaji,gol,jk,st,tjg_s,bo,tp;
double total_gaji;
cout<<" PilihanGolonganAnda"<<endl;
cout<<"[1] Golongan1A = gaji pokok1486500"<<endl;
cout<<"[2] Golongan1B = gaji pokok1623400"<<endl;
cout<<"[3] Golongan1C = gaji pokok1692100"<<endl;
cout<<"[4] Golongan1D = gaji pokok1763600"<<endl;
cout<<"[5] Golongan2A = gaji pokok1926000"<<endl;
cout<<"[6] Golongan2B = gaji pokok2103300"<<endl;
cout<<"[7] Golongan2C = gaji pokok2192300"<<endl;
cout<<"[8] Golongan2D = gaji pokok2285000"<<endl;
cout<<"[9] Golongan3A = gaji pokok2456700"<<endl;
cout<<"[10] Golongan3B = gaji pokok2560600"<<endl;
cout<<"[11] Golongan3C = gaji pokok2668900"<<endl;
cout<<"[12] Golongan3D = gaji pokok2781800"<<endl;
cout<<"[13] Golongan4A = gaji pokok2899500"<<endl;
cout<<"[14] Golongan4B = gaji pokok3022100"<<endl;
cout<<"[15] Golongan4C = gaji pokok3149900"<<endl;
cout<<"[16] Golongan4D = gaji pokok3283200"<<endl;
cout<<"[17] Golongan4E = gaji pokok3422100"<<endl;
cout<<"====================================="<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<"====================================="<<endl;
cout<<" Masukkan pendidikankaryawan:";cin>>gol;
cout<<"====================================="<<endl;
cout<<" "<<endl;
switch(gol){
case 1:
gaji_pokok= 1486500;break;
case 2:
gaji_pokok= 1623400;break;
case 3:
gaji_pokok= 1692100;break;
case 4:
gaji_pokok= 1763600;break;
case 5:
gaji_pokok= 1926000;break;
case 6:
gaji_pokok= 2103300;break;
case 7:
gaji_pokok= 2192300;break;
case 8:
gaji_pokok= 2285000;break;
case 9:
gaji_pokok= 2456700;break;
case 10:
gaji_pokok= 2560600;break;
case 11:
gaji_pokok= 2668900;break;
case 12:
gaji_pokok= 2781800;break;
case 13:
gaji_pokok= 2899500;break;
case 14:
gaji_pokok= 3022100;break;
case 15:
gaji_pokok= 3149900;break;
case 16:
gaji_pokok= 3283200;break;
case 17:
gaji_pokok= 3422100;break;
default:
gaji_pokok= 0;
cout<<" "<<endl;
cout<<"====================================="<<endl;
}
cout<<" Gaji pokokanda : "<<gaji_pokok<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<"====================================="<<endl;
cout<<" Pilihangender"<<endl;
cout<<" [1] laki-laki"<<endl;
cout<<" [2] perempuan"<<endl;
cout<<"====================================="<<endl;
cout<<" PilihanStatus"<<endl;
cout<<" [1] menikah"<<endl;
cout<<" [2] belummenikah"<<endl;
cout<<"====================================="<<endl;
cout<<" Masukkan JenisKelaminkaryawan:";cin>>jk;
cout<<"====================================="<<endl;
cout<<" Masukkan status : ";cin>>st;
cout<<"====================================="<<endl;
switch(jk) {
case 1:
kelamin=1;
break;
case 2:
kelamin=2;
break;
default:
kelamin=3;
}
switch(st) {
case 1:
status = 1;
break;
case 2:
status = 2;
break;
default:
status = 3;
}
if ((kelamin==1) && (status== 1) )
{ cout<<" Masukkan jumlahanak : " ;cin>>ja;
if (ja== 1)
{tjg_i = 500000;
ta1 = 200000; }
else
{ tjg_i = 500000;
ta1 = 400000; }
}
else
{ tjg_i = 0;
ta1 = 0;
}
if ((kelamin==2) && (status== 1) )
{ cout<<" Masukkan jumlahanak : " ;cin>>ja;
if (ja== 1)
{tjg_s = 500000;
ta = 200000; }
else
{ tjg_s = 500000;
ta = 400000; }
}
else
{ tjg_s= 0;
ta = 0;
}
gaji = gaji_pokok+ tjg_i + ta + ta1;
cout<<"================================================"<<endl;
cout<<" Andamendapattunjanganistri sebesar:"<<tjg_i<<endl;
cout<<" AndamendapattunjanganAnak sebesar:"<<ta1<<endl;
cout<<" Andamendapattunjangansuami sebesar:"<<tjg_s<<endl;
cout<<" AndamendapattunjanganAnak sebesar:"<<ta<<endl;
cout<<"================================================"<<endl;
cout<<" Gaji anda : "<< gaji<<endl;
cout<<"================================================"<<endl;
cout<<" Masukkanjumlahkeluarga : ";cin>>bo;
cout<<"================================================"<<endl;
tp = bo* 10;
cout<<" AndamendapattunjanganPangansebesar:"<<tp<<"Kg"<<endl;
cout<<"================================================"<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<"=============================================================="<<endl;
cout<<" Pajak 10% dari tolal gaji"<<endl;
total_gaji = (gaji_pokok+tjg_i + ta + ta1)-((gaji_pokok+tjg_i + ta1)*pajak) ;
cout.precision(3);
cout<<" Maka gaji bersihanda(setelahdipotongpajak) : "<<total_gaji<<'n';
cout<<" DitambahdengantunjanganPanganberupaberassebanyak:"<<tp<<" Kg"<<endl;
cout<<"=============================================================="<<endl;
return0;
getch();}

More Related Content

Viewers also liked

4. L6 Booster Booklet WORD PROBLEMS
4. L6 Booster Booklet WORD PROBLEMS4. L6 Booster Booklet WORD PROBLEMS
4. L6 Booster Booklet WORD PROBLEMSFarhana Imran
 
6. L6 Booster Booklet HANDLING DATA
6. L6 Booster Booklet HANDLING DATA6. L6 Booster Booklet HANDLING DATA
6. L6 Booster Booklet HANDLING DATAFarhana Imran
 
7. L6 Booster Booklet SHAPE
7. L6 Booster Booklet SHAPE7. L6 Booster Booklet SHAPE
7. L6 Booster Booklet SHAPEFarhana Imran
 
PD cell Kaizen event presentation
PD cell Kaizen event presentationPD cell Kaizen event presentation
PD cell Kaizen event presentationGreg Williams
 
Behaviour Tips from NUT
Behaviour Tips from NUTBehaviour Tips from NUT
Behaviour Tips from NUTFarhana Imran
 
1. L6 Booster Booklet WORKING WITH NUMBER
1. L6 Booster Booklet WORKING WITH NUMBER1. L6 Booster Booklet WORKING WITH NUMBER
1. L6 Booster Booklet WORKING WITH NUMBERFarhana Imran
 
3. L6 Booster Booklet CONVERSIONS
3. L6 Booster Booklet CONVERSIONS3. L6 Booster Booklet CONVERSIONS
3. L6 Booster Booklet CONVERSIONSFarhana Imran
 
Schofield English & Maths
Schofield English & MathsSchofield English & Maths
Schofield English & MathsFarhana Imran
 
Basic standard work documentation
Basic standard work documentationBasic standard work documentation
Basic standard work documentationGreg Williams
 
PGM 400 – Module Assessment v2
PGM 400 – Module Assessment v2PGM 400 – Module Assessment v2
PGM 400 – Module Assessment v2Farhana Imran
 
meszaros_istvan_cv_hu
meszaros_istvan_cv_humeszaros_istvan_cv_hu
meszaros_istvan_cv_huIstv1
 
Powerpoint Presentation
Powerpoint PresentationPowerpoint Presentation
Powerpoint PresentationFarhana Imran
 

Viewers also liked (17)

4. L6 Booster Booklet WORD PROBLEMS
4. L6 Booster Booklet WORD PROBLEMS4. L6 Booster Booklet WORD PROBLEMS
4. L6 Booster Booklet WORD PROBLEMS
 
PGM310
PGM310PGM310
PGM310
 
6. L6 Booster Booklet HANDLING DATA
6. L6 Booster Booklet HANDLING DATA6. L6 Booster Booklet HANDLING DATA
6. L6 Booster Booklet HANDLING DATA
 
7. L6 Booster Booklet SHAPE
7. L6 Booster Booklet SHAPE7. L6 Booster Booklet SHAPE
7. L6 Booster Booklet SHAPE
 
PD cell Kaizen event presentation
PD cell Kaizen event presentationPD cell Kaizen event presentation
PD cell Kaizen event presentation
 
Behaviour Tips from NUT
Behaviour Tips from NUTBehaviour Tips from NUT
Behaviour Tips from NUT
 
1. L6 Booster Booklet WORKING WITH NUMBER
1. L6 Booster Booklet WORKING WITH NUMBER1. L6 Booster Booklet WORKING WITH NUMBER
1. L6 Booster Booklet WORKING WITH NUMBER
 
3. L6 Booster Booklet CONVERSIONS
3. L6 Booster Booklet CONVERSIONS3. L6 Booster Booklet CONVERSIONS
3. L6 Booster Booklet CONVERSIONS
 
30-maths-starters
30-maths-starters30-maths-starters
30-maths-starters
 
Schofield English & Maths
Schofield English & MathsSchofield English & Maths
Schofield English & Maths
 
Basic standard work documentation
Basic standard work documentationBasic standard work documentation
Basic standard work documentation
 
PGM 400 – Module Assessment v2
PGM 400 – Module Assessment v2PGM 400 – Module Assessment v2
PGM 400 – Module Assessment v2
 
meszaros_istvan_cv_hu
meszaros_istvan_cv_humeszaros_istvan_cv_hu
meszaros_istvan_cv_hu
 
Spelling List
Spelling ListSpelling List
Spelling List
 
Business Plan
Business PlanBusiness Plan
Business Plan
 
Powerpoint Presentation
Powerpoint PresentationPowerpoint Presentation
Powerpoint Presentation
 
Final Resume
Final ResumeFinal Resume
Final Resume
 

Similar to Coding gaji

This what Im suppose to do and this is what I have so far.In thi.pdf
This what Im suppose to do and this is what I have so far.In thi.pdfThis what Im suppose to do and this is what I have so far.In thi.pdf
This what Im suppose to do and this is what I have so far.In thi.pdfkavithaarp
 
Powerpoint loop examples a
Powerpoint loop examples aPowerpoint loop examples a
Powerpoint loop examples ajaypeebala
 
#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(c#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(cMoseStaton39
 
#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(c#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(cSilvaGraf83
 
#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(c#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(cSilvaGraf83
 
Hey, looking to do the following with this programFill in the multip.pdf
Hey, looking to do the following with this programFill in the multip.pdfHey, looking to do the following with this programFill in the multip.pdf
Hey, looking to do the following with this programFill in the multip.pdfrupeshmehta151
 
Program membalik kata
Program membalik kataProgram membalik kata
Program membalik katahaqiemisme
 
Programa Sumar y Multiplicar
Programa Sumar y MultiplicarPrograma Sumar y Multiplicar
Programa Sumar y MultiplicarAnais Rodriguez
 
Programming assignment 02 (bilal maqbool 10) 2011
Programming assignment 02    (bilal maqbool 10) 2011Programming assignment 02    (bilal maqbool 10) 2011
Programming assignment 02 (bilal maqbool 10) 2011Bilal Maqbool ツ
 
LISTINGS.txt345678 116900 0 80513-2918 Metro Brokers432395.docx
LISTINGS.txt345678 116900 0 80513-2918  Metro Brokers432395.docxLISTINGS.txt345678 116900 0 80513-2918  Metro Brokers432395.docx
LISTINGS.txt345678 116900 0 80513-2918 Metro Brokers432395.docxSHIVA101531
 
Utility bill project.doc
Utility bill project.docUtility bill project.doc
Utility bill project.docJeremy Forczyk
 

Similar to Coding gaji (20)

Algoritma 5 november wiwik p.l
Algoritma 5 november wiwik p.lAlgoritma 5 november wiwik p.l
Algoritma 5 november wiwik p.l
 
Ch4
Ch4Ch4
Ch4
 
This what Im suppose to do and this is what I have so far.In thi.pdf
This what Im suppose to do and this is what I have so far.In thi.pdfThis what Im suppose to do and this is what I have so far.In thi.pdf
This what Im suppose to do and this is what I have so far.In thi.pdf
 
Powerpoint loop examples a
Powerpoint loop examples aPowerpoint loop examples a
Powerpoint loop examples a
 
#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(c#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(c
 
#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(c#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(c
 
#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(c#include Status.hnamespace sdds{StatusStatus(c
#include Status.hnamespace sdds{StatusStatus(c
 
project3
project3project3
project3
 
Hey, looking to do the following with this programFill in the multip.pdf
Hey, looking to do the following with this programFill in the multip.pdfHey, looking to do the following with this programFill in the multip.pdf
Hey, looking to do the following with this programFill in the multip.pdf
 
Hospital management
Hospital managementHospital management
Hospital management
 
Hospital management
Hospital managementHospital management
Hospital management
 
Program membalik kata
Program membalik kataProgram membalik kata
Program membalik kata
 
Programa Sumar y Multiplicar
Programa Sumar y MultiplicarPrograma Sumar y Multiplicar
Programa Sumar y Multiplicar
 
Algo
AlgoAlgo
Algo
 
C++ TUTORIAL 3
C++ TUTORIAL 3C++ TUTORIAL 3
C++ TUTORIAL 3
 
Programming assignment 02 (bilal maqbool 10) 2011
Programming assignment 02    (bilal maqbool 10) 2011Programming assignment 02    (bilal maqbool 10) 2011
Programming assignment 02 (bilal maqbool 10) 2011
 
For while do
For while doFor while do
For while do
 
LISTINGS.txt345678 116900 0 80513-2918 Metro Brokers432395.docx
LISTINGS.txt345678 116900 0 80513-2918  Metro Brokers432395.docxLISTINGS.txt345678 116900 0 80513-2918  Metro Brokers432395.docx
LISTINGS.txt345678 116900 0 80513-2918 Metro Brokers432395.docx
 
Utility bill project.doc
Utility bill project.docUtility bill project.doc
Utility bill project.doc
 
DataTypes.ppt
DataTypes.pptDataTypes.ppt
DataTypes.ppt
 

Recently uploaded

Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 

Recently uploaded (20)

VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 

Coding gaji

  • 1. #include <conio.h> #include <iostream> #include <stdio.h> # define pajak0.1 intmain(){ usingnamespace std; intgaji_pokok,tjg_i,ja,kelamin,status,ta,ta1,gaji,gol,jk,st,tjg_s,bo,tp; double total_gaji; cout<<" PilihanGolonganAnda"<<endl; cout<<"[1] Golongan1A = gaji pokok1486500"<<endl; cout<<"[2] Golongan1B = gaji pokok1623400"<<endl; cout<<"[3] Golongan1C = gaji pokok1692100"<<endl; cout<<"[4] Golongan1D = gaji pokok1763600"<<endl; cout<<"[5] Golongan2A = gaji pokok1926000"<<endl; cout<<"[6] Golongan2B = gaji pokok2103300"<<endl; cout<<"[7] Golongan2C = gaji pokok2192300"<<endl; cout<<"[8] Golongan2D = gaji pokok2285000"<<endl; cout<<"[9] Golongan3A = gaji pokok2456700"<<endl; cout<<"[10] Golongan3B = gaji pokok2560600"<<endl; cout<<"[11] Golongan3C = gaji pokok2668900"<<endl; cout<<"[12] Golongan3D = gaji pokok2781800"<<endl; cout<<"[13] Golongan4A = gaji pokok2899500"<<endl; cout<<"[14] Golongan4B = gaji pokok3022100"<<endl; cout<<"[15] Golongan4C = gaji pokok3149900"<<endl; cout<<"[16] Golongan4D = gaji pokok3283200"<<endl; cout<<"[17] Golongan4E = gaji pokok3422100"<<endl; cout<<"====================================="<<endl;
  • 2. cout<<" "<<endl; cout<<" "<<endl; cout<<"====================================="<<endl; cout<<" Masukkan pendidikankaryawan:";cin>>gol; cout<<"====================================="<<endl; cout<<" "<<endl; switch(gol){ case 1: gaji_pokok= 1486500;break; case 2: gaji_pokok= 1623400;break; case 3: gaji_pokok= 1692100;break; case 4: gaji_pokok= 1763600;break; case 5: gaji_pokok= 1926000;break; case 6: gaji_pokok= 2103300;break; case 7: gaji_pokok= 2192300;break; case 8: gaji_pokok= 2285000;break; case 9: gaji_pokok= 2456700;break; case 10: gaji_pokok= 2560600;break;
  • 3. case 11: gaji_pokok= 2668900;break; case 12: gaji_pokok= 2781800;break; case 13: gaji_pokok= 2899500;break; case 14: gaji_pokok= 3022100;break; case 15: gaji_pokok= 3149900;break; case 16: gaji_pokok= 3283200;break; case 17: gaji_pokok= 3422100;break; default: gaji_pokok= 0; cout<<" "<<endl; cout<<"====================================="<<endl; } cout<<" Gaji pokokanda : "<<gaji_pokok<<endl; cout<<" "<<endl; cout<<" "<<endl; cout<<"====================================="<<endl; cout<<" Pilihangender"<<endl; cout<<" [1] laki-laki"<<endl; cout<<" [2] perempuan"<<endl; cout<<"====================================="<<endl;
  • 4. cout<<" PilihanStatus"<<endl; cout<<" [1] menikah"<<endl; cout<<" [2] belummenikah"<<endl; cout<<"====================================="<<endl; cout<<" Masukkan JenisKelaminkaryawan:";cin>>jk; cout<<"====================================="<<endl; cout<<" Masukkan status : ";cin>>st; cout<<"====================================="<<endl; switch(jk) { case 1: kelamin=1; break; case 2: kelamin=2; break; default: kelamin=3; } switch(st) { case 1: status = 1; break; case 2: status = 2; break; default: status = 3;
  • 5. } if ((kelamin==1) && (status== 1) ) { cout<<" Masukkan jumlahanak : " ;cin>>ja; if (ja== 1) {tjg_i = 500000; ta1 = 200000; } else { tjg_i = 500000; ta1 = 400000; } } else { tjg_i = 0; ta1 = 0; } if ((kelamin==2) && (status== 1) ) { cout<<" Masukkan jumlahanak : " ;cin>>ja; if (ja== 1) {tjg_s = 500000; ta = 200000; } else { tjg_s = 500000; ta = 400000; } } else { tjg_s= 0; ta = 0;
  • 6. } gaji = gaji_pokok+ tjg_i + ta + ta1; cout<<"================================================"<<endl; cout<<" Andamendapattunjanganistri sebesar:"<<tjg_i<<endl; cout<<" AndamendapattunjanganAnak sebesar:"<<ta1<<endl; cout<<" Andamendapattunjangansuami sebesar:"<<tjg_s<<endl; cout<<" AndamendapattunjanganAnak sebesar:"<<ta<<endl; cout<<"================================================"<<endl; cout<<" Gaji anda : "<< gaji<<endl; cout<<"================================================"<<endl; cout<<" Masukkanjumlahkeluarga : ";cin>>bo; cout<<"================================================"<<endl; tp = bo* 10; cout<<" AndamendapattunjanganPangansebesar:"<<tp<<"Kg"<<endl; cout<<"================================================"<<endl; cout<<" "<<endl; cout<<" "<<endl; cout<<"=============================================================="<<endl; cout<<" Pajak 10% dari tolal gaji"<<endl; total_gaji = (gaji_pokok+tjg_i + ta + ta1)-((gaji_pokok+tjg_i + ta1)*pajak) ; cout.precision(3); cout<<" Maka gaji bersihanda(setelahdipotongpajak) : "<<total_gaji<<'n'; cout<<" DitambahdengantunjanganPanganberupaberassebanyak:"<<tp<<" Kg"<<endl; cout<<"=============================================================="<<endl; return0; getch();}