SlideShare a Scribd company logo
1 of 1
1. A whole sale office supplier Mutiara Indah company, discounts the price of each of its products
depending on the number of units bought and the price per unit. The discounts are given in the
following table :
Number Bought
Unit Price (RM)
0 – 10.00 10.01 – 100.00 100.01 –
1 – 9 0% 2% 5%
10 – 99 5% 7% 9%
100 – 499 9% 15% 21%
500 – 999 14% 23% 32%
1000 – 21% 32% 43%
The company wants to create a program that reads the number of units bought and the unit
price, and then calculates and prints the total full cost, the discount given, and the total after
discount. You as a programmer is required to :
a) Analyze the problem (input, process and output)
b) Draw a flow chart.
c) Create a program based on the flow chart
d) Print out an example of input and output.
You should include a proper documentation in your program.

More Related Content

Viewers also liked

KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan komuni...
KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan   komuni...KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan   komuni...
KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan komuni...Amin Upsi
 
KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan interper...
KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan interper...KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan interper...
KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan interper...Amin Upsi
 
Pengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstrukturPengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstrukturUnit Kediaman Luar Kampus
 
Pengenalan anatomi
Pengenalan anatomiPengenalan anatomi
Pengenalan anatomioshinizumi
 
TITAS Bangunan sultan abdul samad kuala lumpur
TITAS Bangunan sultan abdul samad kuala lumpurTITAS Bangunan sultan abdul samad kuala lumpur
TITAS Bangunan sultan abdul samad kuala lumpurAmin Upsi
 
KOMUNIKASI DAN INTERAKSI SOSIAL Komunikasi dalam kumpulan
KOMUNIKASI DAN INTERAKSI SOSIAL Komunikasi dalam kumpulanKOMUNIKASI DAN INTERAKSI SOSIAL Komunikasi dalam kumpulan
KOMUNIKASI DAN INTERAKSI SOSIAL Komunikasi dalam kumpulanAmin Upsi
 
HUBUNGAN ETNIK konsep perpaduan, integrasi & hub etnik
HUBUNGAN ETNIK konsep perpaduan,  integrasi & hub etnik  HUBUNGAN ETNIK konsep perpaduan,  integrasi & hub etnik
HUBUNGAN ETNIK konsep perpaduan, integrasi & hub etnik Amin Upsi
 
Hubungan Etnik - Konsep Asas
Hubungan Etnik - Konsep AsasHubungan Etnik - Konsep Asas
Hubungan Etnik - Konsep AsasMahyuddin Khalid
 
Hubungan Etnik Bab-1
Hubungan Etnik Bab-1Hubungan Etnik Bab-1
Hubungan Etnik Bab-1Fadhil Ismail
 

Viewers also liked (10)

KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan komuni...
KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan   komuni...KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan   komuni...
KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan komuni...
 
KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan interper...
KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan interper...KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan interper...
KOMUNIKASI DAN INTERAKSI SOSIAL Dinamika sosio budaya dalam hubungan interper...
 
Pengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstrukturPengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstruktur
 
Pengenalan anatomi
Pengenalan anatomiPengenalan anatomi
Pengenalan anatomi
 
TITAS Bangunan sultan abdul samad kuala lumpur
TITAS Bangunan sultan abdul samad kuala lumpurTITAS Bangunan sultan abdul samad kuala lumpur
TITAS Bangunan sultan abdul samad kuala lumpur
 
KOMUNIKASI DAN INTERAKSI SOSIAL Komunikasi dalam kumpulan
KOMUNIKASI DAN INTERAKSI SOSIAL Komunikasi dalam kumpulanKOMUNIKASI DAN INTERAKSI SOSIAL Komunikasi dalam kumpulan
KOMUNIKASI DAN INTERAKSI SOSIAL Komunikasi dalam kumpulan
 
HUBUNGAN ETNIK konsep perpaduan, integrasi & hub etnik
HUBUNGAN ETNIK konsep perpaduan,  integrasi & hub etnik  HUBUNGAN ETNIK konsep perpaduan,  integrasi & hub etnik
HUBUNGAN ETNIK konsep perpaduan, integrasi & hub etnik
 
Nota Hubungan Etnik
Nota Hubungan EtnikNota Hubungan Etnik
Nota Hubungan Etnik
 
Hubungan Etnik - Konsep Asas
Hubungan Etnik - Konsep AsasHubungan Etnik - Konsep Asas
Hubungan Etnik - Konsep Asas
 
Hubungan Etnik Bab-1
Hubungan Etnik Bab-1Hubungan Etnik Bab-1
Hubungan Etnik Bab-1
 

Similar to Basic pengaturcaraan

Chapter 5 Costing Methods Part 1 (1).pptx
Chapter 5 Costing Methods Part 1 (1).pptxChapter 5 Costing Methods Part 1 (1).pptx
Chapter 5 Costing Methods Part 1 (1).pptxshawalhamzah
 
1 University of Leeds School of Computing Proced.docx
1 University of Leeds       School of Computing Proced.docx1 University of Leeds       School of Computing Proced.docx
1 University of Leeds School of Computing Proced.docxjeremylockett77
 
MAJOR REPORT 2 SPECIFICATIONS CIS8011_Digital Innovation .docx
MAJOR REPORT 2 SPECIFICATIONS CIS8011_Digital Innovation .docxMAJOR REPORT 2 SPECIFICATIONS CIS8011_Digital Innovation .docx
MAJOR REPORT 2 SPECIFICATIONS CIS8011_Digital Innovation .docxinfantsuk
 
Field service management software - SalesBabu
Field service management software -  SalesBabuField service management software -  SalesBabu
Field service management software - SalesBabuSalesBabuCRM
 
List of programs to practice for ICSE
List of programs to practice for ICSEList of programs to practice for ICSE
List of programs to practice for ICSEMokshya Priyadarshee
 
11 IntroductionYou have just been transported to a par.docx
11 IntroductionYou have just been transported to a par.docx11 IntroductionYou have just been transported to a par.docx
11 IntroductionYou have just been transported to a par.docxpaynetawnya
 
Productcostingsample
ProductcostingsampleProductcostingsample
Productcostingsamplejayaramreddy
 
User exit training
User exit trainingUser exit training
User exit trainingJen Ringel
 
MBA: Accounting for Business Decision Making
MBA:  Accounting for Business Decision MakingMBA:  Accounting for Business Decision Making
MBA: Accounting for Business Decision MakingRofidah Azman
 
Learning area 5 programming
Learning area 5   programmingLearning area 5   programming
Learning area 5 programmingShuren Lew
 
OfficeCentral Product Profile (English)
OfficeCentral Product Profile (English)OfficeCentral Product Profile (English)
OfficeCentral Product Profile (English)Khairun Nisa Aziz
 
Sample net manual
Sample net manualSample net manual
Sample net manualazeem1985
 
Costs Of Production Micro Economics ECO101
Costs Of Production Micro Economics ECO101Costs Of Production Micro Economics ECO101
Costs Of Production Micro Economics ECO101Sabih Kamran
 
2010 May P2 May 2010for publication.pdf
2010 May P2 May 2010for publication.pdf2010 May P2 May 2010for publication.pdf
2010 May P2 May 2010for publication.pdfAshikurRahman396585
 
Advanced Management Accounting Paper for IPCC
Advanced Management Accounting Paper for IPCCAdvanced Management Accounting Paper for IPCC
Advanced Management Accounting Paper for IPCCseomiamia
 
Ch13 Managerial accounting aiou mba mcom 8508
Ch13 Managerial accounting aiou mba mcom 8508Ch13 Managerial accounting aiou mba mcom 8508
Ch13 Managerial accounting aiou mba mcom 8508Ali Imran Awan MBA (IT)
 
how to use Creator c500 bmw honda scanner
how to use Creator c500 bmw honda scannerhow to use Creator c500 bmw honda scanner
how to use Creator c500 bmw honda scannerEnzo C
 
Week 1 AssignmentCIS290v61University of Phoenix Materia.docx
Week 1 AssignmentCIS290v61University of Phoenix Materia.docxWeek 1 AssignmentCIS290v61University of Phoenix Materia.docx
Week 1 AssignmentCIS290v61University of Phoenix Materia.docxcelenarouzie
 

Similar to Basic pengaturcaraan (20)

Chapter 5 Costing Methods Part 1 (1).pptx
Chapter 5 Costing Methods Part 1 (1).pptxChapter 5 Costing Methods Part 1 (1).pptx
Chapter 5 Costing Methods Part 1 (1).pptx
 
1 University of Leeds School of Computing Proced.docx
1 University of Leeds       School of Computing Proced.docx1 University of Leeds       School of Computing Proced.docx
1 University of Leeds School of Computing Proced.docx
 
MAJOR REPORT 2 SPECIFICATIONS CIS8011_Digital Innovation .docx
MAJOR REPORT 2 SPECIFICATIONS CIS8011_Digital Innovation .docxMAJOR REPORT 2 SPECIFICATIONS CIS8011_Digital Innovation .docx
MAJOR REPORT 2 SPECIFICATIONS CIS8011_Digital Innovation .docx
 
Field service management software - SalesBabu
Field service management software -  SalesBabuField service management software -  SalesBabu
Field service management software - SalesBabu
 
List of programs to practice for ICSE
List of programs to practice for ICSEList of programs to practice for ICSE
List of programs to practice for ICSE
 
Manufacturing execution systems software (MES) - Senior Sales Executive
Manufacturing execution systems software (MES) - Senior Sales ExecutiveManufacturing execution systems software (MES) - Senior Sales Executive
Manufacturing execution systems software (MES) - Senior Sales Executive
 
11 IntroductionYou have just been transported to a par.docx
11 IntroductionYou have just been transported to a par.docx11 IntroductionYou have just been transported to a par.docx
11 IntroductionYou have just been transported to a par.docx
 
Productcostingsample
ProductcostingsampleProductcostingsample
Productcostingsample
 
User exit training
User exit trainingUser exit training
User exit training
 
MBA: Accounting for Business Decision Making
MBA:  Accounting for Business Decision MakingMBA:  Accounting for Business Decision Making
MBA: Accounting for Business Decision Making
 
Learning area 5 programming
Learning area 5   programmingLearning area 5   programming
Learning area 5 programming
 
Ms 51 & 55
Ms 51 & 55Ms 51 & 55
Ms 51 & 55
 
OfficeCentral Product Profile (English)
OfficeCentral Product Profile (English)OfficeCentral Product Profile (English)
OfficeCentral Product Profile (English)
 
Sample net manual
Sample net manualSample net manual
Sample net manual
 
Costs Of Production Micro Economics ECO101
Costs Of Production Micro Economics ECO101Costs Of Production Micro Economics ECO101
Costs Of Production Micro Economics ECO101
 
2010 May P2 May 2010for publication.pdf
2010 May P2 May 2010for publication.pdf2010 May P2 May 2010for publication.pdf
2010 May P2 May 2010for publication.pdf
 
Advanced Management Accounting Paper for IPCC
Advanced Management Accounting Paper for IPCCAdvanced Management Accounting Paper for IPCC
Advanced Management Accounting Paper for IPCC
 
Ch13 Managerial accounting aiou mba mcom 8508
Ch13 Managerial accounting aiou mba mcom 8508Ch13 Managerial accounting aiou mba mcom 8508
Ch13 Managerial accounting aiou mba mcom 8508
 
how to use Creator c500 bmw honda scanner
how to use Creator c500 bmw honda scannerhow to use Creator c500 bmw honda scanner
how to use Creator c500 bmw honda scanner
 
Week 1 AssignmentCIS290v61University of Phoenix Materia.docx
Week 1 AssignmentCIS290v61University of Phoenix Materia.docxWeek 1 AssignmentCIS290v61University of Phoenix Materia.docx
Week 1 AssignmentCIS290v61University of Phoenix Materia.docx
 

More from Unit Kediaman Luar Kampus (6)

Fail
FailFail
Fail
 
Fungsi (ii)
Fungsi (ii)Fungsi (ii)
Fungsi (ii)
 
Latihan 2
Latihan 2Latihan 2
Latihan 2
 
Pengaturcaraan asas
Pengaturcaraan asasPengaturcaraan asas
Pengaturcaraan asas
 
Penyelesaian masalah
Penyelesaian masalahPenyelesaian masalah
Penyelesaian masalah
 
Presentation2
Presentation2Presentation2
Presentation2
 

Basic pengaturcaraan

  • 1. 1. A whole sale office supplier Mutiara Indah company, discounts the price of each of its products depending on the number of units bought and the price per unit. The discounts are given in the following table : Number Bought Unit Price (RM) 0 – 10.00 10.01 – 100.00 100.01 – 1 – 9 0% 2% 5% 10 – 99 5% 7% 9% 100 – 499 9% 15% 21% 500 – 999 14% 23% 32% 1000 – 21% 32% 43% The company wants to create a program that reads the number of units bought and the unit price, and then calculates and prints the total full cost, the discount given, and the total after discount. You as a programmer is required to : a) Analyze the problem (input, process and output) b) Draw a flow chart. c) Create a program based on the flow chart d) Print out an example of input and output. You should include a proper documentation in your program.