SlideShare a Scribd company logo
1. Program yang membaca nilai integer dan menuliskan nilainya
   jika positif.
2. Program yang membaca nilai integer dan menuliskan ‘Nilai
   a positif’ jika a >= 0 dan ‘Nilai a negatif’ jika a < 0.
3. Program yang membaca nilai integer dan menuliskan ‘Nilai
   a positif’ jika a > 0 , ‘Nilai a negatif ‘ jika a < 0, dan
   ‘Nilai Nol ‘ jika a=0.
4. Dibaca tiga buah harga a, b dan c, harus dituliskan secara
   terurut mulai dari yang terkecil sampai dengan yang
   terbesar. Ketiga bilangan yang dibaca selalu berlainan
   harganya.
5. Idem no 4. Bagaimana jika ketiga bilangan yang
   dibaca adalah sama ?
6. Dibaca suatu nilai bertipe integer.
   Jika dimasukan harga 1 maka tulis di layar ‘SATU’
   Jika dimasukan harga 2 maka tulis di layar ‘DUA’
   Jika dimasukan harga 3 maka tulis di layar ‘TIGA’
   ……………
   Jika dimasukan harga 9 maka tulis di layar ‘SEMBILAN’
   Jika dimasukan harga 0 maka tulis di layar ‘NOL

  Jika dimasukan harga selain 0 s/d 9 maka tulis di layar
  ‘BILANGAN SELAIN 0 s/d 9’
7. Buatlah program untuk menentukan bonus pegawai,
   berdasarkan ketentuan yang diberikan oleh bagian
   personalia dan keuangan sebagai berikut : Pegawai
   perusahaan digolongkan menjadi dua golongan, yaitu staf
   dan non staf. Staf akan mendapatkan bonus sebesar 1 juta
   rupiah dengan syarat bahwa ia telah bekerja paling tidak 5
   tahun dan umurnya sudah mencapai 50 tahun; staf yang
   bekerja kurang dari 5 tahun dan berapapun umurnya, hanya
   mendapat bonus sebesar Rp. 500.000. Pegawai non staf
   yang telah bekerja lebih dari 5 tahun akan mendapat bonus
   sebesar Rp. 400.000 jika berumur lebih dari 50 tahun
   sedangkan pegawai non staf yang berumur kurang dari 50
   tahun hanya mendapat bonus Rp. 250.000. Pegawai staf
   yang umurnya kurang dari 50 tahun akan mendapat bonus
   Rp. 300.000
Tugas V Class Ii
Tugas V Class Ii
Tugas V Class Ii

More Related Content

Recently uploaded

Modul 2.1.a.4 Refleksi Eksplorasi Konsep.pdf.pptxModul 2.1.a.4 Refleksi Ekspl...
Modul 2.1.a.4 Refleksi Eksplorasi Konsep.pdf.pptxModul 2.1.a.4 Refleksi Ekspl...Modul 2.1.a.4 Refleksi Eksplorasi Konsep.pdf.pptxModul 2.1.a.4 Refleksi Ekspl...
Modul 2.1.a.4 Refleksi Eksplorasi Konsep.pdf.pptxModul 2.1.a.4 Refleksi Ekspl...
YoseSuprapman3
 
PREMIUM!!! WA 0821 7001 0763 (FORTRESS) Pintu Dobel Minimalis di Denpasar.pdf
PREMIUM!!! WA 0821 7001 0763 (FORTRESS) Pintu Dobel Minimalis di Denpasar.pdfPREMIUM!!! WA 0821 7001 0763 (FORTRESS) Pintu Dobel Minimalis di Denpasar.pdf
PREMIUM!!! WA 0821 7001 0763 (FORTRESS) Pintu Dobel Minimalis di Denpasar.pdf
FORTRESS
 
Pertemuan 6 Materi Kecerdasan Intelektual.ppt
Pertemuan 6 Materi Kecerdasan Intelektual.pptPertemuan 6 Materi Kecerdasan Intelektual.ppt
Pertemuan 6 Materi Kecerdasan Intelektual.ppt
MardhatilaFitriSopal
 
BUKU ADMINISTRASI GURU KELAS SD 2024 /2025
BUKU ADMINISTRASI GURU KELAS SD 2024 /2025BUKU ADMINISTRASI GURU KELAS SD 2024 /2025
BUKU ADMINISTRASI GURU KELAS SD 2024 /2025
Redis Manik
 
STRATEGI PASAR dalam menjalankan bisnis pemasar
STRATEGI PASAR dalam menjalankan bisnis pemasarSTRATEGI PASAR dalam menjalankan bisnis pemasar
STRATEGI PASAR dalam menjalankan bisnis pemasar
rioeradeka
 
PPT HARMONISASI AKUNTANSI INTERNASIONAL.pptx
PPT HARMONISASI AKUNTANSI INTERNASIONAL.pptxPPT HARMONISASI AKUNTANSI INTERNASIONAL.pptx
PPT HARMONISASI AKUNTANSI INTERNASIONAL.pptx
IsmiAis2
 
UNIKBET : Daftar Slot Pragmatic Play Yang Ada Deposit Sesama Bank DKI Promo B...
UNIKBET : Daftar Slot Pragmatic Play Yang Ada Deposit Sesama Bank DKI Promo B...UNIKBET : Daftar Slot Pragmatic Play Yang Ada Deposit Sesama Bank DKI Promo B...
UNIKBET : Daftar Slot Pragmatic Play Yang Ada Deposit Sesama Bank DKI Promo B...
unikbetslotbankmaybank
 
Ilmu PENGANTAR BISNIS creat riva dan teman teman.pptx
Ilmu PENGANTAR BISNIS creat riva dan teman teman.pptxIlmu PENGANTAR BISNIS creat riva dan teman teman.pptx
Ilmu PENGANTAR BISNIS creat riva dan teman teman.pptx
RamonaChasdiana
 
PAPARAN JATIM CM SURABAYA PROVINSI JAWA TIMUR
PAPARAN JATIM CM SURABAYA PROVINSI JAWA TIMURPAPARAN JATIM CM SURABAYA PROVINSI JAWA TIMUR
PAPARAN JATIM CM SURABAYA PROVINSI JAWA TIMUR
jhanchoek885
 
Pertemuan 7_Penetapan Produk Unggul dan Manajemen Inovasi.pdf
Pertemuan 7_Penetapan Produk Unggul dan Manajemen Inovasi.pdfPertemuan 7_Penetapan Produk Unggul dan Manajemen Inovasi.pdf
Pertemuan 7_Penetapan Produk Unggul dan Manajemen Inovasi.pdf
classroomastitiani
 

Recently uploaded (10)

Modul 2.1.a.4 Refleksi Eksplorasi Konsep.pdf.pptxModul 2.1.a.4 Refleksi Ekspl...
Modul 2.1.a.4 Refleksi Eksplorasi Konsep.pdf.pptxModul 2.1.a.4 Refleksi Ekspl...Modul 2.1.a.4 Refleksi Eksplorasi Konsep.pdf.pptxModul 2.1.a.4 Refleksi Ekspl...
Modul 2.1.a.4 Refleksi Eksplorasi Konsep.pdf.pptxModul 2.1.a.4 Refleksi Ekspl...
 
PREMIUM!!! WA 0821 7001 0763 (FORTRESS) Pintu Dobel Minimalis di Denpasar.pdf
PREMIUM!!! WA 0821 7001 0763 (FORTRESS) Pintu Dobel Minimalis di Denpasar.pdfPREMIUM!!! WA 0821 7001 0763 (FORTRESS) Pintu Dobel Minimalis di Denpasar.pdf
PREMIUM!!! WA 0821 7001 0763 (FORTRESS) Pintu Dobel Minimalis di Denpasar.pdf
 
Pertemuan 6 Materi Kecerdasan Intelektual.ppt
Pertemuan 6 Materi Kecerdasan Intelektual.pptPertemuan 6 Materi Kecerdasan Intelektual.ppt
Pertemuan 6 Materi Kecerdasan Intelektual.ppt
 
BUKU ADMINISTRASI GURU KELAS SD 2024 /2025
BUKU ADMINISTRASI GURU KELAS SD 2024 /2025BUKU ADMINISTRASI GURU KELAS SD 2024 /2025
BUKU ADMINISTRASI GURU KELAS SD 2024 /2025
 
STRATEGI PASAR dalam menjalankan bisnis pemasar
STRATEGI PASAR dalam menjalankan bisnis pemasarSTRATEGI PASAR dalam menjalankan bisnis pemasar
STRATEGI PASAR dalam menjalankan bisnis pemasar
 
PPT HARMONISASI AKUNTANSI INTERNASIONAL.pptx
PPT HARMONISASI AKUNTANSI INTERNASIONAL.pptxPPT HARMONISASI AKUNTANSI INTERNASIONAL.pptx
PPT HARMONISASI AKUNTANSI INTERNASIONAL.pptx
 
UNIKBET : Daftar Slot Pragmatic Play Yang Ada Deposit Sesama Bank DKI Promo B...
UNIKBET : Daftar Slot Pragmatic Play Yang Ada Deposit Sesama Bank DKI Promo B...UNIKBET : Daftar Slot Pragmatic Play Yang Ada Deposit Sesama Bank DKI Promo B...
UNIKBET : Daftar Slot Pragmatic Play Yang Ada Deposit Sesama Bank DKI Promo B...
 
Ilmu PENGANTAR BISNIS creat riva dan teman teman.pptx
Ilmu PENGANTAR BISNIS creat riva dan teman teman.pptxIlmu PENGANTAR BISNIS creat riva dan teman teman.pptx
Ilmu PENGANTAR BISNIS creat riva dan teman teman.pptx
 
PAPARAN JATIM CM SURABAYA PROVINSI JAWA TIMUR
PAPARAN JATIM CM SURABAYA PROVINSI JAWA TIMURPAPARAN JATIM CM SURABAYA PROVINSI JAWA TIMUR
PAPARAN JATIM CM SURABAYA PROVINSI JAWA TIMUR
 
Pertemuan 7_Penetapan Produk Unggul dan Manajemen Inovasi.pdf
Pertemuan 7_Penetapan Produk Unggul dan Manajemen Inovasi.pdfPertemuan 7_Penetapan Produk Unggul dan Manajemen Inovasi.pdf
Pertemuan 7_Penetapan Produk Unggul dan Manajemen Inovasi.pdf
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Tugas V Class Ii

  • 1.
  • 2. 1. Program yang membaca nilai integer dan menuliskan nilainya jika positif.
  • 3. 2. Program yang membaca nilai integer dan menuliskan ‘Nilai a positif’ jika a >= 0 dan ‘Nilai a negatif’ jika a < 0.
  • 4. 3. Program yang membaca nilai integer dan menuliskan ‘Nilai a positif’ jika a > 0 , ‘Nilai a negatif ‘ jika a < 0, dan ‘Nilai Nol ‘ jika a=0.
  • 5. 4. Dibaca tiga buah harga a, b dan c, harus dituliskan secara terurut mulai dari yang terkecil sampai dengan yang terbesar. Ketiga bilangan yang dibaca selalu berlainan harganya.
  • 6. 5. Idem no 4. Bagaimana jika ketiga bilangan yang dibaca adalah sama ?
  • 7. 6. Dibaca suatu nilai bertipe integer. Jika dimasukan harga 1 maka tulis di layar ‘SATU’ Jika dimasukan harga 2 maka tulis di layar ‘DUA’ Jika dimasukan harga 3 maka tulis di layar ‘TIGA’ …………… Jika dimasukan harga 9 maka tulis di layar ‘SEMBILAN’ Jika dimasukan harga 0 maka tulis di layar ‘NOL Jika dimasukan harga selain 0 s/d 9 maka tulis di layar ‘BILANGAN SELAIN 0 s/d 9’
  • 8. 7. Buatlah program untuk menentukan bonus pegawai, berdasarkan ketentuan yang diberikan oleh bagian personalia dan keuangan sebagai berikut : Pegawai perusahaan digolongkan menjadi dua golongan, yaitu staf dan non staf. Staf akan mendapatkan bonus sebesar 1 juta rupiah dengan syarat bahwa ia telah bekerja paling tidak 5 tahun dan umurnya sudah mencapai 50 tahun; staf yang bekerja kurang dari 5 tahun dan berapapun umurnya, hanya mendapat bonus sebesar Rp. 500.000. Pegawai non staf yang telah bekerja lebih dari 5 tahun akan mendapat bonus sebesar Rp. 400.000 jika berumur lebih dari 50 tahun sedangkan pegawai non staf yang berumur kurang dari 50 tahun hanya mendapat bonus Rp. 250.000. Pegawai staf yang umurnya kurang dari 50 tahun akan mendapat bonus Rp. 300.000