SlideShare a Scribd company logo
ASAS SAINS KOMPUTER
TINGKATAN 2
BAB 1 : PERWAKILAN DATA
1.1 SISTEM NOMBOR PERLAPANAN
1.1.3
PENUKARAN PENGEKODAN ASCII KEPADA
NOMBOR PERLAPANAN BERDASARKAN
AKSARA YANG DIBERI
CIKGU SHAMSUL BIN PONIJAN
SMK SEG HWA (CF)
SEGAMAT, JOHOR.
Objektif :
Dapat menukar
pengekodan ASCII kepada
nombor perlapaan
berdasarkan aksara yang
diberi.
BAB 1 : PERWAKILAN DATA
ASCII
1. Komputer hanya boleh memproses nombor perduaan.
2. Komputer hanya dapat membaca 1 dan 0 sahaja.
3. Setiap digit 1 dan 0 dikenali sebagai 1 bit (unit terkecil).
4. Bit = binary digit
5. 8 bit = 1 bait (byte).
6. 1 bait boleh mewakili 256 aksara berbeza.
1 bit = 1 atau 0
8 bit = 1 bait (byte)
1 bait = 28 = 256 kombinasi
ASCII
7. Set gabungan ini dikenali sebagai skema pengekodan.
8. Pengekodan ASCII paling luas digunakan dalam dunia.
9. ASCII = American Standard Code for Information
Interchange.
10. Kod ASCII = mewakili teks dalam komputer dan alat
komunikasi lain.
11. Kod ASCII adalah dalam bentuk nombor perpuluhan.
12. Penukaran kod ASCII kepada nombor perlapanan
adalah penting untuk mempercepat proses membaca
data komputer untuk tindakan selanjutnya.
Soalan: Tukar aksara G daripada kod ASCII kepada
nombor perlapanan.
jawapan = 1078
Bahagi 8
7
1
0
Kod ASCII G ialah 7110.
maka, aksara G diwakili 1078
Aktiviti 1.7
1. Huraikan kaedah pengiraan yang digunakan untuk
menukar pengekodan ASCII kepada nombor perlapanan.
Kaedah bahagi dengan 8 dan gunakan baki
Dalam kaedah ini, nombor perpuluhan dibahagi dengan
8. Catatkan hasil bahagi dan bakinya. Hasil
bahagi pertama dibahagi dengan 8 sekali lagi dan hasil
bahagi serta bakinya dicatatkan. Proses ini
diulangi sehingga hasil bahaginya tidak boleh dibahagi
lagi dan setiap bakinya dicatatkan. Nilai nombor
perlapanan diambil berdasarkan bakinya secara
menyongsang.
Aktiviti 1.7
2. Gunakan kaedah pengiraan, kemudian tukarkan kod
ASCII yang berikut kepada nombor perlapanan.
Soalan : 8410
Bahagi 8
4
1
2
= 1248Jawapan : 8410

More Related Content

Recently uploaded

CADANGAN AKTIVITI PIBG TAHUNAN DAN HARI KANTIN
CADANGAN AKTIVITI PIBG TAHUNAN DAN HARI KANTINCADANGAN AKTIVITI PIBG TAHUNAN DAN HARI KANTIN
CADANGAN AKTIVITI PIBG TAHUNAN DAN HARI KANTIN
SITIAMALINA17
 
buku program PIBG SK TAMAN UNIVERSITI 1.pdf
buku program PIBG SK TAMAN UNIVERSITI 1.pdfbuku program PIBG SK TAMAN UNIVERSITI 1.pdf
buku program PIBG SK TAMAN UNIVERSITI 1.pdf
MARINIDARWISHAHBINTI
 
RANCANGAN TAHUNAN PKK THN 4 - 6 2024.docx
RANCANGAN TAHUNAN PKK THN 4 - 6 2024.docxRANCANGAN TAHUNAN PKK THN 4 - 6 2024.docx
RANCANGAN TAHUNAN PKK THN 4 - 6 2024.docx
g32420007
 
INFO TENTANG DLP - SLIDE TENTANG DUAL LANGUAGE PROGRAM
INFO TENTANG DLP - SLIDE TENTANG DUAL LANGUAGE PROGRAMINFO TENTANG DLP - SLIDE TENTANG DUAL LANGUAGE PROGRAM
INFO TENTANG DLP - SLIDE TENTANG DUAL LANGUAGE PROGRAM
g28423557
 
CONTOH BUKU PROGRAM KEJOHANAN OLAHRAGA 2022.pdf
CONTOH BUKU PROGRAM KEJOHANAN OLAHRAGA 2022.pdfCONTOH BUKU PROGRAM KEJOHANAN OLAHRAGA 2022.pdf
CONTOH BUKU PROGRAM KEJOHANAN OLAHRAGA 2022.pdf
JuhairinNiza1
 
MODUL PELAKSANAAN GenMADANI PEMBINAAN KARAKTER
MODUL PELAKSANAAN GenMADANI PEMBINAAN KARAKTERMODUL PELAKSANAAN GenMADANI PEMBINAAN KARAKTER
MODUL PELAKSANAAN GenMADANI PEMBINAAN KARAKTER
PusatKokurikulumTere
 
FAIL MEJA PENOLONG KANAN HAL EHWAL MURID
FAIL MEJA PENOLONG KANAN HAL EHWAL MURIDFAIL MEJA PENOLONG KANAN HAL EHWAL MURID
FAIL MEJA PENOLONG KANAN HAL EHWAL MURID
PamelaEstherAPPaulDe
 
Buku Program PIBG SK Taman Universiti 1 2024
Buku Program PIBG SK Taman Universiti 1 2024Buku Program PIBG SK Taman Universiti 1 2024
Buku Program PIBG SK Taman Universiti 1 2024
MARINIDARWISHAHBINTI
 
SUMBANGAN SALAHUDDIN AL-AYYUBI SEMASA ZAMAN PEMERINTAHANNYA.pptx
SUMBANGAN SALAHUDDIN AL-AYYUBI SEMASA ZAMAN PEMERINTAHANNYA.pptxSUMBANGAN SALAHUDDIN AL-AYYUBI SEMASA ZAMAN PEMERINTAHANNYA.pptx
SUMBANGAN SALAHUDDIN AL-AYYUBI SEMASA ZAMAN PEMERINTAHANNYA.pptx
lieekipli
 
ROKOK & VAPE.pptx Kesedaran keburukan penyalahgunaan bahan terlarang
ROKOK & VAPE.pptx Kesedaran keburukan penyalahgunaan bahan terlarangROKOK & VAPE.pptx Kesedaran keburukan penyalahgunaan bahan terlarang
ROKOK & VAPE.pptx Kesedaran keburukan penyalahgunaan bahan terlarang
FelaminaAlbert1
 

Recently uploaded (10)

CADANGAN AKTIVITI PIBG TAHUNAN DAN HARI KANTIN
CADANGAN AKTIVITI PIBG TAHUNAN DAN HARI KANTINCADANGAN AKTIVITI PIBG TAHUNAN DAN HARI KANTIN
CADANGAN AKTIVITI PIBG TAHUNAN DAN HARI KANTIN
 
buku program PIBG SK TAMAN UNIVERSITI 1.pdf
buku program PIBG SK TAMAN UNIVERSITI 1.pdfbuku program PIBG SK TAMAN UNIVERSITI 1.pdf
buku program PIBG SK TAMAN UNIVERSITI 1.pdf
 
RANCANGAN TAHUNAN PKK THN 4 - 6 2024.docx
RANCANGAN TAHUNAN PKK THN 4 - 6 2024.docxRANCANGAN TAHUNAN PKK THN 4 - 6 2024.docx
RANCANGAN TAHUNAN PKK THN 4 - 6 2024.docx
 
INFO TENTANG DLP - SLIDE TENTANG DUAL LANGUAGE PROGRAM
INFO TENTANG DLP - SLIDE TENTANG DUAL LANGUAGE PROGRAMINFO TENTANG DLP - SLIDE TENTANG DUAL LANGUAGE PROGRAM
INFO TENTANG DLP - SLIDE TENTANG DUAL LANGUAGE PROGRAM
 
CONTOH BUKU PROGRAM KEJOHANAN OLAHRAGA 2022.pdf
CONTOH BUKU PROGRAM KEJOHANAN OLAHRAGA 2022.pdfCONTOH BUKU PROGRAM KEJOHANAN OLAHRAGA 2022.pdf
CONTOH BUKU PROGRAM KEJOHANAN OLAHRAGA 2022.pdf
 
MODUL PELAKSANAAN GenMADANI PEMBINAAN KARAKTER
MODUL PELAKSANAAN GenMADANI PEMBINAAN KARAKTERMODUL PELAKSANAAN GenMADANI PEMBINAAN KARAKTER
MODUL PELAKSANAAN GenMADANI PEMBINAAN KARAKTER
 
FAIL MEJA PENOLONG KANAN HAL EHWAL MURID
FAIL MEJA PENOLONG KANAN HAL EHWAL MURIDFAIL MEJA PENOLONG KANAN HAL EHWAL MURID
FAIL MEJA PENOLONG KANAN HAL EHWAL MURID
 
Buku Program PIBG SK Taman Universiti 1 2024
Buku Program PIBG SK Taman Universiti 1 2024Buku Program PIBG SK Taman Universiti 1 2024
Buku Program PIBG SK Taman Universiti 1 2024
 
SUMBANGAN SALAHUDDIN AL-AYYUBI SEMASA ZAMAN PEMERINTAHANNYA.pptx
SUMBANGAN SALAHUDDIN AL-AYYUBI SEMASA ZAMAN PEMERINTAHANNYA.pptxSUMBANGAN SALAHUDDIN AL-AYYUBI SEMASA ZAMAN PEMERINTAHANNYA.pptx
SUMBANGAN SALAHUDDIN AL-AYYUBI SEMASA ZAMAN PEMERINTAHANNYA.pptx
 
ROKOK & VAPE.pptx Kesedaran keburukan penyalahgunaan bahan terlarang
ROKOK & VAPE.pptx Kesedaran keburukan penyalahgunaan bahan terlarangROKOK & VAPE.pptx Kesedaran keburukan penyalahgunaan bahan terlarang
ROKOK & VAPE.pptx Kesedaran keburukan penyalahgunaan bahan terlarang
 

Featured

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
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Featured (20)

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
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Ask t2 1.1.3 penukaran pengekod ascii kepada nombor perlapanan

  • 1. ASAS SAINS KOMPUTER TINGKATAN 2 BAB 1 : PERWAKILAN DATA 1.1 SISTEM NOMBOR PERLAPANAN 1.1.3 PENUKARAN PENGEKODAN ASCII KEPADA NOMBOR PERLAPANAN BERDASARKAN AKSARA YANG DIBERI CIKGU SHAMSUL BIN PONIJAN SMK SEG HWA (CF) SEGAMAT, JOHOR.
  • 2. Objektif : Dapat menukar pengekodan ASCII kepada nombor perlapaan berdasarkan aksara yang diberi. BAB 1 : PERWAKILAN DATA
  • 3. ASCII 1. Komputer hanya boleh memproses nombor perduaan. 2. Komputer hanya dapat membaca 1 dan 0 sahaja. 3. Setiap digit 1 dan 0 dikenali sebagai 1 bit (unit terkecil). 4. Bit = binary digit 5. 8 bit = 1 bait (byte). 6. 1 bait boleh mewakili 256 aksara berbeza. 1 bit = 1 atau 0 8 bit = 1 bait (byte) 1 bait = 28 = 256 kombinasi
  • 4. ASCII 7. Set gabungan ini dikenali sebagai skema pengekodan. 8. Pengekodan ASCII paling luas digunakan dalam dunia. 9. ASCII = American Standard Code for Information Interchange. 10. Kod ASCII = mewakili teks dalam komputer dan alat komunikasi lain. 11. Kod ASCII adalah dalam bentuk nombor perpuluhan. 12. Penukaran kod ASCII kepada nombor perlapanan adalah penting untuk mempercepat proses membaca data komputer untuk tindakan selanjutnya.
  • 5. Soalan: Tukar aksara G daripada kod ASCII kepada nombor perlapanan. jawapan = 1078 Bahagi 8 7 1 0 Kod ASCII G ialah 7110. maka, aksara G diwakili 1078
  • 6. Aktiviti 1.7 1. Huraikan kaedah pengiraan yang digunakan untuk menukar pengekodan ASCII kepada nombor perlapanan. Kaedah bahagi dengan 8 dan gunakan baki Dalam kaedah ini, nombor perpuluhan dibahagi dengan 8. Catatkan hasil bahagi dan bakinya. Hasil bahagi pertama dibahagi dengan 8 sekali lagi dan hasil bahagi serta bakinya dicatatkan. Proses ini diulangi sehingga hasil bahaginya tidak boleh dibahagi lagi dan setiap bakinya dicatatkan. Nilai nombor perlapanan diambil berdasarkan bakinya secara menyongsang.
  • 7. Aktiviti 1.7 2. Gunakan kaedah pengiraan, kemudian tukarkan kod ASCII yang berikut kepada nombor perlapanan. Soalan : 8410 Bahagi 8 4 1 2 = 1248Jawapan : 8410