SlideShare a Scribd company logo
//---Program_Menghitung_Penjualan_di_Swalayan_arlicious
#include <iostream.h>
#include <conio.h>
#include <string.h>
#include <windows.h>
void loading()
{
cout<<endl;
cout<<"tttPLEASE WAIT PROGRAM IS RUNNING";
cout<<endl;
cout<<endl;
cout<<endl;
cout<<"ttLoading";
for(int i=0;i<18;i++)
{
cout<<". ";
Sleep(90);
}
cout<<endl;
clrscr();
}
class process
{ public:
char kode_barang[10];
int jumlah_beli;
long kembalian, bayar;
char* nama_barang()
{ char* nama;
if (!strcmp(kode_barang,"D012") || !strcmp(kode_barang,"d012"))
{nama = "Tepung Terigu 1 KG";}
else if (!strcmp(kode_barang,"D013") || !strcmp(kode_barang,"d013"))
{nama = "Margarin 1 KG";}
else if (!strcmp(kode_barang,"D014") || !strcmp(kode_barang,"d014"))
{nama = "Gula 1 KG";}
else if (!strcmp(kode_barang,"D015") || !strcmp(kode_barang,"d015"))
{nama = "Minyak Sayur 1 KG";}
else
{
cout<<endl;
cout<<"Not Found !";
cout<<endl;
}
return nama;
}
long harga_satuan()
{ long harga;
if (!strcmp(kode_barang,"D012") || !strcmp(kode_barang,"d012"))
{harga = 12000;}
else if (!strcmp(kode_barang,"D013") || !strcmp(kode_barang,"d013"))
{harga = 5600;}
else if (!strcmp(kode_barang,"D014") || !strcmp(kode_barang,"d014"))
{harga = 9600;}
else if (!strcmp(kode_barang,"D015") || !strcmp(kode_barang,"d015"))
{harga = 6500;}
else
{
cout<<endl;
cout<<"Not Found !!";
cout<<endl;
}
return harga;
}
float diskon()
{ float diskon;
if (!strcmp(kode_barang,"D012") || !strcmp(kode_barang,"d012"))
{diskon = 0.5;}
else if (!strcmp(kode_barang,"D013") || !strcmp(kode_barang,"d013"))
{diskon = 0;}
else if (!strcmp(kode_barang,"D014") || !strcmp(kode_barang,"d014"))
{diskon = 0.7;}
else if (!strcmp(kode_barang,"D015") || !strcmp(kode_barang,"d015"))
{diskon = 0.25;}
else
{
cout<<endl;
cout<<"Not Found !!!";
cout<<endl;
}
return diskon;
}
void screen()
{
clrscr();
loading();
cout<<"t================================================="<<endl;
Sleep(200);
cout<<"t| tt|"<<endl;
Sleep(200);
cout<<"t|t :: S W A L A Y A N ::
t|t"<<endl;Sleep(200);
cout<<"t| Y***** A*** R****** |"<<endl;
Sleep(200);
cout<<"t| tt|"<<endl; Sleep(200);
cout<<"t================================================="<<endl;
Sleep(200);
cout<<"t ******** PROGRAMMED BY ARLICIOUS ********"<<endl;
Sleep(200);
cout<<endl;
cout<<" Kode Barang : "; cin>>kode_barang;
cout<<" Nama Barang : "<<nama_barang()<<"n";
cout<<" Harga Barang : Rp. "<<harga_satuan()<<",- n";
cout<<" Jumlah Beli : "; cin>>jumlah_beli;
}
long harga_total()
{ long harga_total;
harga_total = harga_satuan() * jumlah_beli;
return harga_total;
}
float discount()
{ float discount;
discount = diskon() * harga_total();
return discount;
}
long sub_total()
{ long sub_total;
sub_total = harga_total() - discount();
return sub_total;
}
float ppn()
{ float ppn;
ppn = sub_total() * 0.1;
return ppn;
}
long grand_total()
{ long grand_total;
grand_total = sub_total() + ppn();
return grand_total;
}
void new_screen()
{
clrscr();
cout<<"t ============================================ n";
cout<<"t :: S W A L A Y A N :: n";
cout<<"t Y***** A*** R****** n";
cout<<"t ------------------------------------------- n";
cout<<"t Kode Barang : "<<kode_barang<<"n";
cout<<"t Nama Barang : "<<nama_barang()<<"n";
cout<<"t Harga Satuan : Rp. "<<harga_satuan()<<",- n";
cout<<"t Jumlah Beli : "<<jumlah_beli<<"n";
cout<<"t ============================================ n";
cout<<"t Harga Total : Rp. "<<harga_total()<<",- n";
cout<<"t Diskon : Rp. "<<discount()<<",- n";
cout<<"t ============================================ n";
cout<<"t Sub Total : Rp. "<<sub_total()<<",- n";
cout<<"t PPN 10% : Rp. "<<ppn()<<"n";
cout<<"t ============================================ n";
cout<<"t Grand Total : Rp. "<<grand_total()<<",- n";
cout<<"t Bayar : Rp. "; cin>>bayar;
kembalian = bayar - grand_total();
cout<<"t Kembalian : Rp. "<<kembalian<<",- nn";
cout<<"t ************************************** n";
cout<<"t TERIMA KASIH n";
cout<<"t ATAS KUNJUNGAN ANDA n";
cout<<"t ************************************** n";
cout<<endl;
}
};
main()
{ process access;
access.screen();
access.new_screen();
getch();
clrscr();
cout<<endl;
cout<<"t******** PROGRAMMED BY ARLICIOUS ********"<<endl;
cout<<endl;
cout<<endl;
cout<<"tEnter to close ";
for (int i=0;i<14;i++){
cout<<". ";
Sleep(100);}
getch();
}

More Related Content

What's hot

C- Programs - Harsh
C- Programs - HarshC- Programs - Harsh
C- Programs - Harsh
Harsh Sharma
 
Chapter21 separate-header-and-implementation-files
Chapter21 separate-header-and-implementation-filesChapter21 separate-header-and-implementation-files
Chapter21 separate-header-and-implementation-filesDeepak Singh
 
MFC Progress
MFC ProgressMFC Progress
MFC Progress
Razvan Raducanu, PhD
 
Oopsprc1e
Oopsprc1eOopsprc1e
Oopsprc1e
Ankit Dubey
 
Solidity
SoliditySolidity
Solidity
gavofyork
 
goto dengan C++
goto dengan C++goto dengan C++
goto dengan C++
Achmad Sidik
 
Snake.c
Snake.cSnake.c
Snake.c
Vijay Singh
 
Oopsprc1c
Oopsprc1cOopsprc1c
Oopsprc1c
Ankit Dubey
 
Game Analytics Cluster Scheduler
Game Analytics Cluster SchedulerGame Analytics Cluster Scheduler
Game Analytics Cluster Scheduler
cmmdevries
 
Modern c++ Memory Management
Modern c++ Memory ManagementModern c++ Memory Management
Modern c++ Memory Management
Alan Uthoff
 
20090622 Vimm4
20090622 Vimm420090622 Vimm4
20090622 Vimm4id774
 
The Ring programming language version 1.5.3 book - Part 8 of 184
The Ring programming language version 1.5.3 book - Part 8 of 184The Ring programming language version 1.5.3 book - Part 8 of 184
The Ring programming language version 1.5.3 book - Part 8 of 184
Mahmoud Samir Fayed
 
3 rd animation
3 rd animation3 rd animation
3 rd animation
divyalakshmi77
 
The Ring programming language version 1.5.4 book - Part 8 of 185
The Ring programming language version 1.5.4 book - Part 8 of 185The Ring programming language version 1.5.4 book - Part 8 of 185
The Ring programming language version 1.5.4 book - Part 8 of 185
Mahmoud Samir Fayed
 
The Ring programming language version 1.5.1 book - Part 7 of 180
The Ring programming language version 1.5.1 book - Part 7 of 180The Ring programming language version 1.5.1 book - Part 7 of 180
The Ring programming language version 1.5.1 book - Part 7 of 180
Mahmoud Samir Fayed
 
Jarmo van de Seijp Shadbox ERC223
Jarmo van de Seijp Shadbox ERC223Jarmo van de Seijp Shadbox ERC223
Jarmo van de Seijp Shadbox ERC223
Jarmo van de Seijp
 
The Ring programming language version 1.5.3 book - Part 75 of 184
The Ring programming language version 1.5.3 book - Part 75 of 184The Ring programming language version 1.5.3 book - Part 75 of 184
The Ring programming language version 1.5.3 book - Part 75 of 184
Mahmoud Samir Fayed
 

What's hot (20)

C- Programs - Harsh
C- Programs - HarshC- Programs - Harsh
C- Programs - Harsh
 
Clojure functions 4
Clojure functions 4Clojure functions 4
Clojure functions 4
 
Chapter21 separate-header-and-implementation-files
Chapter21 separate-header-and-implementation-filesChapter21 separate-header-and-implementation-files
Chapter21 separate-header-and-implementation-files
 
MFC Progress
MFC ProgressMFC Progress
MFC Progress
 
Oopsprc1e
Oopsprc1eOopsprc1e
Oopsprc1e
 
Solidity
SoliditySolidity
Solidity
 
goto dengan C++
goto dengan C++goto dengan C++
goto dengan C++
 
Snake.c
Snake.cSnake.c
Snake.c
 
Oopsprc1c
Oopsprc1cOopsprc1c
Oopsprc1c
 
Include
IncludeInclude
Include
 
Game Analytics Cluster Scheduler
Game Analytics Cluster SchedulerGame Analytics Cluster Scheduler
Game Analytics Cluster Scheduler
 
Modern c++ Memory Management
Modern c++ Memory ManagementModern c++ Memory Management
Modern c++ Memory Management
 
Code
CodeCode
Code
 
20090622 Vimm4
20090622 Vimm420090622 Vimm4
20090622 Vimm4
 
The Ring programming language version 1.5.3 book - Part 8 of 184
The Ring programming language version 1.5.3 book - Part 8 of 184The Ring programming language version 1.5.3 book - Part 8 of 184
The Ring programming language version 1.5.3 book - Part 8 of 184
 
3 rd animation
3 rd animation3 rd animation
3 rd animation
 
The Ring programming language version 1.5.4 book - Part 8 of 185
The Ring programming language version 1.5.4 book - Part 8 of 185The Ring programming language version 1.5.4 book - Part 8 of 185
The Ring programming language version 1.5.4 book - Part 8 of 185
 
The Ring programming language version 1.5.1 book - Part 7 of 180
The Ring programming language version 1.5.1 book - Part 7 of 180The Ring programming language version 1.5.1 book - Part 7 of 180
The Ring programming language version 1.5.1 book - Part 7 of 180
 
Jarmo van de Seijp Shadbox ERC223
Jarmo van de Seijp Shadbox ERC223Jarmo van de Seijp Shadbox ERC223
Jarmo van de Seijp Shadbox ERC223
 
The Ring programming language version 1.5.3 book - Part 75 of 184
The Ring programming language version 1.5.3 book - Part 75 of 184The Ring programming language version 1.5.3 book - Part 75 of 184
The Ring programming language version 1.5.3 book - Part 75 of 184
 

Viewers also liked

Sistem informasi penjualan minimarket berintegrasi barcode reader menggunakan
Sistem informasi penjualan minimarket berintegrasi barcode reader menggunakanSistem informasi penjualan minimarket berintegrasi barcode reader menggunakan
Sistem informasi penjualan minimarket berintegrasi barcode reader menggunakan
Olbers Letfaar
 
Sistem informasi manajemen
Sistem informasi manajemenSistem informasi manajemen
Tugas Analisa Sistem Informasi Manajemen Penjualan Semester 3 BSI
Tugas Analisa Sistem Informasi Manajemen Penjualan Semester 3 BSITugas Analisa Sistem Informasi Manajemen Penjualan Semester 3 BSI
Tugas Analisa Sistem Informasi Manajemen Penjualan Semester 3 BSI
Koermalla Syafei
 
Studi kasus sistem informasi - pt indomarco prismatama
Studi kasus sistem informasi - pt indomarco prismatamaStudi kasus sistem informasi - pt indomarco prismatama
Studi kasus sistem informasi - pt indomarco prismatama
yuniastuti18400700
 
Studi kasus sistem informasi
Studi kasus sistem informasiStudi kasus sistem informasi
Studi kasus sistem informasi
1khw4n
 
Diagram Konteks dan DFD Sistem Informasi Penjualan
Diagram Konteks dan DFD Sistem Informasi PenjualanDiagram Konteks dan DFD Sistem Informasi Penjualan
Diagram Konteks dan DFD Sistem Informasi Penjualan
Ricky Kusriana Subagja
 
Retail Management ( Kasus Indomaret )
Retail Management ( Kasus Indomaret )Retail Management ( Kasus Indomaret )
Retail Management ( Kasus Indomaret )
Tsuchey Oetami
 
SOP TOKO MODERN / MINIMARKET
SOP TOKO MODERN / MINIMARKETSOP TOKO MODERN / MINIMARKET
SOP TOKO MODERN / MINIMARKET
Sadar SOP (Alim Mahdi)
 

Viewers also liked (8)

Sistem informasi penjualan minimarket berintegrasi barcode reader menggunakan
Sistem informasi penjualan minimarket berintegrasi barcode reader menggunakanSistem informasi penjualan minimarket berintegrasi barcode reader menggunakan
Sistem informasi penjualan minimarket berintegrasi barcode reader menggunakan
 
Sistem informasi manajemen
Sistem informasi manajemenSistem informasi manajemen
Sistem informasi manajemen
 
Tugas Analisa Sistem Informasi Manajemen Penjualan Semester 3 BSI
Tugas Analisa Sistem Informasi Manajemen Penjualan Semester 3 BSITugas Analisa Sistem Informasi Manajemen Penjualan Semester 3 BSI
Tugas Analisa Sistem Informasi Manajemen Penjualan Semester 3 BSI
 
Studi kasus sistem informasi - pt indomarco prismatama
Studi kasus sistem informasi - pt indomarco prismatamaStudi kasus sistem informasi - pt indomarco prismatama
Studi kasus sistem informasi - pt indomarco prismatama
 
Studi kasus sistem informasi
Studi kasus sistem informasiStudi kasus sistem informasi
Studi kasus sistem informasi
 
Diagram Konteks dan DFD Sistem Informasi Penjualan
Diagram Konteks dan DFD Sistem Informasi PenjualanDiagram Konteks dan DFD Sistem Informasi Penjualan
Diagram Konteks dan DFD Sistem Informasi Penjualan
 
Retail Management ( Kasus Indomaret )
Retail Management ( Kasus Indomaret )Retail Management ( Kasus Indomaret )
Retail Management ( Kasus Indomaret )
 
SOP TOKO MODERN / MINIMARKET
SOP TOKO MODERN / MINIMARKETSOP TOKO MODERN / MINIMARKET
SOP TOKO MODERN / MINIMARKET
 

Similar to Penjualan swalayan

Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
dezyneecole
 
Please use the code below and make it operate as one program- Notating.pdf
Please use the code below and make it operate as one program- Notating.pdfPlease use the code below and make it operate as one program- Notating.pdf
Please use the code below and make it operate as one program- Notating.pdf
seoagam1
 
Project in programming
Project in programmingProject in programming
Project in programming
sahashi11342091
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Year
dezyneecole
 
FP 201 - Unit 3 Part 2
FP 201 - Unit 3 Part 2FP 201 - Unit 3 Part 2
FP 201 - Unit 3 Part 2rohassanie
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++Dendi Riadi
 
Rajeev oops 2nd march
Rajeev oops 2nd marchRajeev oops 2nd march
Rajeev oops 2nd marchRajeev Sharan
 
ch5_additional.ppt
ch5_additional.pptch5_additional.ppt
ch5_additional.ppt
LokeshK66
 
Programming - Marla Fuentes
Programming - Marla FuentesProgramming - Marla Fuentes
Programming - Marla Fuentesmfuentessss
 
Powerpoint loop examples a
Powerpoint loop examples aPowerpoint loop examples a
Powerpoint loop examples ajaypeebala
 
bank management system
bank management systembank management system
bank management system
Aisha Aisha
 
#include customer.h#include heap.h#include iostream.docx
#include customer.h#include heap.h#include iostream.docx#include customer.h#include heap.h#include iostream.docx
#include customer.h#include heap.h#include iostream.docx
AASTHA76
 
c++ project on restaurant billing
c++ project on restaurant billing c++ project on restaurant billing
c++ project on restaurant billing
Swakriti Rathore
 
Dpsm simu.cpp
Dpsm simu.cppDpsm simu.cpp
Dpsm simu.cpp
Vorname Nachname
 
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
SHIVA101531
 
Chainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみたChainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみた
Akira Maruoka
 
54602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee0108310154602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee01083101
premrings
 

Similar to Penjualan swalayan (20)

Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
 
Please use the code below and make it operate as one program- Notating.pdf
Please use the code below and make it operate as one program- Notating.pdfPlease use the code below and make it operate as one program- Notating.pdf
Please use the code below and make it operate as one program- Notating.pdf
 
Project in programming
Project in programmingProject in programming
Project in programming
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Year
 
FP 201 - Unit 3 Part 2
FP 201 - Unit 3 Part 2FP 201 - Unit 3 Part 2
FP 201 - Unit 3 Part 2
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++
 
Rajeev oops 2nd march
Rajeev oops 2nd marchRajeev oops 2nd march
Rajeev oops 2nd march
 
ch5_additional.ppt
ch5_additional.pptch5_additional.ppt
ch5_additional.ppt
 
Programming - Marla Fuentes
Programming - Marla FuentesProgramming - Marla Fuentes
Programming - Marla Fuentes
 
Powerpoint loop examples a
Powerpoint loop examples aPowerpoint loop examples a
Powerpoint loop examples a
 
Oop lab report
Oop lab reportOop lab report
Oop lab report
 
bank management system
bank management systembank management system
bank management system
 
#include customer.h#include heap.h#include iostream.docx
#include customer.h#include heap.h#include iostream.docx#include customer.h#include heap.h#include iostream.docx
#include customer.h#include heap.h#include iostream.docx
 
c++ project on restaurant billing
c++ project on restaurant billing c++ project on restaurant billing
c++ project on restaurant billing
 
project3
project3project3
project3
 
project
projectproject
project
 
Dpsm simu.cpp
Dpsm simu.cppDpsm simu.cpp
Dpsm simu.cpp
 
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
 
Chainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみたChainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみた
 
54602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee0108310154602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee01083101
 

Recently uploaded

OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
kalichargn70th171
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
varshanayak241
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
ayushiqss
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Anthony Dahanne
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
Globus
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
Peter Caitens
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
XfilesPro
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 

Recently uploaded (20)

OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 

Penjualan swalayan

  • 1. //---Program_Menghitung_Penjualan_di_Swalayan_arlicious #include <iostream.h> #include <conio.h> #include <string.h> #include <windows.h> void loading() { cout<<endl; cout<<"tttPLEASE WAIT PROGRAM IS RUNNING"; cout<<endl; cout<<endl; cout<<endl; cout<<"ttLoading"; for(int i=0;i<18;i++) { cout<<". "; Sleep(90); } cout<<endl; clrscr(); } class process { public: char kode_barang[10]; int jumlah_beli; long kembalian, bayar; char* nama_barang() { char* nama; if (!strcmp(kode_barang,"D012") || !strcmp(kode_barang,"d012")) {nama = "Tepung Terigu 1 KG";} else if (!strcmp(kode_barang,"D013") || !strcmp(kode_barang,"d013")) {nama = "Margarin 1 KG";} else if (!strcmp(kode_barang,"D014") || !strcmp(kode_barang,"d014")) {nama = "Gula 1 KG";} else if (!strcmp(kode_barang,"D015") || !strcmp(kode_barang,"d015")) {nama = "Minyak Sayur 1 KG";} else { cout<<endl; cout<<"Not Found !"; cout<<endl; } return nama; } long harga_satuan() { long harga; if (!strcmp(kode_barang,"D012") || !strcmp(kode_barang,"d012")) {harga = 12000;} else if (!strcmp(kode_barang,"D013") || !strcmp(kode_barang,"d013")) {harga = 5600;} else if (!strcmp(kode_barang,"D014") || !strcmp(kode_barang,"d014")) {harga = 9600;} else if (!strcmp(kode_barang,"D015") || !strcmp(kode_barang,"d015")) {harga = 6500;} else { cout<<endl; cout<<"Not Found !!";
  • 2. cout<<endl; } return harga; } float diskon() { float diskon; if (!strcmp(kode_barang,"D012") || !strcmp(kode_barang,"d012")) {diskon = 0.5;} else if (!strcmp(kode_barang,"D013") || !strcmp(kode_barang,"d013")) {diskon = 0;} else if (!strcmp(kode_barang,"D014") || !strcmp(kode_barang,"d014")) {diskon = 0.7;} else if (!strcmp(kode_barang,"D015") || !strcmp(kode_barang,"d015")) {diskon = 0.25;} else { cout<<endl; cout<<"Not Found !!!"; cout<<endl; } return diskon; } void screen() { clrscr(); loading(); cout<<"t================================================="<<endl; Sleep(200); cout<<"t| tt|"<<endl; Sleep(200); cout<<"t|t :: S W A L A Y A N :: t|t"<<endl;Sleep(200); cout<<"t| Y***** A*** R****** |"<<endl; Sleep(200); cout<<"t| tt|"<<endl; Sleep(200); cout<<"t================================================="<<endl; Sleep(200); cout<<"t ******** PROGRAMMED BY ARLICIOUS ********"<<endl; Sleep(200); cout<<endl; cout<<" Kode Barang : "; cin>>kode_barang; cout<<" Nama Barang : "<<nama_barang()<<"n"; cout<<" Harga Barang : Rp. "<<harga_satuan()<<",- n"; cout<<" Jumlah Beli : "; cin>>jumlah_beli; } long harga_total() { long harga_total; harga_total = harga_satuan() * jumlah_beli; return harga_total; } float discount() { float discount; discount = diskon() * harga_total(); return discount; } long sub_total() { long sub_total; sub_total = harga_total() - discount(); return sub_total;
  • 3. } float ppn() { float ppn; ppn = sub_total() * 0.1; return ppn; } long grand_total() { long grand_total; grand_total = sub_total() + ppn(); return grand_total; } void new_screen() { clrscr(); cout<<"t ============================================ n"; cout<<"t :: S W A L A Y A N :: n"; cout<<"t Y***** A*** R****** n"; cout<<"t ------------------------------------------- n"; cout<<"t Kode Barang : "<<kode_barang<<"n"; cout<<"t Nama Barang : "<<nama_barang()<<"n"; cout<<"t Harga Satuan : Rp. "<<harga_satuan()<<",- n"; cout<<"t Jumlah Beli : "<<jumlah_beli<<"n"; cout<<"t ============================================ n"; cout<<"t Harga Total : Rp. "<<harga_total()<<",- n"; cout<<"t Diskon : Rp. "<<discount()<<",- n"; cout<<"t ============================================ n"; cout<<"t Sub Total : Rp. "<<sub_total()<<",- n"; cout<<"t PPN 10% : Rp. "<<ppn()<<"n"; cout<<"t ============================================ n"; cout<<"t Grand Total : Rp. "<<grand_total()<<",- n"; cout<<"t Bayar : Rp. "; cin>>bayar; kembalian = bayar - grand_total(); cout<<"t Kembalian : Rp. "<<kembalian<<",- nn"; cout<<"t ************************************** n"; cout<<"t TERIMA KASIH n"; cout<<"t ATAS KUNJUNGAN ANDA n"; cout<<"t ************************************** n"; cout<<endl; } }; main() { process access; access.screen(); access.new_screen(); getch(); clrscr(); cout<<endl; cout<<"t******** PROGRAMMED BY ARLICIOUS ********"<<endl; cout<<endl; cout<<endl; cout<<"tEnter to close "; for (int i=0;i<14;i++){ cout<<". "; Sleep(100);}