SlideShare a Scribd company logo
1 of 4
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
main()
{
char kode[10][2],*aksi[10],pngj[5],lagi;
int x,y;
long harga[10],jml[10];
awal:
cout<<"Masukan Jumlah data=";cin>>x;
cout<<"Masukan Pengunjung=";cin>>pngj;
for(y=1;y<=x;y++)
{
cout<<"Masukan Paket WISATA[AA/BB/CC]=";cin>>kode[y];
cout<<"Masukan Jumlah Peserta /orang=";cin>>jml[y];
if (strcmp(kode[y],"AA")==0||strcmp(kode[y],"aa")==0)
{
harga[y]=90000;
aksi[y]="Buah Mangga";
}
else
if (strcmp(kode[y],"BB")==0||strcmp(kode[y],"bb")==0)
{ harga[y]=80000;
aksi[y]="Buah Apel"; }
else
if (strcmp(kode[y],"CC")==0||strcmp(kode[y],"cc")==0)
{ harga[y]=70000;
aksi[y]="Buah Jeruk"; }
else
{ cout<<"Salah Input";
goto awal; }
}
clrscr();
gotoxy(1,1);
cout<<"******************************************"<<endl;
gotoxy(8,2);
cout<<"WISATA TAMAN BUAH"<<endl;
gotoxy(1,3);
cout<<"******************************************"<<endl;
gotoxy(4,4);
cout<<"PENGUNJUNG = "<<pngj<<endl;
gotoxy(2,6);
cout<<"NO AKSI JML HARGA"<<endl;
gotoxy(1,7);
cout<<"******************************************"<<endl;
//1234567890123456789012345678901234
for(y=1;y<=x;y++)
{
gotoxy(2,y+9);cout<<y;
gotoxy(6,y+9);cout<<aksi[y];
gotoxy(18,y+9);cout<<jml[y];
gotoxy(25,y+9);cout<<harga[y];
}
gotoxy(1,15);
cout<<"******************************************"<<endl;
gotoxy(7,16);
cout<<"Input Data Lagi=";cin>>lagi;
if (lagi=='Y'||lagi=='y')
{clrscr();
goto awal;}
else
cout<<"thanks"<<endl;
getch();
}
Penggunaan Array pada Studi Kasus Pemograman C==

More Related Content

What's hot

OOP 2012 - Hint: Dynamic allocation in c++
OOP 2012 - Hint: Dynamic allocation in c++OOP 2012 - Hint: Dynamic allocation in c++
OOP 2012 - Hint: Dynamic allocation in c++Allan Sun
 
The Ring programming language version 1.9 book - Part 50 of 210
The Ring programming language version 1.9 book - Part 50 of 210The Ring programming language version 1.9 book - Part 50 of 210
The Ring programming language version 1.9 book - Part 50 of 210Mahmoud Samir Fayed
 
Super Advanced Python –act1
Super Advanced Python –act1Super Advanced Python –act1
Super Advanced Python –act1Ke Wei Louis
 
The MongoDB Driver for F#
The MongoDB Driver for F#The MongoDB Driver for F#
The MongoDB Driver for F#MongoDB
 
The Ring programming language version 1.5.4 book - Part 41 of 185
The Ring programming language version 1.5.4 book - Part 41 of 185The Ring programming language version 1.5.4 book - Part 41 of 185
The Ring programming language version 1.5.4 book - Part 41 of 185Mahmoud Samir Fayed
 
cocos2d 事例編 HungryMasterの実装から
cocos2d 事例編 HungryMasterの実装からcocos2d 事例編 HungryMasterの実装から
cocos2d 事例編 HungryMasterの実装からYuichi Higuchi
 
Program Kasir c++(case ROti88)
Program Kasir c++(case ROti88)Program Kasir c++(case ROti88)
Program Kasir c++(case ROti88)Achmad Sidik
 
Functional JS for everyone - 4Developers
Functional JS for everyone - 4DevelopersFunctional JS for everyone - 4Developers
Functional JS for everyone - 4DevelopersBartek Witczak
 
JavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovyJavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovyYasuharu Nakano
 
The Ring programming language version 1.8 book - Part 47 of 202
The Ring programming language version 1.8 book - Part 47 of 202The Ring programming language version 1.8 book - Part 47 of 202
The Ring programming language version 1.8 book - Part 47 of 202Mahmoud Samir Fayed
 
Atm machine using c++
Atm machine using c++Atm machine using c++
Atm machine using c++Aqib Memon
 
2016 gunma.web games-and-asm.js
2016 gunma.web games-and-asm.js2016 gunma.web games-and-asm.js
2016 gunma.web games-and-asm.jsNoritada Shimizu
 
Atm machine using c++
Atm machine using c++Atm machine using c++
Atm machine using c++Aqib Memon
 
How to Build an HTML5 Game in Half a day
How to Build an HTML5 Game in Half a dayHow to Build an HTML5 Game in Half a day
How to Build an HTML5 Game in Half a dayHong Jiang
 
Atm machine using c++
Atm machine using c++Atm machine using c++
Atm machine using c++Aqib Memon
 
Atm machine using c++
Atm machine using c++Atm machine using c++
Atm machine using c++Aqib Memon
 
Fun with D3.js: Data Visualization Eye Candy with Streaming JSON
Fun with D3.js: Data Visualization Eye Candy with Streaming JSONFun with D3.js: Data Visualization Eye Candy with Streaming JSON
Fun with D3.js: Data Visualization Eye Candy with Streaming JSONTomomi Imura
 

What's hot (20)

OOP 2012 - Hint: Dynamic allocation in c++
OOP 2012 - Hint: Dynamic allocation in c++OOP 2012 - Hint: Dynamic allocation in c++
OOP 2012 - Hint: Dynamic allocation in c++
 
The Ring programming language version 1.9 book - Part 50 of 210
The Ring programming language version 1.9 book - Part 50 of 210The Ring programming language version 1.9 book - Part 50 of 210
The Ring programming language version 1.9 book - Part 50 of 210
 
Super Advanced Python –act1
Super Advanced Python –act1Super Advanced Python –act1
Super Advanced Python –act1
 
Snow
SnowSnow
Snow
 
The MongoDB Driver for F#
The MongoDB Driver for F#The MongoDB Driver for F#
The MongoDB Driver for F#
 
The Ring programming language version 1.5.4 book - Part 41 of 185
The Ring programming language version 1.5.4 book - Part 41 of 185The Ring programming language version 1.5.4 book - Part 41 of 185
The Ring programming language version 1.5.4 book - Part 41 of 185
 
cocos2d 事例編 HungryMasterの実装から
cocos2d 事例編 HungryMasterの実装からcocos2d 事例編 HungryMasterの実装から
cocos2d 事例編 HungryMasterの実装から
 
Program Kasir c++(case ROti88)
Program Kasir c++(case ROti88)Program Kasir c++(case ROti88)
Program Kasir c++(case ROti88)
 
Functional JS for everyone - 4Developers
Functional JS for everyone - 4DevelopersFunctional JS for everyone - 4Developers
Functional JS for everyone - 4Developers
 
JavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovyJavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovy
 
No3
No3No3
No3
 
20151224-games
20151224-games20151224-games
20151224-games
 
The Ring programming language version 1.8 book - Part 47 of 202
The Ring programming language version 1.8 book - Part 47 of 202The Ring programming language version 1.8 book - Part 47 of 202
The Ring programming language version 1.8 book - Part 47 of 202
 
Atm machine using c++
Atm machine using c++Atm machine using c++
Atm machine using c++
 
2016 gunma.web games-and-asm.js
2016 gunma.web games-and-asm.js2016 gunma.web games-and-asm.js
2016 gunma.web games-and-asm.js
 
Atm machine using c++
Atm machine using c++Atm machine using c++
Atm machine using c++
 
How to Build an HTML5 Game in Half a day
How to Build an HTML5 Game in Half a dayHow to Build an HTML5 Game in Half a day
How to Build an HTML5 Game in Half a day
 
Atm machine using c++
Atm machine using c++Atm machine using c++
Atm machine using c++
 
Atm machine using c++
Atm machine using c++Atm machine using c++
Atm machine using c++
 
Fun with D3.js: Data Visualization Eye Candy with Streaming JSON
Fun with D3.js: Data Visualization Eye Candy with Streaming JSONFun with D3.js: Data Visualization Eye Candy with Streaming JSON
Fun with D3.js: Data Visualization Eye Candy with Streaming JSON
 

Similar to Penggunaan Array pada Studi Kasus Pemograman C==

Programa.eje
Programa.ejePrograma.eje
Programa.ejeguapi387
 
Cs pritical file
Cs pritical fileCs pritical file
Cs pritical fileMitul Patel
 
Hybrid Inheritance in C++
Hybrid Inheritance in C++Hybrid Inheritance in C++
Hybrid Inheritance in C++Abhishek Pratap
 
Ejercicios de programacion
Ejercicios de programacionEjercicios de programacion
Ejercicios de programacionJeff Tu Pechito
 
RAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAMRAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAMKrishna Raj
 
C++ Programming - 1st Study
C++ Programming - 1st StudyC++ Programming - 1st Study
C++ Programming - 1st StudyChris Ohk
 
c++ program for Railway reservation
c++ program for Railway reservationc++ program for Railway reservation
c++ program for Railway reservationSwarup Kumar Boro
 
Railway reservation
Railway reservationRailway reservation
Railway reservationSwarup Boro
 
i need to write a return type function that takes information about th.docx
i need to write a return type function that takes information about th.docxi need to write a return type function that takes information about th.docx
i need to write a return type function that takes information about th.docxhendriciraida
 
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.pdfseoagam1
 
Making Games in JavaScript
Making Games in JavaScriptMaking Games in JavaScript
Making Games in JavaScriptSam Cartwright
 

Similar to Penggunaan Array pada Studi Kasus Pemograman C== (20)

project3
project3project3
project3
 
Ayam potong
Ayam potongAyam potong
Ayam potong
 
Asssignment2
Asssignment2 Asssignment2
Asssignment2
 
Programa.eje
Programa.ejePrograma.eje
Programa.eje
 
Railwaynew
RailwaynewRailwaynew
Railwaynew
 
Cs pritical file
Cs pritical fileCs pritical file
Cs pritical file
 
Penjualan swalayan
Penjualan swalayanPenjualan swalayan
Penjualan swalayan
 
Hybrid Inheritance in C++
Hybrid Inheritance in C++Hybrid Inheritance in C++
Hybrid Inheritance in C++
 
oodp elab.pdf
oodp elab.pdfoodp elab.pdf
oodp elab.pdf
 
Ejercicios de programacion
Ejercicios de programacionEjercicios de programacion
Ejercicios de programacion
 
RAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAMRAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAM
 
C++ Programming - 1st Study
C++ Programming - 1st StudyC++ Programming - 1st Study
C++ Programming - 1st Study
 
c++ program for Railway reservation
c++ program for Railway reservationc++ program for Railway reservation
c++ program for Railway reservation
 
Railway reservation
Railway reservationRailway reservation
Railway reservation
 
Cpp c++ 2
Cpp c++ 2Cpp c++ 2
Cpp c++ 2
 
crc.pdf
crc.pdfcrc.pdf
crc.pdf
 
i need to write a return type function that takes information about th.docx
i need to write a return type function that takes information about th.docxi need to write a return type function that takes information about th.docx
i need to write a return type function that takes information about th.docx
 
project
projectproject
project
 
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
 
Making Games in JavaScript
Making Games in JavaScriptMaking Games in JavaScript
Making Games in JavaScript
 

More from Sita Anggraeni

SURAT TUGAS PM NOVEMBER 2018
SURAT TUGAS PM NOVEMBER 2018SURAT TUGAS PM NOVEMBER 2018
SURAT TUGAS PM NOVEMBER 2018Sita Anggraeni
 
BUKTI SURAT KETERANGAN NOVEMBER 2018
BUKTI SURAT KETERANGAN  NOVEMBER 2018BUKTI SURAT KETERANGAN  NOVEMBER 2018
BUKTI SURAT KETERANGAN NOVEMBER 2018Sita Anggraeni
 
BUKTI SURAT KETERANGAN DAN ST JUNI 2018
BUKTI SURAT KETERANGAN  DAN ST JUNI 2018BUKTI SURAT KETERANGAN  DAN ST JUNI 2018
BUKTI SURAT KETERANGAN DAN ST JUNI 2018Sita Anggraeni
 
BUKTI SURAT KETERANGAN JANUARI 2018
BUKTI SURAT KETERANGAN  JANUARI 2018BUKTI SURAT KETERANGAN  JANUARI 2018
BUKTI SURAT KETERANGAN JANUARI 2018Sita Anggraeni
 
BUKTI SURAT KETERANGAN JULY 2017
BUKTI SURAT KETERANGAN JULY 2017BUKTI SURAT KETERANGAN JULY 2017
BUKTI SURAT KETERANGAN JULY 2017Sita Anggraeni
 
BUKTI SURAT KETERANGAN JANUARI 2017
BUKTI SURAT KETERANGAN  JANUARI 2017BUKTI SURAT KETERANGAN  JANUARI 2017
BUKTI SURAT KETERANGAN JANUARI 2017Sita Anggraeni
 
BUKTI SURAT KETERANGAN JULI 2016
BUKTI SURAT KETERANGAN  JULI 2016BUKTI SURAT KETERANGAN  JULI 2016
BUKTI SURAT KETERANGAN JULI 2016Sita Anggraeni
 
BUKTI SURAT KETERANGAN JANUARI 2016
BUKTI SURAT KETERANGAN  JANUARI 2016BUKTI SURAT KETERANGAN  JANUARI 2016
BUKTI SURAT KETERANGAN JANUARI 2016Sita Anggraeni
 
BUKTI SURAT KETERANGAN DAN ST JULI 2015
BUKTI SURAT KETERANGAN DAN ST JULI 2015BUKTI SURAT KETERANGAN DAN ST JULI 2015
BUKTI SURAT KETERANGAN DAN ST JULI 2015Sita Anggraeni
 
BUKTI SURAT KETERANGAN DAN ST JANUARI 2015
BUKTI SURAT KETERANGAN DAN ST JANUARI 2015BUKTI SURAT KETERANGAN DAN ST JANUARI 2015
BUKTI SURAT KETERANGAN DAN ST JANUARI 2015Sita Anggraeni
 
BUKTI SURAT KETERANGAN DAN ST JULI 2014
BUKTI SURAT KETERANGAN DAN ST JULI 2014BUKTI SURAT KETERANGAN DAN ST JULI 2014
BUKTI SURAT KETERANGAN DAN ST JULI 2014Sita Anggraeni
 
BUKTI SURAT KETERANGAN DAN ST JANUARI 2014
BUKTI SURAT KETERANGAN DAN ST JANUARI 2014BUKTI SURAT KETERANGAN DAN ST JANUARI 2014
BUKTI SURAT KETERANGAN DAN ST JANUARI 2014Sita Anggraeni
 
BUKTI SURAT KETERANGAN DAN ST JULI 2013
BUKTI SURAT KETERANGAN DAN ST JULI 2013BUKTI SURAT KETERANGAN DAN ST JULI 2013
BUKTI SURAT KETERANGAN DAN ST JULI 2013Sita Anggraeni
 
BUKTI SURAT KETERANGAN DAN ST FEBRUARI 2013
BUKTI SURAT KETERANGAN DAN ST FEBRUARI 2013BUKTI SURAT KETERANGAN DAN ST FEBRUARI 2013
BUKTI SURAT KETERANGAN DAN ST FEBRUARI 2013Sita Anggraeni
 
BUKTI SURAT KETERANGAN 2012
BUKTI SURAT KETERANGAN 2012BUKTI SURAT KETERANGAN 2012
BUKTI SURAT KETERANGAN 2012Sita Anggraeni
 
BUKTI SURAT KETERANGAN 2011
BUKTI SURAT KETERANGAN 2011BUKTI SURAT KETERANGAN 2011
BUKTI SURAT KETERANGAN 2011Sita Anggraeni
 

More from Sita Anggraeni (20)

SURAT TUGAS PM NOVEMBER 2018
SURAT TUGAS PM NOVEMBER 2018SURAT TUGAS PM NOVEMBER 2018
SURAT TUGAS PM NOVEMBER 2018
 
BUKTI SURAT KETERANGAN NOVEMBER 2018
BUKTI SURAT KETERANGAN  NOVEMBER 2018BUKTI SURAT KETERANGAN  NOVEMBER 2018
BUKTI SURAT KETERANGAN NOVEMBER 2018
 
BUKTI SURAT KETERANGAN DAN ST JUNI 2018
BUKTI SURAT KETERANGAN  DAN ST JUNI 2018BUKTI SURAT KETERANGAN  DAN ST JUNI 2018
BUKTI SURAT KETERANGAN DAN ST JUNI 2018
 
BUKTI SURAT KETERANGAN JANUARI 2018
BUKTI SURAT KETERANGAN  JANUARI 2018BUKTI SURAT KETERANGAN  JANUARI 2018
BUKTI SURAT KETERANGAN JANUARI 2018
 
BUKTI SURAT KETERANGAN JULY 2017
BUKTI SURAT KETERANGAN JULY 2017BUKTI SURAT KETERANGAN JULY 2017
BUKTI SURAT KETERANGAN JULY 2017
 
BUKTI SURAT KETERANGAN JANUARI 2017
BUKTI SURAT KETERANGAN  JANUARI 2017BUKTI SURAT KETERANGAN  JANUARI 2017
BUKTI SURAT KETERANGAN JANUARI 2017
 
BUKTI SURAT KETERANGAN JULI 2016
BUKTI SURAT KETERANGAN  JULI 2016BUKTI SURAT KETERANGAN  JULI 2016
BUKTI SURAT KETERANGAN JULI 2016
 
BUKTI SURAT KETERANGAN JANUARI 2016
BUKTI SURAT KETERANGAN  JANUARI 2016BUKTI SURAT KETERANGAN  JANUARI 2016
BUKTI SURAT KETERANGAN JANUARI 2016
 
BUKTI SURAT KETERANGAN DAN ST JULI 2015
BUKTI SURAT KETERANGAN DAN ST JULI 2015BUKTI SURAT KETERANGAN DAN ST JULI 2015
BUKTI SURAT KETERANGAN DAN ST JULI 2015
 
BUKTI SURAT KETERANGAN DAN ST JANUARI 2015
BUKTI SURAT KETERANGAN DAN ST JANUARI 2015BUKTI SURAT KETERANGAN DAN ST JANUARI 2015
BUKTI SURAT KETERANGAN DAN ST JANUARI 2015
 
BUKTI SURAT KETERANGAN DAN ST JULI 2014
BUKTI SURAT KETERANGAN DAN ST JULI 2014BUKTI SURAT KETERANGAN DAN ST JULI 2014
BUKTI SURAT KETERANGAN DAN ST JULI 2014
 
BUKTI SURAT KETERANGAN DAN ST JANUARI 2014
BUKTI SURAT KETERANGAN DAN ST JANUARI 2014BUKTI SURAT KETERANGAN DAN ST JANUARI 2014
BUKTI SURAT KETERANGAN DAN ST JANUARI 2014
 
BUKTI SURAT KETERANGAN DAN ST JULI 2013
BUKTI SURAT KETERANGAN DAN ST JULI 2013BUKTI SURAT KETERANGAN DAN ST JULI 2013
BUKTI SURAT KETERANGAN DAN ST JULI 2013
 
BUKTI SURAT KETERANGAN DAN ST FEBRUARI 2013
BUKTI SURAT KETERANGAN DAN ST FEBRUARI 2013BUKTI SURAT KETERANGAN DAN ST FEBRUARI 2013
BUKTI SURAT KETERANGAN DAN ST FEBRUARI 2013
 
BUKTI SURAT KETERANGAN 2012
BUKTI SURAT KETERANGAN 2012BUKTI SURAT KETERANGAN 2012
BUKTI SURAT KETERANGAN 2012
 
BUKTI SURAT KETERANGAN 2011
BUKTI SURAT KETERANGAN 2011BUKTI SURAT KETERANGAN 2011
BUKTI SURAT KETERANGAN 2011
 
Sertifikasi Komputer
Sertifikasi KomputerSertifikasi Komputer
Sertifikasi Komputer
 
Profile Simlibtabnas
Profile SimlibtabnasProfile Simlibtabnas
Profile Simlibtabnas
 
Jurnal REMIK 2019
Jurnal REMIK 2019Jurnal REMIK 2019
Jurnal REMIK 2019
 
Prosiding ICIC 2018
Prosiding ICIC 2018Prosiding ICIC 2018
Prosiding ICIC 2018
 

Recently uploaded

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 

Recently uploaded (20)

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 

Penggunaan Array pada Studi Kasus Pemograman C==

  • 1. #include <stdio.h> #include <conio.h> #include <iostream.h> main() { char kode[10][2],*aksi[10],pngj[5],lagi; int x,y; long harga[10],jml[10]; awal: cout<<"Masukan Jumlah data=";cin>>x; cout<<"Masukan Pengunjung=";cin>>pngj; for(y=1;y<=x;y++) { cout<<"Masukan Paket WISATA[AA/BB/CC]=";cin>>kode[y]; cout<<"Masukan Jumlah Peserta /orang=";cin>>jml[y]; if (strcmp(kode[y],"AA")==0||strcmp(kode[y],"aa")==0) { harga[y]=90000; aksi[y]="Buah Mangga"; }
  • 2. else if (strcmp(kode[y],"BB")==0||strcmp(kode[y],"bb")==0) { harga[y]=80000; aksi[y]="Buah Apel"; } else if (strcmp(kode[y],"CC")==0||strcmp(kode[y],"cc")==0) { harga[y]=70000; aksi[y]="Buah Jeruk"; } else { cout<<"Salah Input"; goto awal; } } clrscr(); gotoxy(1,1); cout<<"******************************************"<<endl; gotoxy(8,2); cout<<"WISATA TAMAN BUAH"<<endl; gotoxy(1,3); cout<<"******************************************"<<endl; gotoxy(4,4); cout<<"PENGUNJUNG = "<<pngj<<endl;
  • 3. gotoxy(2,6); cout<<"NO AKSI JML HARGA"<<endl; gotoxy(1,7); cout<<"******************************************"<<endl; //1234567890123456789012345678901234 for(y=1;y<=x;y++) { gotoxy(2,y+9);cout<<y; gotoxy(6,y+9);cout<<aksi[y]; gotoxy(18,y+9);cout<<jml[y]; gotoxy(25,y+9);cout<<harga[y]; } gotoxy(1,15); cout<<"******************************************"<<endl; gotoxy(7,16); cout<<"Input Data Lagi=";cin>>lagi; if (lagi=='Y'||lagi=='y') {clrscr(); goto awal;} else cout<<"thanks"<<endl; getch(); }