# data[].attributes.body
Flight Ticket Management
SITI SARAH BINTI DAUD ( 2017241478 )
NUR FARIZAH BINTI MOHD ZAINURI ( 2017254726 )
//                NUR AQILAH BINTI MOHD SHAH BAKRI ( 2017232986 )
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan (2017
Handphone Service Ce
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre 
Empty
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan (
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan (2017232152
h
Avatar of anonymous
Anonymous
1yr
h
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan 
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan (2017232152)
Nurhusnina Hasya Bt Khairulrizal (2017242142)
Mohamad Raffiq Bin Hamzah (2017224306)
Handphone
Avatar of anonymous
Anonymous
1yr
Handphone 
Handphone Service
Avatar of anonymous
Anonymous
1yr
Handphone Service 
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan (20172321
CAR SALES MANAGEMENT
Avatar of anonymous
Anonymous
1yr
CAR SALES MANAGEMENT
GROUP MEMBERS:
NURUL IZZA BINTI MOHD JOHARI (2017254454)
NURAZMINA BINTI KAMARUL AZIM (2017259176)
NUR UMAIRAH BINTI ZURAIMI (2017259096)
Clinic Management System
Avatar of anonymous
Anonymous
1yr
Clinic Management System
ANIS HANNANI BINTI RENALDI (2017254358)
NURHANIZ BINTI MOHD ROSLI (2017254588)
COMPUTER CLUB MANAGEMENT
Avatar of Nur Khairunnisa Mohd Azmi
Nur Khairunnisa Mohd Azmi
1yr
COMPUTER CLUB MANAGEMENT
NUR KHAIRUNNISA BINTI MOHD AZMI (2017233124)
NURUL IZLEEN BINTI RAZMI (2017233258)
PUTERI SYAIDATUL ILHAM BINTI ARIFFIN (2017216856)
MEDICAL RECORD MANAGEMENT
Avatar of anonymous
Anonymous
1yr
MEDICAL RECORD MANAGEMENT
GROUP MEMBERS:
NUR SYAMIMI AQILAH BT AHMAD SHAKRI (2017258866) 
AZ-ZARITH HUDA BINTI SAMSUDDIN (2017241216) 
NURUL HAMIZAH BINTI HASIM (2017262928)

BOOKSTORE MANAGEMENT SYSTEM
Avatar of anonymous
Anonymous
1yr
BOOKSTORE MANAGEMENT  SYSTEM
NAZEYRA BT JAMALUDDIN (2017254216)
SYAZA NASYIRA BT SHAMSUL AZMI (2017254566)
AINA NUR NADZIRAH BT KHAIRULANUWAR (2017259188) 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muham
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )

Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )

Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3.
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar( 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar 
 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar 
  
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar ( 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar ( 2017262504 )
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar ( 2017262504 )

add
CS1432B- Project Source Code
Library Management
Avatar of anonymous
Anonymous
1yr
Library Management
'ADLI ZAHIN BIN MUHAMMAD RUSLEE (2017254398)

MUHAMMAD IRFAN BIN ZAHARUDDIN (2017242086)

MUHAMMAD UWAIS TAQIY BIN ZULKHAIR (2017259036
CAR SALES MANAGEMENT
Avatar of ahmad afiq ismail
ahmad afiq ismail
1yr
CAR SALES MANAGEMENT
AHMAD AFIQ BIN ISMAIL (2016325041)

ROBBIE DEXTER JR UKAU (2016579049)

MUHAMMAD DANIAL BIN RAMZAN (2016681758 )
F
Avatar of anonymous
Anonymous
1yr
F
📎 Document
Avatar of anonymous
Anonymous
1yr
Muhammad
Avatar of anonymous
Anonymous
2mo
Muhammad

add
Task 1 - CS1432A Mac 2018
Fatimah Az-Zaharah binti Roslan
Avatar of anonymous
Anonymous
1yr
Fatimah Az-Zaharah binti Roslan
(2017290064)
Nuratiqah Hanim binti Tajularrffen
Avatar of Atiqah Hanim
Atiqah Hanim
1yr
Nuratiqah Hanim binti Tajularrffen
(2017289832
Wan Nur Iffah Syazwanie binti Wan Nazarudin
Avatar of Atiqah Hanim
Atiqah Hanim
1yr
Wan Nur Iffah Syazwanie binti Wan Nazarudin
(2017273444)
MUHAMMAD NAZMI HAQIM BIN KAMARULAMIRIN (2017488334
Avatar of Muhammad Nazmi Haqim Bin Kamarulamirin
Muhammad Nazmi Haqim Bin Kamarulamirin
1yr
MUHAMMAD NAZMI HAQIM BIN KAMARULAMIRIN (2017488334
IZZAH FARHANA ZAINAL (2017298596)
Avatar of Muhammad Nazmi Haqim Bin Kamarulamirin
Muhammad Nazmi Haqim Bin Kamarulamirin
1yr
IZZAH FARHANA ZAINAL (2017298596)
Nurhamizan bin Norhalim
Avatar of Atiqah Hanim
Atiqah Hanim
1yr
Nurhamizan bin Norhalim
(2017273346)
M. AMIR HADZEEM B. ABD. RAHIM
Avatar of anonymous
Anonymous
1yr
M. AMIR HADZEEM B. ABD. RAHIM
(2017451826)
Nurul Athirah Binti Baini
Avatar of fizie mijie
fizie mijie
1yr
Nurul Athirah Binti Baini
(2017487824)
Muhammad Aiman Hafizi Bin Murad
Avatar of fizie mijie
fizie mijie
1yr
Muhammad Aiman Hafizi Bin Murad
(2017298274)
Muhammad Johari Bin Jaffar
Avatar of anonymous
Anonymous
1yr
Muhammad Johari Bin Jaffar
2016473194
Nisa Asillah Binti Asaad
Avatar of Nisa Asillah
Nisa Asillah
1yr
Nisa Asillah Binti Asaad
2017488042
Mahani Binti Meor
Avatar of Nisa Asillah
Nisa Asillah
1yr
Mahani Binti Meor
2017298926
Amira Shahira
Avatar of anonymous
Anonymous
1yr
Amira Shahira
(
a
Avatar of anonymous
Anonymous
1yr
a
Amira Shahira
Avatar of anonymous
Anonymous
1yr
Amira Shahira
Empty
Avatar of anonymous
Anonymous
1yr
Amira Shahira
Avatar of anonymous
Anonymous
1yr
Amira Shahira
(2017451372)
Amira Shahira
Avatar of anonymous
Anonymous
1yr
Amira Shahira
(2017451372
Mas Atiqah Izni Binti Mazlan
Avatar of mas atiqah
mas atiqah
1yr
Mas Atiqah Izni Binti Mazlan
2017298646
Nur Hafizah Mohamed
Avatar of anonymous
Anonymous
1yr
Nur Hafizah Mohamed Nasir
2015862158
Nur Ain Binti Mohd Khusairy Faisal
Avatar of anonymous
Anonymous
1yr
Nur Ain Binti Mohd Khusairy Faisal
2017273704 
Nilam Sri Farhana Bt Abd Aziz
Avatar of anonymous
Anonymous
1yr
Nilam Sri Farhana Bt Abd Aziz
2017273296
NUR FATIHAH BINTI HAMDAN
Avatar of anonymous
Anonymous
1yr
NUR FATIHAH BINTI HAMDAN
TASK 1
Avatar of anonymous
Anonymous
1yr
TASK 1
FARAH HANISAH BINTI IBRAHIM 
(2016615864)
TA
Avatar of anonymous
Anonymous
1yr
TA
Nurfadzira binti Ahmad Tajudin
(2017289778
HA
Avatar of anonymous
Anonymous
1yr
HA
HAMIZAH BINTI ZAILAN
Avatar of anonymous
Anonymous
1yr
HAMIZAH BINTI ZAILAN
(2016615794)
Ahaj
Avatar of anonymous
Anonymous
1yr
Ahaj
AIZZAH AZWANA AZMAN (2016492584)
Avatar of anonymous
Anonymous
1yr
AIZZAH AZWANA AZMAN (2016492584)
task 1
Avatar of anonymous
Anonymous
1yr
task 1
NURUL SYAFIQAH BINTI AHMAD RODZI (2017273626)
EMIRA HALISA MUNIRAH BINTI EMIRUDDIN (2016492412
Avatar of anonymous
Anonymous
1yr
EMIRA HALISA MUNIRAH BINTI EMIRUDDIN (2016492412
NUR
Avatar of anonymous
Anonymous
1yr
NUR 
NUR AFIFAH NAZURAH BT AZMAN (2017273522)
Avatar of anonymous
Anonymous
1yr
NUR AFIFAH NAZURAH BT AZMAN (2017273522)
Empty
Avatar of Amir Firdaus
Amir Firdaus
1yr
NUR FATIMAH BINTI MOHD YUSOFF (2016616114)
Avatar of anonymous
Anonymous
1yr
NUR FATIMAH BINTI MOHD YUSOFF (2016616114)

add
Task 1 - CS1432B Mac 2018
Task 1
Avatar of alim abd
alim abd
1yr
Task 1
Abdul Alim Bin Kamarudin
(2017451854)
Muhammad Yunus Bin Ghazali
Avatar of Muhd Yunus
Muhd Yunus
1yr
Muhammad Yunus Bin Ghazali
(2017298498)
Muhammad Izzat bin Ismail
Avatar of anonymous
Anonymous
1yr
Muhammad Izzat bin Ismail
(2017290066)
Umar bin Khaizuran
Avatar of Umar Khaizuran
Umar Khaizuran
1yr
Umar bin Khaizuran
(2017289618)
Nurin Nabilah Binti Jamil
Avatar of anonymous
Anonymous
1yr
Nurin Nabilah Binti Jamil
(2017289974
Izzah Azzahra bt Mohd Nazri
Avatar of anonymous
Anonymous
1yr
Izzah Azzahra bt Mohd Nazri
(2017289954)
Ismahani Huda Binti Ismail
Avatar of Huda Ismail
Huda Ismail
1yr
Ismahani Huda Binti Ismail
(2017298588)
Faizatun Najwa Binti Shahrumnizam
Avatar of anonymous
Anonymous
1yr
Faizatun Najwa Binti Shahrumnizam
(2017451242)
Nurul Najibah binti abdul ghani
Avatar of anonymous
Anonymous
1yr
Nurul Najibah binti abdul ghani
(
Nadiatul Fatinah Binti Abdul Razak
Avatar of anonymous
Anonymous
1yr
Nadiatul Fatinah Binti Abdul Razak
(2017488026)
Nurul Aishah Binti Mohd Daud
Avatar of anonymous
Anonymous
1yr
Nurul Aishah Binti Mohd Daud
(2017281794
Bikriah Bakraj Binti Mohd Hashim
Avatar of anonymous
Anonymous
1yr
Bikriah Bakraj Binti Mohd Hashim
(2017298418)

Masniyati binti Ahmad Saufi
Avatar of Masniyati Ahmad Saufi
Masniyati Ahmad Saufi
1yr
Masniyati binti Ahmad Saufi
(2017451788)

Dhia Azeem binti Khairil Anwar
Avatar of Dhia Azeem
Dhia Azeem
1yr
Dhia Azeem binti Khairil Anwar
2017289438
Muhammad Syahmi Azizi BIn Mohammad Ghazali
Avatar of syahmieg
syahmieg
1yr
Muhammad Syahmi Azizi BIn Mohammad Ghazali
2017273086
Farah Hazwani Binti Fairul Raf
Avatar of anonymous
Anonymous
1yr
Farah Hazwani Binti Fairul Raf
2017488312
Maizatul Noor Afiqah Binti Johazair
Avatar of anonymous
Anonymous
1yr
Maizatul Noor Afiqah Binti Johazair
2017281834
Muhammad Fawwaz Adri bin Ruzlan
Avatar of anonymous
Anonymous
1yr
Muhammad Fawwaz  Adri bin Ruzlan
2017289774
Ahmad Nazirul Iman Bin Ahmad Mihafizuddin
Avatar of anonymous
Anonymous
1yr
Ahmad Nazirul Iman Bin Ahmad Mihafizuddin
2017612832
Nur Aini Binti Zulkepli
Avatar of anonymous
Anonymous
1yr
Nur Aini Binti Zulkepli
(2017289366
)
n
Avatar of anonymous
Anonymous
1yr
n
Mohammad Syakirin Lubis Bin Mashuda
Avatar of anonymous
Anonymous
1yr
Mohammad Syakirin Lubis Bin Mashuda
2017273088
IZZAT BIN AHMAD ZAHARUDDIN
Avatar of anonymous
Anonymous
1yr
IZZAT BIN AHMAD ZAHARUDDIN
2017289776
NOR AQILAH BINTI ZAMRI
Avatar of Aqilahz
Aqilahz
1yr
NOR AQILAH BINTI ZAMRI
2017488358
N
Avatar of Nurul Hidayah
Nurul Hidayah
1yr
N
NURUL HIDAYAH BT MANSOR
Avatar of Nurul Hidayah
Nurul Hidayah
1yr
NURUL HIDAYAH BT MANSOR
( 2017289914 )
N
Avatar of Nurul Hidayah
Nurul Hidayah
1yr
N
AISYAH BT AHMAD
Avatar of Nurul Hidayah
Nurul Hidayah
1yr
AISYAH BT AHMAD
AISYAH BT AHMAD
Avatar of Nurul Hidayah
Nurul Hidayah
1yr
AISYAH BT AHMAD
AISYAH BT AHMAD
Avatar of Nurul Hidayah
Nurul Hidayah
1yr
AISYAH BT AHMAD
201729
AISYAH BT AHMAD
Avatar of Nurul Hidayah
Nurul Hidayah
1yr
AISYAH BT AHMAD
2017290048
MUHAMMAD HAZIQ IBRAHIM BIN KHAIRUL ANUAR
Avatar of anonymous
Anonymous
1yr
MUHAMMAD HAZIQ IBRAHIM BIN KHAIRUL ANUAR
2017451352
IZZAT BIN AHMAD ZAHARUDDIN
Avatar of anonymous
Anonymous
1yr
IZZAT BIN AHMAD ZAHARUDDIN
2017289776
MAZWIN AMIRAH BT HAMIM SHAHRIR
Avatar of anonymous
Anonymous
1yr
MAZWIN AMIRAH BT HAMIM SHAHRIR
(2017298858
NUR ANISAH AHMAD
Avatar of anonymous
Anonymous
1yr
NUR ANISAH AHMAD
(2017289924)

add
Assignment 2 (CS1432A)  March 2018
MUHAMMAD AIMAN HAFIZI BIN MURAD
Avatar of fizie mijie
fizie mijie
1yr
MUHAMMAD AIMAN HAFIZI BIN MURAD
2017298274
Mohamad Amirfirdaus Bin Mohamad Shafri(2017289494)
Avatar of anonymous
Anonymous
1yr
Mohamad Amirfirdaus Bin Mohamad Shafri(2017289494)
FARAH HANISAH
Avatar of anonymous
Anonymous
1yr
FARAH HANISAH
2016615864
HAMIZAH B
Avatar of anonymous
Anonymous
1yr
HAMIZAH B
2016615794
M. AMIR
Avatar of anonymous
Anonymous
1yr
M. AMIR 
(2017451826)
Nama : Mohamad Nabil Hakim bin ShaariNo matriks : 2017289692
Avatar of Atiqah Hanim
Atiqah Hanim
1yr
Nama : Mohamad Nabil Hakim bin ShaariNo matriks : 2017289692
NAMA: Muhammad Nazmi Haqim bin Kamarulamirin
Avatar of Muhammad Nazmi Haqim Bin Kamarulamirin
Muhammad Nazmi Haqim Bin Kamarulamirin
1yr
NAMA: Muhammad Nazmi Haqim bin Kamarulamirin
ID: 2017488334
Nisa Asillah Binti Asaad
Avatar of Nisa Asillah
Nisa Asillah
1yr
Nisa Asillah Binti Asaad
(2017488042)
Muhammad Johari Bin Jaffar
Avatar of anonymous
Anonymous
1yr
Muhammad Johari Bin Jaffar
20164731
Izzah Farhana binti Zainal
Avatar of Muhammad Nazmi Haqim Bin Kamarulamirin
Muhammad Nazmi Haqim Bin Kamarulamirin
1yr
Izzah Farhana binti Zainal
2017298596
WAN NUR IFFAH SYAZWANIE BINTI WAN NAZARUDIN
Avatar of anonymous
Anonymous
1yr
WAN NUR IFFAH SYAZWANIE BINTI WAN NAZARUDIN
(2017273444)
NUR FATIHAH BT HAMDAN
Avatar of anonymous
Anonymous
1yr
NUR FATIHAH BT HAMDAN
2017273334
NUR AIN BT MOHD KHUSAIRY FAISAL
Avatar of anonymous
Anonymous
1yr
NUR AIN BT MOHD KHUSAIRY FAISAL
2017273704
MAS ATIQAH IZNI BINTI MAZLAN
Avatar of mas atiqah
mas atiqah
1yr
MAS ATIQAH IZNI BINTI MAZLAN
(2017298646)
Nur Hafizah Mohamed Nasir
Avatar of anonymous
Anonymous
1yr
Nur Hafizah Mohamed Nasir
2015862158
MAHANI BINTI MEOR TAJUDDIN
Avatar of anonymous
Anonymous
1yr
MAHANI BINTI MEOR TAJUDDIN 
(2017298926)
Nurfadzira binti Ahmad Tajudin
Avatar of anonymous
Anonymous
1yr
Nurfadzira binti Ahmad Tajudin
(2017289778)
Nurul Athirah bt Baini
Avatar of anonymous
Anonymous
1yr
   Nurul Athirah bt Baini                                                       
    201748782
Nilam Sri Farhana bt Abd Aziz
Avatar of anonymous
Anonymous
1yr
Nilam Sri Farhana bt Abd Aziz
2017273296
2017451372
Avatar of anonymous
Anonymous
1yr
2017451372
amira shahira adnan
Muhammad Azim Hadi bin Ramlan
Avatar of Azim Hadi
Azim Hadi
1yr
Muhammad Azim Hadi bin Ramlan
(2017298164)
nurul syafiqah binti ahmad rodzi
Avatar of Syafiqah Rodzi
Syafiqah Rodzi
1yr
nurul syafiqah binti ahmad rodzi
2017273626
NURHAMIZAN BIN NORHALIM
Avatar of anonymous
Anonymous
1yr
NURHAMIZAN BIN NORHALIM
( 2017273346 )
NUR AFIFAH NAZURAH BT AZM
Avatar of anonymous
Anonymous
1yr
NUR AFIFAH NAZURAH BT AZM
NUR AFIFAH NAZURAH
Avatar of anonymous
Anonymous
1yr
NUR AFIFAH NAZURAH  
NUR AF
Avatar of anonymous
Anonymous
1yr
NUR AF
NUR
Avatar of anonymous
Anonymous
1yr
NUR
NUR AFIFAH N
Avatar of anonymous
Anonymous
1yr
NUR AFIFAH N
NUR AFIFAH NAZURAH
Avatar of anonymous
Anonymous
1yr
NUR AFIFAH NAZURAH  
NUR AFIFAH NAZURAH
Avatar of anonymous
Anonymous
1yr
NUR AFIFAH NAZURAH 
NUR AFIFAH NAZURAH BT AZM
Avatar of anonymous
Anonymous
1yr
NUR AFIFAH NAZURAH BT AZM
(2017273)
NUR AFIFAH NAZURAH
Avatar of anonymous
Anonymous
1yr
NUR AFIFAH NAZURAH 
NUR FATIMAH BINTI MOHD YUSOFF
Avatar of anonymous
Anonymous
1yr
NUR FATIMAH BINTI MOHD YUSOFF
AIZZAH AZWANA BINTI AZMAN
Avatar of anonymous
Anonymous
1yr
AIZZAH AZWANA BINTI AZMAN
(2016492584)


Emira Halisa Munirah binti Emiruddin
Avatar of anonymous
Anonymous
1yr
Emira Halisa Munirah binti Emiruddin 
(2016492412)
FATIMAH AZ-ZAHARAH BINTI ROSLAN
Avatar of Atiqah Hanim
Atiqah Hanim
1yr
FATIMAH AZ-ZAHARAH BINTI ROSLAN
(2017290064)
N
Avatar of Atiqah Hanim
Atiqah Hanim
1yr
N
NURATIQ
Avatar of Atiqah Hanim
Atiqah Hanim
1yr
NURATIQ
(2017289832)

add
Assignment 2 (CS1432B) March 2018
Muhammad Yunus bin Ghazali
Avatar of Muhd Yunus
Muhd Yunus
1yr
Muhammad Yunus bin Ghazali
(2017298498)
Muhammad Fawwaz Adri bin Ruzlan
Avatar of anonymous
Anonymous
1yr
Muhammad Fawwaz Adri bin Ruzlan
(2017289774)
Muhammad Izzat Bin Ismail
Avatar of anonymous
Anonymous
1yr
Muhammad Izzat Bin Ismail
(2017290066
Abdul Alim Bin Kamarudin
Avatar of alim abd
alim abd
1yr
Abdul Alim Bin Kamarudin
(2017451854)
Umar bin Khaizuran
Avatar of Umar Khaizuran
Umar Khaizuran
1yr
Umar bin Khaizuran
(2017289618)
FARAH HAZWANI BINTI FAIRUL RAFIQ
Avatar of anonymous
Anonymous
1yr
FARAH HAZWANI BINTI FAIRUL RAFIQ
(2017488312)

Faizatun Najwa binti Shahrumnizam
Avatar of anonymous
Anonymous
1yr
Faizatun Najwa binti Shahrumnizam
(2017451242)
IZZAT BIN AHMAD ZAHARUDDIN
Avatar of anonymous
Anonymous
1yr
IZZAT BIN AHMAD ZAHARUDDIN
2017289776

NURIN NABILAH BINTI JAMIL
Avatar of anonymous
Anonymous
1yr
NURIN NABILAH BINTI JAMIL
(2017289974)
NURUL AISHAH BT. MOHD DAUD (2017281794)
Avatar of Nurul Aishah
Nurul Aishah
1yr
NURUL AISHAH BT. MOHD DAUD (2017281794)
IZZAH AZZAHRA BT. MOHD NAZRI (2017289954)
Avatar of anonymous
Anonymous
1yr
IZZAH AZZAHRA BT. MOHD NAZRI (2017289954)
BIKRIAH BAKRAJ BINTI MOHD HASHIM
Avatar of anonymous
Anonymous
1yr
BIKRIAH BAKRAJ BINTI MOHD HASHIM
M
Avatar of anonymous
Anonymous
1yr
M
MAI
Avatar of anonymous
Anonymous
1yr
MAI
Empty
Avatar of anonymous
Anonymous
1yr
Maizatul Noor Afiqah Binti Johazair
Avatar of anonymous
Anonymous
1yr
Maizatul Noor Afiqah Binti Johazair
2017
Maizatul Noor Afiqah Binti Johazair (2017281834)
Avatar of anonymous
Anonymous
1yr
Maizatul Noor Afiqah Binti Johazair (2017281834)
NUR AINI BINTI ZULKEPLI
Avatar of anonymous
Anonymous
1yr
NUR AINI BINTI ZULKEPLI
(2017289366)
ASSNGMENT FUNCTION
Avatar of Nurul Hidayah
Nurul Hidayah
1yr
ASSNGMENT FUNCTION
nur anisah ahmad
Avatar of anonymous
Anonymous
1yr
nur anisah ahmad
(2017289924)
ISMAHANI HUDA BINTI ISMAIL
Avatar of Huda Ismail
Huda Ismail
1yr
ISMAHANI HUDA  BINTI ISMAIL
2017298588
assignment 2 muhd azam
Avatar of anonymous
Anonymous
1yr
assignment 2 muhd azam
2017273442


Assignment 2
Avatar of anonymous
Anonymous
1yr
Assignment 2
nadiatul fatinah bt abdul razak 
2017488026
MUHAMMAD SYAHMI AZIZI BIN MOHAMMAD GHAZALI
Avatar of syahmieg
syahmieg
1yr
MUHAMMAD SYAHMI AZIZI BIN MOHAMMAD GHAZALI
ASSIGMENT 
Nurul Najibah bt abd Ghani
Avatar of anonymous
Anonymous
1yr
Nurul Najibah bt abd Ghani
2017626184

Dhia Azeem binti Khairil Anwar
Avatar of anonymous
Anonymous
1yr
Dhia Azeem binti Khairil Anwar
(2017289438)
DHIA AZEEM BINTI KHAIRIL ANWAR
Avatar of anonymous
Anonymous
1yr
DHIA AZEEM BINTI KHAIRIL ANWAR
2017289438
Mohammad Syakirin Lubis Bin Mashuda
Avatar of anonymous
Anonymous
1yr
Mohammad Syakirin Lubis Bin Mashuda
assignment function
Avatar of Aisyah Ahmad
Aisyah Ahmad
1yr
assignment function
Masniyati bt Ahmad Saufi
Avatar of anonymous
Anonymous
1yr
Masniyati bt Ahmad Saufi
2017451788
Assignment individual
Avatar of anonymous
Anonymous
1yr
Assignment individual

//NAME		: SHAZARINA BINTI SHAHAR
//STUDENT ID	: 2017451514
//CLASS		: A4CS1432B
//LECTURER'S NAME: MADAM SHAHIRAH BINTI MOHAMED HATIM

#include
#include
using namespace std;

int a_drop, two_drop, three_drop;
float sales, commission, bonus;

float calTotalSales(int, int, int);
float calCommission(int, int, int);
float calBonus(float);
void printSlip(float,float);

int main()
{
	int id;
	char name[30];
	
	cout<<"\n *************************";
	cout<<"\n        WELCOME TO        ";
	cout<<"\n    DROP DROP PERFUME     ";
	cout<<"\n *************************";
	cout<<"NAME: ";
	cin.getline(name,29);
	cout<<"MEMBER ID: ";
	cin>>id;
	cout<<"\nPlease enter number of bottles sold for A Drop: ";
	cin>>a_drop;
	cout<<"\nPlease enter number of bottles sold for Two Drop: ";
	cin>>two_drop;
	cout<<"\nPlease enter number of bottles sold for Three Drop: ";
	cin>>three_drop;
  
	sales = calTotalSales(a_drop,two_drop,three_drop);
  
	cout<<"\nTotal Sales: RM "< 0 && sales <= 500)
      		total_bonus = 0;
    	else if(sales > 500 && sales <= 1500)
      		total_bonus = 200.00;
    	else 
      		total_bonus = 300.00;
      
   	cout.setf(ios::fixed);
   	cout.setf(ios::showpoint);
	cout.precision(2);
      
   	return total_bonus;
}
     
void printSlip(float commission, float bonus)
{
   	float income;
      
   	income = commission + bonus;
    
   	cout.setf(ios::fixed);
	cout.setf(ios::showpoint);
	cout.precision(2);
      
   	cout<<"\n\nTotal Income:RM"<
#include
#include
using namespace std;

void calCircleArea();
void calRectangularArea();
void calCirclePerimeter();
void calRectangularPerimeter();
void calSphereVol();
void calBoxVol();

int main()
{
	
	char choice[5];
	
	cout<<"Enter CA to calculate the area of a circle\n";
	cout<<"Enter RA to calculate the area of a rectangular\n";
	cout<<"Enter CP to calculate the perimeter of a circle\n";
	cout<<"Enter RP to calculate the perimeter of a rectangular\n";
	cout<<"Enter SV to calculate the volume of a sphere\n";
	cout<<"Enter BV to calculate the volume of a box\n";
	cout<<"Enter your choice: ";
	cin.getline(choice,4);
	
	if(strcmp(choice,"CA")==0)
	   calCircleArea();
	   else if(strcmp(choice,"RA")==0)
	        calRectangularArea();
	        else if(strcmp(choice,"CP")==0)
	             calCirclePerimeter();
	             else if(strcmp(choice,"RP")==0)
	                  calRectangularPerimeter();
	                  else if(strcmp(choice,"SV")==0)
	                       calSphereVol();
	                       else if(strcmp(choice,"BV")==0)
	                            calBoxVol();
	   }

void calCircleArea()
{
	float radius, area;
	
	cout<<"Enter the radius: ";
	cin>>radius;
	
	area = pow(radius,2)*3.142;
	
	cout<<"The area is: "<>height;
	cout<<"Lenght: ";
	cin>>lenght;
	
	area = height*lenght;
	
	cout<<"The area is: "<>radius;
	
	perimeter = 2*3.142*radius;
	
	cout<<"The perimeter is: "<>height;
	cout<<"Lenght :";
	cin>>lenght;
	
	perimeter = (2*height)+(2*lenght);
	
	cout<<"The  perimeterr is: "<>radius;
	
	volume = (4/3)*3.142*pow(radius,3);
	
	cout<<"The volume is: "<>height;
	cout<<"Lenght :";
	cin>>lenght;
	cout<<"Wide :";
	cin>>wide;
	
	volume = height*lenght*wide;
	
	cout<<"The volume is: "<

# data[].attributes.body
Mini Project
Semester: Dec 16 - M
Avatar of Shahirah Mohamed Hatim
Shahirah Mohamed Hatim
2yr
Semester: Dec 16 - March 17
Semester MAC 18 - JULY 18
Avatar of anonymous
Anonymous
1yr
Semester MAC 18 - JULY 18

add
Notes
Chapter 1
Avatar of Shahirah Mohamed Hatim
Shahirah Mohamed Hatim
2yr
Chapter 1

add
Source Code Sample
📎 Document
Avatar of Shahirah Mohamed Hatim
Shahirah Mohamed Hatim
2yr
Print numbers entered by user
Avatar of Shahirah Mohamed Hatim
Shahirah Mohamed Hatim
2yr
Print numbers entered by user
Add 2 numbers
Avatar of Shahirah Mohamed Hatim
Shahirah Mohamed Hatim
2yr
Add 2 numbers
Using int data type
Avatar of anonymous
Anonymous
2yr
Using int data type
Using floating point numbers
Avatar of anonymous
Anonymous
2yr
Using floating point numbers
PE 2.1 no1
Avatar of anonymous
Anonymous
2yr
PE 2.1 no1
📎 Document
Avatar of anonymous
Anonymous
2yr
Exe 1.2 no 8
Avatar of anonymous
Anonymous
1yr
Exe 1.2 no 8
Exe 1.2 no
Avatar of anonymous
Anonymous
1yr
Exe 1.2 no 
Exe 1.2 No
Avatar of anonymous
Anonymous
1yr
Exe 1.2 No 
Exe 1.2 no 10
Avatar of anonymous
Anonymous
1yr
Exe 1.2 no 10
Exe 1.2 No 6
Avatar of anonymous
Anonymous
1yr
Exe 1.2 No 6
Exe 1.2 No 5
Avatar of anonymous
Anonymous
1yr
Exe 1.2 No 5
📎 Document
Avatar of anonymous
Anonymous
1yr
📎 Document
Avatar of anonymous
Anonymous
1yr
📎 Document
Avatar of anonymous
Anonymous
1yr
Programming Exercise 3.1
Avatar of fizie mijie
fizie mijie
1yr
Programming Exercise 3.1
Question 9 (Palindrome)
Population
Avatar of anonymous
Anonymous
1yr
Population
day loop
Avatar of anonymous
Anonymous
1yr
day loop

add
A4CS1101C - Programming Exercise 2.1
Exercise 2.1
Avatar of anonymous
Anonymous
2yr
Exercise 2.1
NAMA: NUR UMAIRAH ZURAIMI
ID: 2017259096

Exercise 2.1 CSC128
Avatar of anonymous
Anonymous
2yr
Exercise 2.1 CSC128
NAME: NURAZMINA BINTI KAMARUL AZIM
ID: 2017259176
Exercise 2.1 CSC128
Avatar of anonymous
Anonymous
2yr
Exercise 2.1 CSC128
NAMA: 'ADLI ZAHIN BIN MUHAMMAD RUSLEE
ID: 2017254398
EXERCISE 2.1
Avatar of anonymous
Anonymous
2yr
EXERCISE 2.1
NAMA: NURHUSNINA HASYA BINTI KHAIRULRIZAL
ID: 2017242142
EXERCISE 2.1
Avatar of anonymous
Anonymous
2yr
EXERCISE 2.1
NAME:WAN NUR DALILA BINTI WAN ZAINUDDIN
ID:2017258992
GROUP:1C

Exercises 2.1
Avatar of anonymous
Anonymous
2yr
Exercises 2.1
NAME: NURUL HAMIZAH BINTI HASIM
ID: 2017262928
NAME: NURUL IZZA BINTI MOHD JOHARI
Avatar of Nurul Izza
Nurul Izza
2yr
NAME: NURUL IZZA BINTI MOHD JOHARI                    
ID: 2017254454
Name : NUR FARIZAH BINTI MOHD ZAINURI
Avatar of anonymous
Anonymous
2yr
Name : NUR FARIZAH BINTI MOHD ZAINURI
ID : 2017254726
Soalan 1 - 11
Avatar of Arfa Izzat
Arfa Izzat
2yr
Soalan 1 -  11
NAME : MUHAMMAD ARFA IZZAT BIN ANUAR
ID : 2017262504
PROGRAMMING EXERCISE 2.1
Avatar of anonymous
Anonymous
2yr
PROGRAMMING EXERCISE 2.1
NUR SYAMIMI AQILAH BINTI AHMAD SHAKRI / 2017258866
PE 2.
Avatar of anonymous
Anonymous
2yr
PE 2.
NAME : AMEERA IMAN BINTI HASSAN
ID : 2017232152
Programming Exercise 2.1
Avatar of anonymous
Anonymous
2yr
Programming Exercise 2.1
NAME: ANIS HANNANI BINTI RENALDI
ID: 2017254358
Programming exercise 2.1
Avatar of Sabryna
Sabryna
2yr
Programming exercise 2.1
NAME: NUR SABRYNA NABILA BT. MUSHAFIZ
ID: 2017241606
NAME
Avatar of anonymous
Anonymous
2yr
NAME
NAME : NAZEYRA BT JAMALUDDIN
Avatar of anonymous
Anonymous
2yr
NAME : NAZEYRA BT JAMALUDDIN
NAME : NAZEYRA BT JAMALUDDIN
Avatar of anonymous
Anonymous
2yr
NAME : NAZEYRA BT JAMALUDDIN
ID:2017254216
NAME : NAZEYRA BT JAMALUDDIN
Avatar of anonymous
Anonymous
2yr
NAME : NAZEYRA BT JAMALUDDIN
NAME : NAZEYRA BT JAMALUDDIN
Avatar of anonymous
Anonymous
2yr
NAME : NAZEYRA BT JAMALUDDIN
ID
NAME : NAZEYRA BT JAMALUDDIN
Avatar of anonymous
Anonymous
2yr
NAME : NAZEYRA BT JAMALUDDIN
ID:
NAME : NAZEYRA BT JAMALUDDIN
Avatar of anonymous
Anonymous
2yr
NAME : NAZEYRA BT JAMALUDDIN
ID:2017254216
SITI SARAH BINTI DAUD
Avatar of anonymous
Anonymous
2yr
SITI SARAH BINTI DAUD
ID : 2017241478
NUR KHAIRUNNISA BINTI MOHD AZMI
Avatar of Nur Khairunnisa Mohd Azmi
Nur Khairunnisa Mohd Azmi
2yr
NUR KHAIRUNNISA BINTI MOHD AZMI
2017233124
AINA NUR NADZIRAH BINTI KHAIRULNUWAR
Avatar of anonymous
Anonymous
2yr
AINA NUR NADZIRAH BINTI KHAIRULNUWAR
ID: 2017259188
exercises 2.1
Avatar of anonymous
Anonymous
2yr
exercises 2.1
NUR AQILAH BT MOHD SHAH BAKRI
ID : 2017232986
Mohamad Nornazmi bin Mohd Noor
Avatar of anonymous
Anonymous
2yr
Mohamad Nornazmi bin Mohd Noor
M
Avatar of anonymous
Anonymous
2yr
M
Mohamad Norna
Avatar of anonymous
Anonymous
2yr
Mohamad Norna
Mohamad Nornazmi bin Mohd Nooe
Avatar of anonymous
Anonymous
2yr
Mohamad Nornazmi bin Mohd Nooe
ID = 2017259316
NURUL IZLEEN BINTI RAZMI
Avatar of anonymous
Anonymous
2yr
NURUL IZLEEN BINTI RAZMI
ID: 2017233258
EXERCISE 2.1
PUTERI SYAIDATUL ILHAM BT ARIFFIN
Avatar of anonymous
Anonymous
2yr
PUTERI SYAIDATUL ILHAM BT ARIFFIN
ID: 2017216856
E
Muhammad Azfar bin Mohammad Zamry
Avatar of anonymous
Anonymous
2yr
Muhammad Azfar bin Mohammad Zamry
Assignment csc128
matriks: 2017254552

Exercise 2.1
Avatar of anonymous
Anonymous
2yr
Exercise 2.1
AZ-ZARITH HUDA SAMSUDDIN
2017241216
MUHAMMAD AZLAN BIN AB AZIZ (2017258854)
Avatar of anonymous
Anonymous
2yr
MUHAMMAD AZLAN BIN AB AZIZ (2017258854)
MUHAMMAD UWAIS TAQIY BIN ZULKHAIR
Avatar of anonymous
Anonymous
2yr
MUHAMMAD UWAIS TAQIY BIN ZULKHAIR 
ID: 2017259036
MOHAMAD RAFFIQ BIN HAMZAH
Avatar of anonymous
Anonymous
2yr
MOHAMAD RAFFIQ BIN HAMZAH
ID: 2017224306
NAME : NURHANIZ BINTI MOHD. ROSLI
Avatar of anonymous
Anonymous
2yr
NAME : NURHANIZ BINTI MOHD. ROSLI
ID: 2017254588
SARAH SHAFIQAH BINTI MOHD SHAIB
Avatar of anonymous
Anonymous
2yr
SARAH SHAFIQAH BINTI MOHD SHAIB
2017232894
NAME: MUHAMMAD IRFAN BIN ZAHARUDDIN
Avatar of Muhammad Irfan
Muhammad Irfan
2yr
NAME: MUHAMMAD IRFAN BIN ZAHARUDDIN
ID: 2017242086
SYAZA NASYIRA BT SHAMSUL AZMI
Avatar of anonymous
Anonymous
2yr
SYAZA NASYIRA BT SHAMSUL AZMI 
ID : 
2017254566
CSC Programming Assignment
Avatar of anonymous
Anonymous
1yr
CSC Programming Assignment

add
CS1101C - Project Source Code
Flight Ticket Management
Avatar of anonymous
Anonymous
1yr
Flight Ticket Management
SITI SARAH BINTI DAUD ( 2017241478 )
NUR FARIZAH BINTI MOHD ZAINURI ( 2017254726 )
//                NUR AQILAH BINTI MOHD SHAH BAKRI ( 2017232986 )
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan (2017
Handphone Service Ce
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre 
Kosong
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan (
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan (2017232152
h
Avatar of anonymous
Anonymous
1yr
h
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan 
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan (2017232152)
Nurhusnina Hasya Bt Khairulrizal (2017242142)
Mohamad Raffiq Bin Hamzah (2017224306)
Handphone
Avatar of anonymous
Anonymous
1yr
Handphone 
Handphone Service
Avatar of anonymous
Anonymous
1yr
Handphone Service 
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Handphone Service Centre
Avatar of anonymous
Anonymous
1yr
Handphone Service Centre
Ameera Iman Bt Hassan (20172321
CAR SALES MANAGEMENT
Avatar of anonymous
Anonymous
1yr
CAR SALES MANAGEMENT
GROUP MEMBERS:
NURUL IZZA BINTI MOHD JOHARI (2017254454)
NURAZMINA BINTI KAMARUL AZIM (2017259176)
NUR UMAIRAH BINTI ZURAIMI (2017259096)
Clinic Management System
Avatar of anonymous
Anonymous
1yr
Clinic Management System
ANIS HANNANI BINTI RENALDI (2017254358)
NURHANIZ BINTI MOHD ROSLI (2017254588)
COMPUTER CLUB MANAGEMENT
Avatar of Nur Khairunnisa Mohd Azmi
Nur Khairunnisa Mohd Azmi
1yr
COMPUTER CLUB MANAGEMENT
NUR KHAIRUNNISA BINTI MOHD AZMI (2017233124)
NURUL IZLEEN BINTI RAZMI (2017233258)
PUTERI SYAIDATUL ILHAM BINTI ARIFFIN (2017216856)
MEDICAL RECORD MANAGEMENT
Avatar of anonymous
Anonymous
1yr
MEDICAL RECORD MANAGEMENT
GROUP MEMBERS:
NUR SYAMIMI AQILAH BT AHMAD SHAKRI (2017258866) 
AZ-ZARITH HUDA BINTI SAMSUDDIN (2017241216) 
NURUL HAMIZAH BINTI HASIM (2017262928)

BOOKSTORE MANAGEMENT SYSTEM
Avatar of anonymous
Anonymous
1yr
BOOKSTORE MANAGEMENT  SYSTEM
NAZEYRA BT JAMALUDDIN (2017254216)
SYAZA NASYIRA BT SHAMSUL AZMI (2017254566)
AINA NUR NADZIRAH BT KHAIRULANUWAR (2017259188) 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muham
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )

Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )

Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3.
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar( 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar 
 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar 
  
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar ( 
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar ( 2017262504 )
Hotel Management
Avatar of anonymous
Anonymous
1yr
Hotel Management 
1. Muhammad Azfar bin Mohammad ZAmry ( 2017254552 )
2. Mohamad Nornazmi bin Mohd Noor ( 2017259316 )
3. Muhammad Arfa Izzat bin Anuar ( 2017262504 )

add
CS1432B- Project Source Code
Library Management

# data[].attributes.body
2018636892

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;

int main()
{
	float price_person, discount, total_pay, receive;
	int no_of_people, count1, count2, count3;
	double respon;
	char name[40],cruise_category;
	const float gov_tax=0.05;
	const float serv_tax=0.06;

	
	cout<<"H!WELCOME TO MAWAR MERAH HOLIDAY CRUISE"<<endl;
	cout<<"Do you wish to start?"<<endl;
	cin>>respon;
	
	while (respon=='Y' || respon=='y')
	{
		cout<<"Enter your Cruise Category:";
		cout<<"1=Rose, 2=Orchird, 3=Tulip :";
		cin>>cruise_category;
		cout<<"Enter the no of people :"<<endl;
		cin>>no_of_people;
		
		if(cruise_category==1)
		
		cout<<"Cruise Rose"<<endl;
		price_person=500.00;
		total_pay=price_person*(no_of_people);
		cout<<"Your payment is :RM"<<total_pay;
	
	    if(total_pay>5000 &&total_pay<=10000)
	    {
	    	receive=total_pay-total_pay*( 0.10);
	    	cout<<"Total payment is :RM"<<receive<<endl;
		}
		
		else if(total_pay>=10000)
		{
			receive=total_pay-total_pay*( 0.15);
			cout<<"Total payment is:RM"<<receive<<endl;
		}
		
		else if(cruise_category==2)
		{
			cout<<"Cruise Orchird"<<endl;
			price_person=350.00;
			total_pay=price_person*(no_of_people);
			cout<<"Your payment is :RM"<<total_pay;
			
			if(total_pay>=5000 && total_pay<10000)
			{
				receive=total_pay-total_pay*(0.10);
				cout<<"Total payment is :RM"<<receive<<endl;
			}
			
			else if(total_pay>=10000)
			{
				receive=total_pay-total_pay*(0.15);
				cout<<"Total payment is:RM"<<receive<<endl;
			}
		}
		
		else if(cruise_category==3)
		{
			cout<<"Cruise Tulip"<<endl;
			price_person=200.00;
			total_pay=price_person*(no_of_people);
			cout<<"Your payment is :RM"<<total_pay;
			
				if(total_pay>=5000 && total_pay<10000)
			    {
				receive=total_pay-total_pay*( 0.10);
				cout<<"Total payment is :RM"<<receive<<endl;
			    }
			    
			    	else if(total_pay>=10000)
			        {
			       	receive=total_pay-total_pay*(0.15);
			    	cout<<"Total payment is:RM"<<receive<<endl;
		         	}
			}
			
			total_pay=receive+gov_tax+serv_tax;
			cout<<"Total payment : RM"<<total_pay;
			cout<<"Total customer for rose category="<<count1<<endl;
			cout<<"Total customer for orchird category="<<count2<<endl;
			cout<<"Total customer for tulip category="<<count3<<endl;
			
			if(count1>count2 && count1>count3)
			cout<<"the most preferred cruise category is rose. ";
			
			else if(count2>count1 && count2>count3)
			cout<<"the most preferred cruise category is orchird. ";
			
			else if(count3>count1 && count3>count2)
			cout<<"the most preferred cruise category is tulip. ";
			
			cout<<"total collection for mawarmerah holiday cruise = RM"<<total_pay;
			
			return 0;
			
			
	}
}

# data[].attributes.body
assignment 2

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;

int main()
{
	int numCust,rose=0,orchid=0,tulip=0;
	float totPayment,discPrice,govTax,serviceTax,price,totalcollection;
	char category,max,answer;

	
	cout<<"\n*************************************";
	cout<<"\nWelcome To MawarMerah Holiday Cruise";
	
	cout<<"\nDo you wish to start processing ? Y-Yes/N-No: ";
	cin>>answer;
	
while(answer =='y' || answer =='Y')
{
	cout<<"\nCruise category";
    cout<<"\nR - Rose";
    cout<<"\nO - Orchid";
    cout<<"\nT - Tulip";
	
	cout<<"\nEnter Cruise category: ";
    cin>>category;
    
    cout<<"Enter number of people: ";
    cin>>numCust;

if(category=='R'||category=='r')
    {
    	price = 500.00;
    	
    	totPayment = numCust*price;
    	
		rose++;
		
	govTax =(0.05*totPayment);
    serviceTax =(0.06*totPayment);
    cout<<"\nPrice before discount:RM"<<(totPayment+govTax+serviceTax);

if(totPayment<=5000.00)

  {
		govTax =(0.05*totPayment);
        serviceTax =(0.06*totPayment);
	    cout<<"\nThe payment that customer has to pay :RM"<<(totPayment+govTax+serviceTax);
}
  	else if(totPayment>5000.00 && totPayment <=10000.00)
    {
		discPrice = totPayment -(totPayment*0.1);
        	govTax =(0.05*totPayment);
            serviceTax =(0.06*totPayment);
		cout<<"\nThe payment that customer has to pay :RM"<<(discPrice+govTax+serviceTax);
	}
		else if(totPayment>10000.00)
		{
				   		   
		discPrice = totPayment -(totPayment*0.15);
		 govTax =(0.05*totPayment);
         serviceTax =(0.06*totPayment);
	    
		cout<<"\nThe payment that customer has to pay :RM"<<(discPrice+govTax+serviceTax);
      }
    
		
}
else if(category=='o' ||category == 'O')
	{
		price = 350.00;
		
		totPayment = numCust*price;
		
		orchid++;
		
if(totPayment<=5000.00)
  {
	totPayment =totPayment +0;
	cout<<"\nThe payment that customer has to pay :RM"<<(totPayment+govTax+serviceTax);
}
  	else if(totPayment>5000.00 && totPayment <=10000.00)
    {
		discPrice = totPayment -(totPayment*0.1);
        
		govTax =(0.05*totPayment);
          
        serviceTax =(0.06*totPayment);
		
		cout<<"\nThe payment that customer has to pay :RM"<<(discPrice+govTax+serviceTax);
	}
		else if(totPayment>10000.00)
		{
				   		   
		discPrice = totPayment -(totPayment*0.15);
	
    	govTax =(0.05*totPayment);
          
        serviceTax =(0.06*totPayment);
        
         cout<<"\nThe payment that customer has to pay :RM"<<(discPrice+govTax+serviceTax);
      }
    
		cout<<"\nPrice before discount:RM"<<totPayment;
}
else if(category == 't'||category =='T')
	{
	
		price = 200.00;
	
		totPayment = numCust*price;
		
		tulip++;
	
if(totPayment<=5000.00)
  {
	totPayment =totPayment +0;
	cout<<"\nThe payment that customer has to pay :RM"<<(totPayment+govTax+serviceTax);
}
  	else if(totPayment>5000.00 && totPayment <=10000.00)
    {
		discPrice = totPayment -(totPayment*0.1);
        
		govTax =(0.05*totPayment);
          
        serviceTax =(0.06*totPayment);
		
		cout<<"\nThe payment that customer has to pay :RM"<<(discPrice+govTax+serviceTax);
	}
		else if(totPayment>10000.00)
		{
				   		   
		discPrice = totPayment -(totPayment*0.15);
	
    	govTax =(0.05*totPayment);
          
        serviceTax =(0.06*totPayment);
        
         cout<<"\nThe payment that customer has to pay :RM"<<(discPrice+govTax+serviceTax);
      }
    
		cout<<"\nPrice before discount:RM"<<totPayment;		
			
	
}
  if (rose>orchid && rose>tulip)
       max=rose;
     
        else if(orchid>rose && orchid > tulip)
        max=orchid;
        
             else if(tulip>rose && tulip> orchid)
             max=tulip;
     
    
    cout<<"\nDo you wish to continue? (Y/y- yes or N/n- no): ";
    cin>>answer;
}
   cout<<"TOTAL NUMBER OF CUSTOMER FOR CATEGORY:"<<endl;
   cout<<"ROSE: "<<rose<<endl;
   cout<<"ORCHID: "<<orchid<<endl;
   cout<<"TULIP: "<<tulip<<endl;
   
   cout<<"The most preferred cruise is: "<<max<<endl;
   
   cout<<"Total collection for MawarMerah Holiday Cruise is:RM "<<(discPrice+govTax+serviceTax+totPayment);
   

return 0;   
}








	
    
																

# data[].attributes.headline
PUTERI EREENA SHAFIRA BINTI MUSTAFA || 2018419158

# data[].attributes.subject
PUTERI EREENA SHAFIRA BINTI MUSTAFA || 2018419158

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	char type_of_cruise = 'R';'O';'T';
	char respond = 'Y' ;
	int num_passengers, sum;
	float cust_fee, total_fee;
	const float service_tax = 0.06;
	const float goverment_tax = 0.05;
	int countR = 0;
	int countO = 0;
	int countT = 0;
	
	cout<< "!!!WELCOME TO MAWARMERAH HOLIDAY CRUISE ONLINE TICKET WEBSITE!!!"<<endl;
	cout<< "R is code for Rose Cruise."<<endl;
	cout<< "O is code for Orchid Cruise."<<endl;
	cout<< "T is code for Tulip Cruise."<<endl;
	
	
	while(respond == 'Y')
	{
		cout<< "Enter the code of cruise:"<<endl;
		cin>>type_of_cruise;
		cout<< "Number of passenger:"<<endl;
		cin>>num_passengers;
	
		if(type_of_cruise=='R')
		{
			cust_fee = num_passengers * 500.00;
			cout<< "Fee = RM "<<cust_fee<<endl;
			
		countR++;
		}
		
		else if(type_of_cruise=='O')
		{
			cust_fee = num_passengers * 350.00;
			cout<< "Fee = RM "<<cust_fee<<endl;
			
		countO++;
		}
		
		else if(type_of_cruise=='T')
		{
			cust_fee = num_passengers * 200.00;
			cout<< "Fee = RM "<<cust_fee<<endl;
			
		countT++;
		}
	
			else if(cust_fee>=5000.00 && cust_fee<10000.00)
			{
				cust_fee = cust_fee - (0.10 * cust_fee);
				total_fee = cust_fee + (goverment_tax*cust_fee) + (service_tax*cust_fee);
				cout<< "Total fee = RM "<<total_fee<<endl;
			}
			else if(cust_fee>=10000.00)
			{
				cust_fee = cust_fee - (0.15 * cust_fee);
				total_fee = cust_fee - (0.15*cust_fee) + (goverment_tax*cust_fee) + (service_tax*cust_fee);
					cout<< "Total fee = RM "<<total_fee<<endl;
			}
			
		cout<< "do you wish to continue? Y/N = "<<endl;
		cin>>respond;
	}
	
	sum += total_fee;
	
	cout<<"total customer for rose catogory = "<<countR<<endl;
	cout<<"total customer for orchid catagory ="<<countO<<endl;
	cout<<"total customer for tulip category = "<<countT<<endl;
			
	if(countR>countO && countR>countT)
		cout<<"the most preferred cruise category is rose.";
			
	else if(countO>countR&& countO>countT)
		cout<<"the most preferred cruise category is orchid.";
			
	else if(countT>countR && countT>countO)
		cout<<"the most preferred cruise category is tulip.";
			
	cout<<" total collection for MAWARMERAH HOLIDAY CRUISE = RM "<<sum;
	
	return 0;
}
		

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;

int main()
{
	float price_person, discount, total_pay,receive;
	int no_of_people, count, count1, count2;
	double respon;
	char name[40], cruise_category;
	const float gov_tax = 0.05;
	const float serv_tax = 0.06;
	
	cout<<"HI! WELCOME TO MAWAR MERAH HOLIDAY CRUISE "<<endl;
	
	cout<<"Do you wish to start ?"<<endl;
	cin>>respon;
	
	while(respon == 'Y' || respon == 'y' )
	{
	cout<<"Enter your Cruise Category :";
	cout<<"1=Rose, 2=Orchid, 3=Tulip ";
	cin>>cruise_category;
	cout<<"Enter the no of people :"<<endl;
	cin>>no_of_people;
	

	
	
		if(cruise_category ==1)
		
		cout<<"Cruise Rose"<<endl;
		price_person = 500.00;
		total_pay = price_person*(no_of_people);
		cout<<" Your payment is : RM"<<total_pay;
		
			if(total_pay > 5000 && total_pay <= 10000)
			{
				receive = total_pay - total_pay*(0.10);
				cout<<"Total payment is : RM"<<receive<<endl;
			}
			else if(total_pay >= 10000)
			{
				receive = total_pay - total_pay*(0.15);	
				cout<<"Total payment is : RM"<<receive<<endl;	
			}	
			
	
	else if(cruise_category ==2)
	{
		cout<<"Cruise Orchid"<<endl;
		price_person = 350.00;
		total_pay = price_person*(no_of_people);
		cout<<" Your payment is : RM"<<total_pay;
		
			if(total_pay >= 5000 && total_pay <10000)
			{
				receive = total_pay - total_pay*(0.10);
				cout<<"Total payment is : RM"<<receive<<endl;
			}
			else if(total_pay >= 10000);
			{
				receive = total_pay - total_pay*(0.15);	
				cout<<"Total payment is : RM"<<receive<<endl;	
			}	
	}

		
	else if(cruise_category ==3)
	{
		cout<<"Cruise Tulip"<<endl;
		price_person = 200.00;
		total_pay = price_person*(no_of_people);
		cout<<" Your payment is  : RM"<<total_pay;
		
		if(total_pay >= 5000 && total_pay <10000)
			{
				receive = total_pay - total_pay*(0.10);
				cout<<"Total payment is : RM"<<receive<<endl;
			}
			else if(total_pay >= 10000)
			{
				receive = total_pay - total_pay*(0.15);	
				cout<<"Total payment is : RM"<<receive<<endl;	
			}	
			
	}
	total_pay = receive + gov_tax + serv_tax;
	cout<<"Total payment : RM" <<total_pay;
	
	cout<<"total customer for rose catogory = "<<count<<endl;
			cout<<"total customer for orchid catagory ="<<count1<<endl;
			cout<<"total customer for tulip category = "<<count2<<endl;
			
			if(count>count1 && count>count2)
			cout<<"the most preferred cruise category is rose.";
			
			else if(count1>count&& count1>count2)
			cout<<"the most preferred cruise category is orchid.";
			
			else if(count2>count && count2>count1)
			cout<<"the most preferred cruise category is tulip.";
			
			cout<<" total collection for mawarmerah holiday cruise = RM "<<total_pay;
			
	return 0;
}
}

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	int numbpeople , price,  rose = 0 , orchid = 0 , tulip = 0 ;
 	float governmenttax, servicetax, newtotalpayment, totalpayment, newtotal = 0 , totalcollection = 0 ;
 	char respond = 'y' , typeofcruise ;
 	
 	cout<<"***Welcome to MawarMerah Holiday Cruise***"<<endl;
 	
 	while (respond != 'n')
 	{
 		float totalpayment = 0 , totaldiscount = 0 ;
 		
 		cout<<"Please enter the type of cruise ( 'r' for rose, 'o' for orchid, 't' for tulip ) : ";
 		cin>>typeofcruise;
 		
 		cout<<"Please enter number of people  : ";
 		cin>>numbpeople;
 		
 		if ( typeofcruise == 'R' || typeofcruise == 'r' )
 		{
 		    price = 500 * numbpeople ;
			totalpayment = price + totalpayment ; 
			rose++;	 
		}
		else if ( typeofcruise == 'o' || typeofcruise == 'O' )
		{
			price = 350 * numbpeople ; 
			totalpayment = price + totalpayment ;
			orchid++;
		}	
		else if ( typeofcruise == 't' || typeofcruise == 'T' )
		{
			price = 200 * numbpeople ; 
			totalpayment = price + totalpayment ;
			tulip++;
		}
		
		if ( totalpayment > 5000 && totalpayment <= 10000)
		{
			totaldiscount = totalpayment * 0.10;
			totalpayment = totalpayment - totaldiscount ;
		}
		
		else if ( totalpayment > 10000 )
		{
			totaldiscount = totalpayment * 0.15;
			totalpayment = totalpayment - totaldiscount ;
		}
		
		cout<<"The total payment that you have to pay : RM "<<totalpayment<<endl;
		
		governmenttax = totalpayment * 0.05 ; 
		servicetax = totalpayment * 0.06 ; 
		newtotalpayment = totalpayment + governmenttax + servicetax ;
		
		newtotal = newtotal + newtotalpayment ; 
		
		cout<<"Do you wish want to continue this? (y-Yes or n-No) : ";
		cin>>respond;
		 
		
	}
	
		cout<<"The total number of rose category's customer is : "<<rose<<endl;
		cout<<"The total number of orchid category's customer is : "<<orchid<<endl;
		cout<<"The total number of tulip category's customer is : "<<tulip<<endl;
		
		totalcollection = newtotal; 
		
		if( rose > orchid && rose > tulip)
		cout<<"The most preferred type of cruise is : rose "<<endl;
		
		else if ( orchid > rose && orchid > tulip)
		cout<<"The most preferred type of cruise is : orchid "<<endl;
		
		else if ( tulip > rose && tulip > orchid )
		cout<<"The most preferred type of cruise is : tulip "<<endl;
		
		cout<<"The total collection for MawarMerah Holiday cruise : RM "<<totalcollection<<endl;
		
		return 0;
		
	
}

# data[].attributes.headline
Muhammad Luqman Amien Bin Mohammad Hidayat

# data[].attributes.subject
Muhammad Luqman Amien Bin Mohammad Hidayat

# data[].attributes.body
2018258066

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	int numPeople , price,  rose = 0 , orchid = 0 , tulip = 0 ;
 	float govTax, serviceTax, newTotalPayment, totalPayment, newTotal = 0 , totalCollection = 0 ;
 	char respon = 'y' , category ;
 	
 	while (respon != 'n')
 	{
 		float totalPayment = 0 , totalDiscount = 0 ;
 		
 		cout<<"Please enter cruise category ( 'r' for rose, 'o' for orchid, 't' for tulip ) : ";
 		cin>>category;
 		
 		cout<<"Please enter number of people : ";
 		cin>>numPeople;
 		
 		if ( category == 'R' || category == 'r' )
 		{
 			price = 500 * numPeople ;
			totalPayment = price + totalPayment ; 
			rose++;	 
		}
		else if ( category == 'o' || category == 'O' )
		{
			price = 350 * numPeople ; 
			totalPayment = price + totalPayment ;
			orchid++;
		}	
		else if ( category == 't' || category == 'T' )
		{
			price = 200 * numPeople ; 
			totalPayment = price + totalPayment ;
			tulip++;
		}
		
		if ( totalPayment > 5000 && totalPayment <= 10000)
		{
			totalDiscount = totalPayment * 0.10;
			totalPayment = totalPayment - totalDiscount ;
		}
		
		else if ( totalPayment > 10000 )
		{
			totalDiscount = totalPayment * 0.15;
			totalPayment = totalPayment - totalDiscount ;
		}
		
		cout<<"Total total payment that you have to pay is : RM "<<totalPayment<<endl;
		
		govTax = totalPayment * 0.05 ; 
		serviceTax = totalPayment * 0.06 ; 
		newTotalPayment = totalPayment + govTax + serviceTax ;
		
		newTotal = newTotal + newTotalPayment ; 
		
		cout<<"Do you want to continue? (y-Yes or n-No) : ";
		cin>>respon;
		 
		
	}
	
		cout<<"The total number of rose category's' customer is : "<<rose<<endl;
		cout<<"The total number of orchid category's customer is : "<<orchid<<endl;
		cout<<"The total number of tulip category's customer is : "<<tulip<<endl;
		
		totalCollection = newTotal ; 
		
		if( rose > orchid && rose > tulip)
		cout<<"The most preferred cruise category is : rose "<<endl;
		
		else if ( orchid > rose && orchid > tulip)
		cout<<"The most preferred cruise category is : orchid "<<endl;
		
		else if ( tulip > rose && tulip > orchid )
		cout<<"The most preferred cruise category is : tulip "<<endl;
		
		cout<<"TOTAL COLLECTION FOR MAWARMERAH HOLIDAY CRUISE IS : RM "<<totalCollection<<endl;
		
		return 0;
		
	
}

# data[].attributes.body
ASSIGNMENT 2

# data[].attributes.attachment_link.readable_text
//MUHAMMAD NAJMIE BIN SHAIFUL RAHMAN
//A4CS1102E
//ASSIGNMENT 2
#include<iostream>
using namespace std;

int main()
{
	char answer;
	char category;
	float totPrice,price,discount,totalPayment,totalCollect;
	const float governTax=0.05,serviceTax=0.06;
	int people;
	int countR=0;
	int countO=0;
	int countT=0;
	
	cout<<"       WELCOME TO MAWARMERAH HOLIDAY CRUISE       "<<endl;
	cout<<"BELOW ARE OUR CRUISE CATEGORY AND PRICE PER PERSON"<<endl;
	cout<<""<<endl;
	cout<<" __________________________________________ "<<endl;
	cout<<"|    Cruise Category | Price per person(RM)|"<<endl;
	cout<<"|         Rose       |        500.00       |"<<endl;
	cout<<"|         Orchid     |        350.00       |"<<endl;
	cout<<"|         Tulip      |        200.00       |"<<endl;
	cout<<"|__________________________________________ "<<endl;
	
	cout<<"Do you want to buy? y-yes/n-no :";
	cin>>answer;	
	while(answer=='Y' || answer=='y')
	{
		cout<<"Enter cruise category R or r=Rose/O or o=Orchid/T or t=Tulip:";
		cin>>category;
		
		if ( category=='R' || category =='r')
		{
			cout<<"Enter number of people :";
			cin>>people;
			price=500.00;
		    totPrice=people*price;
		    countR++;
	    }
		
		else if ( category =='O' || category =='o')
		{
			cout<<"Enter number of people :";
			cin>>people;
			price=350.00;
		    totPrice=people*price;
		    countO++;
	    }
		
		else if (category =='T' || category == 't')
		{
			cout<<"Enter number of people :";
			cin>>people;
			price=200.00;
		    totPrice=people*price;
		    countT++;
	    }
	    
	    else
	    {
	    	cout<<"Please enter the correct category!!!!"<<endl;
		}
	    cout<<"\nThe original price is :RM"<<totPrice<<endl;
			
	
	if(totPrice>5000.00)
	{
		totPrice=totPrice-(totPrice*0.10);
		cout<<"Price after discount : RM "<<totPrice<<endl;
	}
	
	else if (totPrice>10000.00)
	{
		totPrice=totPrice-(totPrice*0.15);
		cout<<"Price after discount : RM "<<totPrice<<endl;
	}
	
	totalPayment= totPrice + (totPrice*0.05) + (totPrice*0.06);
	cout<<"Total payment : RM "<<totalPayment<<endl;	
	totalCollect=totalCollect+totalPayment;
	
	cout<<"\nDo you want to buy others? y-yes/n-no :";
	cin>>answer;
    }
	
	cout<<"\nTotal number of customers for each cruise category:";
	cout<<"\nRose: "<<countR;
	cout<<"\nOrchid: "<<countO;
	cout<<"\nTulip: "<<countT;
	
	if (countR>countO && countR>countT)
	{
		cout<<"\nThe most preferred cruise category: ROSE ";
	}
	
	else if (countO>countR && countO>>countT)
	{
		cout<<"\nThe most preferred cruise category: ORCHID ";
	}
	
	else if (countT>countR && countT>countO)
	{
		cout<<"\nThe most preferred cruise category: TULIP ";
	}
	
	else if (countR==countT && countR>countT)
	{
		cout<<"\nThe most preferred cruise category : ROSE & ORCHID";
	}
	
	else if (countR==countT && countR>countO)
    {
    	cout<<"\nThe most preferred cruise category : ROSE & TULIP";
	}
	
	else if (countT==countO && countT>countR)
	{
		cout<<"\nThe most preferred cruise category : TULIP & ORCHID ";
	}
	
	else
	{ 
		cout<<"\nThe most preferred cruise category : THE THREE CATEGORY IS SAME";
	}
			
		cout<<"\nTotal collection for MawarMerah Holiday Cruise: RM "<<totalCollect;
	
	return 0;
}


# data[].attributes.body
2018241128

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	int numPeople,  rose = 0 , orchid = 0  , tulip = 0 ;
 	float price, govTax, serviceTax, newTotalPayment, totalPayment, newTotal , totalCollection  ;
 	char respon = 'y' , category ;
 	
 	cout<< "Welcome to MawarMerah Cruise" <<endl;
 	
 	while (respon != 'n')
 	{
 		float totalPayment = 0 , totalDiscount = 0 ;
 		
 		cout<<" Enter cruise category ( 'r' for rose, 'o' for orchid, 't' for tulip ) : ";
 		cin>>category;
 		
 		cout<<" Enter number of people : ";
 		cin>>numPeople;
 		
 		if ( category == 'R' || category == 'r' )
 		{
 			price = 500 * numPeople ;
			totalPayment = price + totalPayment ; 
			rose++;	 
		}
		else if ( category == 'o' || category == 'O' )
		{
			price = 350 * numPeople ; 
			totalPayment = price + totalPayment ;
			orchid++;
		}	
		else if ( category == 't' || category == 'T' )
		{
			price = 200 * numPeople ; 
			totalPayment = price + totalPayment ;
			tulip++;
		}
		
		if ( totalPayment > 5000 && totalPayment <= 10000)
		{
			totalDiscount = totalPayment * 0.10;
			totalPayment = totalPayment - totalDiscount ;
		}
		
		else if ( totalPayment > 10000 )
		{
			totalDiscount = totalPayment * 0.15;
			totalPayment = totalPayment - totalDiscount ;
		}
		
		cout<<"Total total payment that you have to pay is : RM "<<totalPayment<<endl;
		
		govTax = totalPayment * 0.05 ; 
		serviceTax = totalPayment * 0.06 ; 
		newTotalPayment = totalPayment + govTax + serviceTax ;
		
		newTotal = newTotal + newTotalPayment ; 
		
		cout<<"Do you want to continue? (y-Yes or n-No) : ";
		cin>>respon;
		 
		
	}
	
		cout<<"The total number of rose category's customer is : "<<rose<<endl;
		cout<<"The total number of orchid category's customer is : "<<orchid<<endl;
		cout<<"The total number of tulip category's customer is : "<<tulip<<endl;
		
		totalCollection = newTotal ; 
		
		if( 'r' > 'o' && 'r' > 't')
		cout<<"The most preferred cruise category is : rose "<<endl;
		
		else if ( 'o' > 'r' && 'o' > 't')
		cout<<"The most preferred cruise category is : orchid "<<endl;
		
		else if ( 't' > 'r' && 't' > 'o')
		cout<<"The most preferred cruise category is : tulip "<<endl;
		
		cout<<"Total collection for MawarMerah Holiday Cruise is : RM "<<totalCollection<<endl;
		
		return 0;
		
	
}

# data[].attributes.headline
Muhammad Ilmanuddin Bin Aznan  ( 2018411094 )

# data[].attributes.subject
Muhammad Ilmanuddin Bin Aznan  ( 2018411094 )

# data[].attributes.body
A4CS1432A - Assignment 2

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;

int main ()
{
	int nump , rose = 0 , orchid = 0 , tulip = 0 ;
	float price , gtax , stax , collect ;
	char category , respon;
	
	cout<<"Welcome to MawarMerah Holiday Cruise Programme "<<endl;
	
	cout<<"Cruise category : (Rose = r/R ,Orchid = o/O ,Tulip = t/T)"<<endl ;
	
	while (respon != 'n')
	{
		cout<<"Enter the cruise category : ";
		cin>>category;
		
		cout<<"Enter the number of people : ";
		cin>>nump;
		
	 if (category == 'R'|| category == 'r')	 
     {
	    price = 500*nump ;
	    rose = rose + nump;
	    
	    cout<<"The price before discount is : RM " <<price<<endl;
	    
	    if ( price >= 5000 && price < 10000 )
	    { price = price * 0.10 ; }
              
	    else if ( price >= 10000 )
        { price = price * 0.15 ; }
	    
	    gtax = price * 0.05 ;
	    stax = price * 0.06 ;
	    price = price + stax + gtax ;
	    collect = collect + price ;
	    cout<<"The payment need to pay is : RM "<<price<<endl;
	 }   
	 
	else if (category == 'O' || category == 'o')
	{
	     price = 350*nump ;
	     orchid = orchid + nump;
	     
	     cout<<"Price before discount : RM " <<price<<endl;
	     
	    if ( price >= 5000 && price < 10000 )
	    { price = price * 0.10 ; }
	    
        else if ( price >= 10000 )
        { price = price * 0.15 ; }
        
        gtax = price * 0.05 ;
	    stax = price * 0.06 ;
	    price = price + stax + gtax ;
	    collect = collect + price ;
	    cout<<"The payment need to pay is : RM "<<price<<endl;
	    
	    
    }
    
	else if (category == 'T' || category == 't')
	{
		 price = 200*nump ;
		 tulip = tulip + nump;
		 
		 cout<<"Price before discount : RM " <<price<<endl;
		 
	    if ( price >= 5000 && price < 10000 )
	    { price = price*0.10 ; }
	     
	    
        else if ( price >= 10000 )
        { price = price * 0.15 ; }
	 	
	    gtax = price * 0.05 ;
	    stax = price * 0.06 ;
	    price = price + stax + gtax ;
	    collect = collect + price ;
	    cout<<"The payment need to pay is : RM "<<price<<endl;	

    }
	 
	 cout<<"Do you want to continue?  (Yes = y or No = n) :" ;
	 cin>>respon ;

   }
	    
	    	


	cout<<"Total number of Rose cruise customers : "<<rose<<endl;
	cout<<"Total number of Orchid cruise customers : "<<orchid<<endl;
	cout<<"Total number of Tulip cruise customers : "<<tulip<<endl;
	
	if ( rose > orchid && rose > tulip )
	  {
	   cout<<"The most preferred cruise category is Rose "<<endl;
      }
	else if ( orchid > rose && orchid > tulip )
	  {
	   cout<<"The most preferred cruise category is Orchid "<<endl;
      }
	else if ( tulip > rose && tulip > orchid )
	  {
	   cout<<"The most preferred cruise category is Tulip "<<endl;
      }
   
	      
	cout<<"Total collection for MawarMerah Holiday Cruise : RM "<<collect<<endl;
    
	
	return 0 ;
	
}


# data[].attributes.body
A4CS1102E

Assignment 2

# data[].attributes.attachment_link.readable_text
//Muhammad Farhan Bin Nordin
//A4CS1102E
//Assignment2
//2018278726
#include<iostream>
using namespace std;

int main()
{
	char cruise;
	int people;
	int countRose=0;
	int countOrchid=0;
	int countTulip=0;
	char respond;
	float price,total_payment,payment, discount,total_collection;
	const float gov_tax=0.05, service_tax=0.06;
	
	
	cout<<"--------------Welcome To Mawar Merah Holiday Cruise---------------"<<endl;
	cout<<"Do you wish to start processing?"<<endl;
	cin>>respond;
	
	while(respond=='y' || respond=='Y')
	{
	
		
		
		cout<<"Enter cruise category,'R'for rose,'0'for orchid,'T'for tulip :"<<endl;
		cin>>cruise;
		
		if(cruise=='r' || cruise=='R')
		{
			cout<<"Enter the number of people:"<<endl;
	        cin>>people;
			
			payment=people*500.00;
			
			countRose++;
		
	
			
	   }
		else if(cruise=='o' || cruise=='O')
		{
			cout<<"Enter the number of people:"<<endl;
	        cin>>people;
			payment=people*350.00;
			
			countOrchid++;

			
			
			
		}
		
		else if(cruise=='t' || cruise=='T')
		{
			cout<<"Enter the number of people:"<<endl;
	        cin>>people;
			
			payment=people*200.00;
			
			countTulip++;
		

		
				
		}
		
		cout<<"The payment is:RM"<<payment;
		
		
		{
		
		if(payment>5000.00)
				{
					payment=payment-(payment*0.10);
					cout<<"The price after discount : RM "<<payment<<endl;;
				}
	    else if (payment>10000.00)
				{
					payment=payment-(payment*0.15);
					cout<<"The price after discount:RM "<<payment<<endl;
				}
				total_payment=payment+ (payment*gov_tax)+(payment*service_tax);
				cout<<"The total ammount  : RM "<<total_payment<<endl;
			}
			total_collection=total_collection+total_payment;
			
			cout<<"Do you want to continue this session? ";
			cin>>respond;
	}
			
			
		cout<<"The total number of customers for each category:"<<endl;
		cout<<"The total number of Rose category: "<<countRose<<endl;
		cout<<"The total number of Orchid category: "<<countOrchid<<endl;
		cout<<"The total number of Tulip category: "<<countTulip<<endl;
		
		
		
		
		if (countRose>countOrchid && countRose>countTulip)
			{
					cout<<"The most preferred cruise category is Rose "<<endl;
			}
		else if (countOrchid>countRose && countOrchid>>countTulip)
			{
				cout<<"The most preferred cruise category is Orchid "<<endl;
			}
		else if (countTulip>countRose && countTulip>countOrchid)
			{
				cout<<"The most preferred cruise category is Tulip "<<endl;

			}
		else
			{ 
			cout<<"The amount of Rose,Orchid and Tulip are equal"<<endl;
			}
			
		cout<<" The total collection for Mawar Merah Holiday Cruise: RM "<<total_collection;
				
			
		
		
		
		
		
		
		
		return 0;
		
	
}



# data[].attributes.body
(2018243954)

# data[].attributes.body
Muhammad Harith Bin Mokhtar(2018698214)

CS1102E

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	char answer,category;
	int num,categoryR=0,categoryO=0,categoryT=0,max=0;
	float price,totalPrice,discount,newPrice, totalCollection =0;
	
	cout<<"\t Welcome to MawarMerah Holiday Cruise "<<endl<<endl;
	cout<<" Cruise category " <<"         "<<"Price per person (RM)" <<endl ;
	cout<< "R = Rose " <<"                    "<<"500.00" <<endl;
	cout<< "O = Orchid " <<"                  "<<"350.00" <<endl;
	cout<< "T = Tulip " <<"                   "<<"200.00" <<endl;
	cout<< "-----------------------------------------------------"<<endl<<endl;
	
	cout<<" Do you want to continue ? (Y/N) : ";
	cin>>answer;
	
	while( answer=='Y' || answer=='y')
	{
		cout<<" Please enter the cruise category (R/O/T) : ";
		cin>>category;
		
		cout<<" Please enter the number of people : ";
		cin>>num;
		
		{
			if(category=='R' || category=='r')
			{
				price=500.00;
				categoryR=categoryR + num;	
			}
			
			else if(category=='O'||category=='o' )
			{
				price=350.00;
				categoryO=categoryO + num;
			}	
			
			else 
			{
				price=200.00;
				categoryT=categoryT + num;
			}
		}
		
	totalPrice=price * num ;
	
		if (totalPrice>=5000.00 && totalPrice<10000.00)
		{
			discount = totalPrice *0.10;
			
		}
		else if(totalPrice>=10000.00)
		{
			discount = totalPrice * 0.15;
		}
	
		newPrice = totalPrice - (totalPrice - discount)*0.11;
		
		cout << " Total price after discount : RM" <<newPrice <<endl;
		cout << endl;
		totalCollection = totalCollection + newPrice ;
		
		cout << " Do you wish to continue (Y/N) : " ;
		cin >> answer ;
		
	}
		cout <<endl;
		cout << "--------------------------------------------------" <<endl ;
		cout<<" Total number of customer for Rose Cruise is : "<<categoryR<<endl;
		cout<<" Total number of customer for Orchid Cruise is : "<<categoryO<<endl;
		cout<<" Total Number of customer for Tulip cruise is : "<<categoryT<<endl;
		
		if(categoryR>max)
		{
			max=categoryR;
		}
		else if(categoryO>max)
		{
			max=categoryO;
		}
		else if(categoryT>max)
		{
			max=categoryT;
		}
		
		cout<<" The most preferred cruise category is " <<max <<" which is " <<category<<endl;
		cout <<" Total collection for MawarMerah Holiday Cruise is : RM "<<totalCollection<<endl;
	
	
return 0;
} 


# data[].attributes.attachment_link.readable_text
//Muhammad Ikmal Bin Zulkipli
//CS143 2A
//2018202258

#include <iostream>
using namespace std;
int main ()
{
	int crs, per=0, rose=0, orchid=0, tulip=0;
	float price, tax=0.06*0.05, total,aftrDisc, collection, gross;
	char respond = 'y';
	
	cout<<"-WELCOME TO MAWARMERAH HOLIDAY CRUISE-"<<endl;
	
	cout<<"Service tax charged :6%"<<endl;
	cout<<"Government tax charged :5%"<<endl;
	cout<<"Payment above 5000 will receive 10% discount"<<endl;
	cout<<"Payment above 10000 will receive 15% discount"<<endl;
	
	cout<<"Price per person for Rose :RM500.00"<<endl;
	cout<<"Price per person for Orchid :RM350.00"<<endl;
	cout<<"Price per person for Tulip :RM200.00"<<endl;
	
	cout<<"Rose=1 Orchid=2 Tulip=3"<<endl;
	
	while(respond != 'n')
	{
		cout<<"Select your cruise :";
		cin>>crs;
		cout<<"Enter number of people:";
		cin>>per;
		
	if(crs == 1)
	{
		price = per * 500;	
		
		if(price <= 5000)
		{
			gross= price * tax;
			total=price + gross;
		}
		else if(price >5000 && price <= 10000)
		{
			aftrDisc = price * 0.9;
			gross = aftrDisc * tax;
			total=price + gross;

		}
		else if(price > 10000)
		{
			aftrDisc = price * 0.85;
			gross = aftrDisc * tax;
			total=price + gross;
		}
		rose += per;
	}
			
	if(crs == 2)
	{
		price = per * 350;	
		
		if(price <= 5000)
		{
			gross= price * tax;
			total=price + gross;
		}
		else if(price >5000 && price <= 10000)
		{
			aftrDisc = price * 0.9;
			gross = aftrDisc * tax;
			total=price + gross;
		}
		else if(price > 10000)
		{
			aftrDisc = price * 0.85;
			gross = aftrDisc * tax;
			total=price + gross;
		}
		orchid += per;
	}
	
			
	if(crs == 3)
	{
		price = per * 200;	
		 
		if(price <= 5000)
		{
			gross= price * tax;
			total=price + gross;
		}
		else if(price >5000 && price <= 10000)
		{
			aftrDisc = price * 0.9;
			gross = aftrDisc * tax;
			total=price + gross;
		}
		else if(price > 10000)
		{
			aftrDisc = price * 0.85;
			gross = aftrDisc * tax;
			total=price + gross;
		}
		tulip += per;
	}
	
	collection += total;
	cout<<"Total payment :RM"<<total<<endl;
	cout<<"Do you wish to continue? (y/n):";
	cin>>respond;
	}
	cout<<endl;
	cout<<"total collection for MawarMerah Holiday Cruise :RM"<<collection<<endl;
	
	cout<<"Total customer for Rose cruise:"<<rose<<endl;
	cout<<"Total customer for Orchid cruise:"<<orchid<<endl;
	cout<<"Total customer for Tulip cruise:"<<tulip<<endl;
	
	if(rose > orchid && tulip < rose)
	{
		cout<<"Most preferred cruise: Rose cruise"<<endl;
	}
	
		if(orchid > rose && tulip < orchid)
	{
		cout<<"Most preferred cruise: Orchid cruise"<<endl;
	}
	
		if(tulip > rose && orchid < tulip)
	{
		cout<<"Most preferred cruise: Tulip cruise"<<endl;
	}
	
	return 0;
}

# data[].attributes.attachment_link.readable_text
// CSC128: Assignment 2
//Name: Raihanah Binti Rosle
//Group: A4CS1432A

#include <iostream>

using namespace std;

int main()
{
	int numPeople = 0, cruise, rose = 0, orchid = 0, tulip = 0;
	float govTax = 0.05, serTax = 0.06, disc, aftDisc, payment, totalPayment = 0, tax, price, sum = 0, totalCollection = 0;
	char ans = 'y';
	
	cout<<"WELCOME TO MAWARMERAH HOLIDAY CRUISE!"<<endl;
	
	cout<<"Service tax is 6%"<<endl;
	cout<<"Government tax is 5%"<<endl;
	cout<<"Total payment more than RM5000 will receive 10% discount"<<endl;
	cout<<"Total payment more than RM10000 will receive 15% discount"<<endl;
	
	cout<<"Price per person for cruise Rose is RM 500.00"<<endl;
	cout<<"Price per person for cruise Orchid is RM 350.00"<<endl;
	cout<<"Price per person for cruise Tulip is RM 200.00"<<endl;
		
	cout<<"1 is code for Rose"<<endl;
	cout<<"2 is code for Orchid"<<endl;
	cout<<"3 is code for Tulip"<<endl;
	
	while(ans != 'n')
	{
	
		cout<<"Enter your cruise: ";
		cin>>cruise;
		cout<<"Enter number of people: ";
		cin>>numPeople;
	
	if (cruise == 1) 
	{		
		price = numPeople * 500.00;
		
		if (price < 5000.00)
		{
			tax = price * 0.05 * 0.06;
			totalPayment = price + tax;
		}
		else if (price >= 5000.00 && price < 10000.00)
		{
			disc = price * 0.1;
			aftDisc = price - disc;
			tax = aftDisc * 0.05 * 0.06;
			totalPayment = aftDisc + tax; 			
		}
		
		else if (price >= 10000.00)
		{
			disc = price * 0.15;
			aftDisc = price - disc;
			tax = aftDisc * 0.05 * 0.06;
			totalPayment = aftDisc + tax;
		}
		
		rose += numPeople;
	}
	
	else if (cruise == 2)
	{
		price = numPeople * 350.00;
		
		if (price < 5000.00)
		{
			tax = price * 0.05 * 0.06;
			totalPayment = price + tax;
		}
		else if (price >= 5000.00 && price < 10000.00)
		{
			disc = price * 0.1;
			aftDisc = price - disc;
			tax = aftDisc * 0.05 * 0.06;
			totalPayment = aftDisc + tax; 			
		}
		
		else if (price >= 10000.00)
		{
			disc = price * 0.15;
			aftDisc = price - disc;
			tax = aftDisc * 0.05 * 0.06;
			totalPayment = aftDisc + tax;
		}
		
		orchid += numPeople;
	}
	
		else if (cruise == 3)
	{
		price = numPeople * 200.00;
		
		if (price < 5000.00)
		{
			tax = price * 0.05 * 0.06;
			totalPayment = price + tax;
		}
		else if (price >= 5000.00 && price < 10000.00)
		{
			disc = price * 0.1;
			aftDisc = price - disc;
			tax = aftDisc * 0.05 * 0.06;
			totalPayment = aftDisc + tax; 			
		}
		
		else if (price >= 10000.00)
		{
			disc = price * 0.15;
			aftDisc = price - disc;
			tax = aftDisc * 0.05 * 0.06;
			totalPayment = aftDisc + tax;
		}
		
		tulip += numPeople;
	}
	
	totalCollection += totalPayment;
	
	cout<<"Your total payment is:RM "<<totalPayment<<endl;
	cout<<"Do you wish to continue? (enter y/n): ";
	cin>>ans;
	}
	
	cout<<endl;
	
	cout<<"Total collection for Mawarmerah Holiday Cruise is:RM "<<totalCollection<<endl;
	
	cout<<"Total customers for cruise Rose is: "<<rose<<endl;
	cout<<"Total customers for cruise Orchid is: "<<orchid<<endl;
	cout<<"Total customers for cruise Tulip is: "<<tulip<<endl;
	
	if ( rose > orchid && tulip < rose)
	{
		cout<<"The most preferred cruise is: Cruise Rose"<<endl;
	}
	
	else if ( orchid > rose && tulip < orchid )
	{
		cout<<"The most preferred cruise is: Cruise Orchid"<<endl;
	}
	
	else if ( tulip > rose && orchid < tulip )
	{
		cout<<"The most preferred cruise is: Cruise Tulip"<<endl;
	}
	
	return 0;
	
}

# data[].attributes.body
2018215108

# data[].attributes.attachment_link.readable_text
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
	char answer, category, max [15];
	int numpeople, tulip=0, orchid=0, rose=0;
	float price, totalcollection, govtax, servtax, discount, totalprice;
	
	cout<<"***WELCOME TO MawarMerah HOLIDAY CRUISE***"<<endl;
	cout<<"|           ~CRUISE CATEGORY~              |"<<endl;
	cout<<"| ROSE = RM500.0 (PER PERSON)              |"<<endl;
	cout<<"| ORCHID = RM350.00 (PER PERSON)           |"<<endl;
	cout<<"| TULIP = RM200.00 (PER PERSON)            |"<<endl;
	
	cout<<"Do you wish to start? (Y/y- yes or N/n- no): ";
	cin>>answer;
	
while (answer == 'y' || answer =='Y')
{
	cout<<"Please choose the cruise category [R/r- Rose] / [O/o- Orchid] / [T/t- Tulip]: ";
	cin>>category;
	
	cout<<"Please enter number of people: ";
	cin>>numpeople;
	
	if(category == 'R'|| category == 'r')
	
{
    price = numpeople * 500;
    govtax = price * 0.1;
    servtax = price * 0.15;
    price = price + govtax + servtax;
    rose++;
    
    cout<<"Original price :RM "<<price<<endl;
    
    
     if(price>= 5000 && price <10000)
{
	      discount = price * 0.1;
}

        else if(price>= 10000)
{
			   discount = price *0.15;
}
            
            else if (price< 5000)
{
                discount = price + 0;
}
    price = price - discount;              
    totalcollection = totalcollection + price;
    
    cout<<"Total payment:RM "<<price<<endl;
    
}
   else if(category == 'O' || category =='o')
{
	price = numpeople * 350 ;
    govtax = price * 0.1;
    servtax = price * 0.15;
    price = price + govtax + servtax;
    orchid++;
    
    
    cout<<"Original price:RM "<<price<<endl;
    
    
     if(price>= 5000 && price <10000)
{
	      discount = price * 0.1;
}

        else if(price>= 10000)
{
			   discount = price *0.15;
}
            
            else if (price< 5000)
{
                discount = price + 0;
}
    price = price - discount;              
    totalcollection = totalcollection + price;
    
    cout<<"Total payment:RM "<<price<<endl;
       
}
   else if (category == 'T' || category == 't')
{
    price = numpeople * 200;
    govtax = price * 0.1;
    servtax = price * 0.15;
    price = price + govtax + servtax;
    tulip++;
    
    
    cout<<"Original price:RM "<<price<<endl;
    
    
     if(price>= 5000 && price <10000)
{
	      discount = price * 0.1;
}

        else if(price>= 10000)
{
			   discount = price *0.15;
}
            
            else if (price< 5000)
{
                discount = price + 0;
}
    price = price - discount;              
    totalcollection = totalcollection + price;
    
    cout<<"Total payment:RM "<<price<<endl;
}

  
        
    if (rose>orchid && rose>tulip)
    strcpy (max,"ROSE");
     
        else if(orchid>rose && orchid > tulip)
        strcpy (max,"ORCHID");
        
             else if(tulip>rose && tulip> orchid)
             strcpy(max, "TULIP");
    
    
    cout<<"Do you wish to continue? (Y/y- yes or N/n- no): ";
    cin>>answer;
}
   cout<<"TOTAL NUMBER OF CUSTOMER FOR CATEGORY:"<<endl;
   cout<<"ROSE: "<<rose<<endl;
   cout<<"ORCHID: "<<orchid<<endl;
   cout<<"TULIP: "<<tulip<<endl;
   
   cout<<"The most preferred cruise is: "<<max<<endl;
   
   cout<<"Total collection for MawarMerah Holiday Cruise is:RM "<<totalcollection;
   
   
   
   
    
   
    
    

       
 return 0;   

	

}


# data[].attributes.body
Afiza Syazwani Binti Mohd Razali (2018806278)

# data[].attributes.attachment_link.readable_text
#include<iostream>

using namespace std;

int main()
{
	int numPeople, price,count,totalCustomer, test;
	int countRose=0, countOrchid=0, countTulip=0;
	float totalPayment, totalCollect;
	const float tax = 0.05, servicetax = 0.06;
	char category, answer;
	
	cout<<"***Hello! Welcome to MawarMerah Holiday Cruise!***"<<endl;
	cout<<"\nDo you wish to start processing? (Enter Y for Yes, N for No): ";
	cin>>answer;
	
	while (answer == 'Y' || answer == 'y')
	  { cout<<"\nEnter R/r for Rose, O/o for Orchid, T/t for Tulip "<<endl;
	    cout<<"Cruise category: ";
	    cin>>category;
	  
	    cout<<"Number of people: ";
	    cin>>numPeople;
	  
	    if (category == 'R' || category == 'r')
	    { cout<<"Price per person is RM500 "<<endl;
	        price = numPeople * 500;
	        countRose++;
	    }
	        else if (category == 'O' || category == 'o')
	        { cout<<"Price per person is RM350 "<<endl;
	            price = numPeople * 350;
	            countOrchid++;
		    }
		            else if (category == 'T' || category == 't')
		            { cout<<"Price per person is RM200 "<<endl;
		                price = numPeople * 200;
		                countTulip++;
		            }
	    cout<<"Total price is RM "<<price<<endl;
	   
	    if (price>5000 && price<=10000)
	    { 
	        price = price - (price*0.10);
	        cout<<"Price after discount is RM "<<price<<endl;
	    }
	        else if (price > 10000)
	        {
	       	    price = price - (price*0.15);
	       	    cout<<"Price after discount is RM "<<price<<endl;
		    }
				   
		totalPayment = price + (price*tax) + (price*servicetax);
		totalCollect = totalCollect + totalPayment;
		
		cout<<"Total payment is RM "<<totalPayment<<endl;
		
		cout<<"\nDo you wish to continue processing? (Enter Y for Yes, N for No): ";
	    cin>>answer;
	    }
	    
	    cout<<"\n***Thank you for choosing MawarMerah Holiday Cruise!***"<<endl;
	    cout<<"\nTotal number of customers for Rose cruise is "<<countRose<<endl;
	    cout<<"Total number of customers for Orchid cruise is "<<countOrchid<<endl;
	    cout<<"Total number of customers for Tulip cruise is "<<countTulip<<endl;
	    
	     if (countRose > countOrchid && countRose > countTulip)
	         cout<<"\nThe most preferred cruise is Rose Cruise "<<endl;
	         else if (countOrchid > countRose && countOrchid > countTulip)
	                 cout<<"\nThe most preferred cruise is Orchid Cruise "<<endl;
	                 else if (countTulip > countRose && countTulip > countOrchid)
	                         cout<<"\nThe most preferred cruise is Tulip Cruise "<<endl;
	    
	    if (countRose == countOrchid && countRose > countTulip)
	       cout<<"\nThe most preferred cruise is Rose and Orchid Cruise "<<endl;
	       else if (countRose == countTulip && countRose > countOrchid)
	               cout<<"\nThe most preferred cruise is Rose and Tulip Cruise "<<endl;
	               else if (countOrchid == countTulip && countOrchid > countRose)
	                       cout<<"\nThe most preferred cruise is Orchid and Tulip Cruise "<<endl;
	                       else
	                          cout<<"\nThe most preferred cruise are equal"<<endl;
	    
	    cout<<"\nTotal collection for MawarMerah Holiday Cruise is RM "<<totalCollect<<endl;
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>

using namespace std;

int main ()
{
	char respond = 'y';
	char cruise;
	int rose = 0;
	int orchid = 0;
	int tulip = 0;
	int count = 0;
	int numpeople;
	float price;
	float totalprice;
	float totalpayment;
	float totaldiscount;
	float totalcollection;
	float newtotalpayment;
	float newtotal;
	float govtax;
	float servicetax;
	
	cout<<" WELCOME TO MAWARMERAH HOLIDAY CRUISE "<<endl;
	
	cout<<" Do you wish to start processing ? ";
	cin>>respond; //priming read
	cout<<endl;
	

	while (respond != 'n' )
	{		
	cout<<" ROSE CRUISE : RM 500 / PERSON  "<<endl;
	cout<<" ORCHID CRUISE : RM 350 / PERSON "<<endl;
	cout<<" TULIP CRUISE : RM 200 / PERSON "<<endl;
		
	cout<<" Please enter the chosen cruise ( R-Rose Cruise, O-Orchid Cruise, T-Tulip Cruise ): ";
	cin>>cruise;
	cout<<" Enter the number of people : ";
	cin>>numpeople;
	
		if ( cruise == 'R' )
		{	
			price = 500.00;
			totalprice = price * numpeople ;
	   		totalpayment = totalprice + totalpayment ;
	    	rose++;
		}
		
		else if ( cruise == 'O' || cruise == 'o' )
		{
			price = 350.00;
			totalprice = price * numpeople ;
	    	totalpayment = totalprice + totalpayment ;
			orchid++;
		}
		
		else if ( cruise == 'T')
		{
			price = 500.00;
			totalprice = price * numpeople ;
	    	totalpayment = totalprice + totalpayment ;
			tulip++;	
		}
		cout<<" The total payment is : RM "<<totalpayment<<endl;
		
		if ( totalpayment >= 5000.00 && totalpayment < 10000.00 )
			{
				totaldiscount =  (totalpayment * 0.10);
				totalpayment = totalpayment - totaldiscount;
			}
		else if ( totalpayment >= 10000.00 )
			{
				totaldiscount =  (totalpayment * 0.15) + totalpayment;
				totalpayment = totalpayment - totaldiscount;
			}
		cout<<" Total after discount: "<<totaldiscount<<endl;
		cout<<" The price after discount : RM "<<totalpayment<<endl;
		
		govtax = totalpayment * 0.05;
		servicetax = totalpayment * 0.06;
		newtotalpayment = totalpayment + govtax + servicetax ;
		
	 	cout<<" The payment before tax : "<<totalpayment<<endl;
		cout<<" The payment customer has to pay after tax : RM "<<newtotalpayment<<endl;
	 	
	 	newtotal = newtotal + newtotalpayment; 
	
		cout<<" Do you wish to continue ? ( y / n ) : ";
		cin>>respond;
	}

	 cout<<"Total number of Rose Cruise customers : "<<rose<<endl;
	 cout<<"Total number of Orchid Cruise customers : "<<orchid<<endl;
	 cout<<"Total number of Tulip Cruise customers : "<<tulip<<endl;
	 
	 totalcollection = newtotal ;
	 
	 if ( rose > orchid && tulip < rose )
	 
	 cout<<" The most preferred cruise is : ROSE CRUISE "<<endl;
	 
	 else if ( orchid > rose && tulip < orchid)
	 
	 cout<<" The most preferred cruise is : ORCHID CRUISE"<<endl;
	 
	 else 
	 
	 cout<<" The most preferred cruise is : TULIP CRUISE "<<endl;	 
	 
	 
	 cout<<" The total collection for MawarMerah Holiday Cruise is : RM  "<<totalcollection<<endl;
	 
	 return 0 ;
}


# data[].attributes.headline
Farah Jasmin bt Zainal Arif (2018634564)

# data[].attributes.subject
Farah Jasmin bt Zainal Arif (2018634564)

# data[].attributes.attachment_link.readable_text
#include <iostream>

using namespace std;

int main()
{
	float totalCollection, totalPayment;
	int numOfPeople;
	int countR = 0;
	int countO = 0;
	int countT = 0;
	char cruise, ans;
	
	cout<<"WELCOME TO MAWARMERAH HOLIDAY CRUISE "<<endl;
	cout<<"R for Rose, O for Orchid, T for Tulip "<<endl;
	
	cout<<"Do you want to continue? Y/N: "<<endl;
	cin>>ans;
	
	while ( ans == 'Y' )
	{
		cout<<"Enter your code for cruise: ";
		cin>>cruise;
		
		{
			
			if (cruise == 'R')
			 {
			 	cout<<"Enter your number of people: ";
			 	cin>>numOfPeople;
			 	totalPayment = numOfPeople * 500;
			 	cout<<"Your total payment is: "<<totalPayment<<endl;
			 	countR++;
			 }
			else if (cruise == 'O')
			{
				cout<<"Enter your number of people: ";
				cin>>numOfPeople;
				totalPayment = numOfPeople * 350;
				cout<<"Your total payment is: "<<totalPayment<<endl;
				countO++;
			}
			else if (cruise == 'T')
			{
				cout<<"Enter your number of people: ";
				cin>>numOfPeople;
				totalPayment = numOfPeople * 200;
				cout<<"Your total payment is: "<<totalPayment<<endl;
				countT++;
			}
			
		}
		if ( totalPayment >= 5000 && totalPayment < 10000 )
		{
			totalPayment = (0.1*totalPayment) + (0.05*totalPayment) + (0.06*totalPayment);
			cout<<"Your total payment after discount is (included service tax and government tax): "<<totalPayment<<endl;
		}
		else if ( totalPayment >= 10000 )
		{
			totalPayment = (0.1*totalPayment) + (0.05*totalPayment) + (0.06*totalPayment);
			cout<<"Your total payment after discount is (included service tax and government tax): "<<totalPayment<<endl;
		}
		totalCollection = totalCollection + totalPayment;
		cout<<"Do you want to continue? Y/N: ";
		cin>>ans;
	}
		cout<<"Total collection for Rose is: "<<countR<<endl;
		cout<<"Total collection for Orchid is: "<<countO<<endl;
		cout<<"Total collection for Tulip is: "<<countT<<endl;
		if (countR > countO && countR > countT)
		{
			cout<<"The most preferred cruise if Rose "<<endl;
		}
		else if (countO > countR && countO > countT)
		{
			cout<<"The most preferred cruise if Orchid "<<endl;
		}
		else if (countT > countR && countT > countO)
		{
			cout<<"The most preferred cruise is Tulip "<<endl;
		}
		cout<<"Total collection: "<<totalCollection<<endl;
		
	return 0;
}

# data[].attributes.body
(2018274054)

# data[].attributes.attachment_link.readable_text
Name:NURULHUDA BINTI AYUB
2018274054
CS1432A
ASSIGNMENT IND 2
MADAM SHAHIRAH BINTI MOHAMED HATIM

#include <iostream>
using namespace std;

int main()
{
	char respond='Y';
	int numpeople,ccategory;
	int countR=0;
	int countO=0;
	int countT=0;
	double  pricedic,totalcollection,price,pricetax,totalcol;

	cout<<"------------------------------------------------------"<<endl;
	cout<<"*******  Welcome to Mawar Merah Holiday Cruise  *******"<<endl;
	cout<<"------------------------------------------------------"<<endl;
	cout<<"CHOOSE CODE FOR CRUISE CATEGORY"<<endl;
	cout<<" 1= rose RM 500 , 2 = orchid RM350 , 3 = tulip RM 200 "<<endl;
	
     while (respond != 'N')
	{	
	cout<<"Enter the cruise category : "<<endl;
	cin>>ccategory;
	cout<<endl;
	cout<<"The number of people :"<<endl;
	cin>>numpeople;
	cout<<endl;
	

{
		
	if(ccategory==1)
    {
    price= 500*numpeople;
	countR++;
    }
   
	
	else if (ccategory==2)
	{
     price=350*numpeople;  
	countO++;
    }  
		
	else if(ccategory==3)
	{
    price= 200*numpeople;
	countT++;
    }
    else if (ccategory != 1 || ccategory != 2 || ccategory !=3)
    
    cout<<"PLEASE ENTER THE RIGHT CODE!!!"<<endl;
}
		cout<<"\nThe price:RM"<<price<<endl;
{
		
	if (price>=5000.00 && price <10000.00)
    	{
    		pricedic=price-(0.10*price);
    		cout<<"The total price with discount :RM"<<pricedic<<endl;
		}

    else if (price >=10000.00)
    	{
    	pricedic=price-(0.15*price);
    	cout<<"The total price with discount :RM"<<pricedic<<endl;
       }
    else if ( price < 5000.00)
    {
    	pricedic=price;
    	cout<<"*****SORRY,NO DISCOUNT*****"<<endl;
	}

       
    pricetax=pricedic+(pricedic*0.05)+(pricedic*0.06);
	cout<<"\nThe total price with discount and tax :RM"<<pricetax<<endl;
}
	totalcol=totalcol+pricetax;

    

	
 	cout<<"\nDo you wish to continue (Y=YES/N=NO) :";
	cin>>respond;
	cout<<endl;	
} 



      cout<<"Total collection = RM"<<totalcol<<endl;
      cout<<"The total number for customer Rose :"<<countR<<endl;
      cout<<"The total number for customer Orchid :"<<countO<<endl;
      cout<<"The total number for customer Tulip :"<<countT<<endl;
      
      
            
      	if ( countR > countO && countR> countT )
	  {
	   cout<<"\nThe most preferred cruise category : Rose "<<endl;
      }
	else if ( countO > countR && countO > countT )
	  {
	   cout<<"\nThe most preferred cruise category : Orchid "<<endl;
      }
	else if ( countT > countR && countT > countO )
	  {
	   cout<<"\nThe most preferred cruise category : Tulip "<<endl;
      }

      
      return 0;
}

# data[].attributes.body
2018242912
question 21

# data[].attributes.attachment_link.readable_text
//NURUL IYLIA SHAQILA BINTI ROSLI
//2018242912
//A4CS1432A
//ASSIGNMENT 2 NO 21
#include <iostream>
#include <string.h>
using namespace std;

int main()
{
    
    int  numbofPeople,totalcollect = 0;
    char category, answer, max[10];
    float totalpay = 0.0, totalpaydisc;
    int totalrose = 0, totalorchid = 0,totaltulip = 0;
    
    cout<<"***********WELCOME TO MAWARMERAH HOLIDAY CRUISE************"<<endl;
    
    cout<<"Do you wish to start? [(Y/y == yes) or (N/n == no )] : ";
    cin>>answer;
    
    while (answer=='Y' || answer== 'y' )
    {
        cout<<"Please enter the cruise category [(R/r == rose) (O/o == orchid ) (T/t == tulip )] :";
        cin>>category;
        cout<<"Please enter the number of people : ";
        cin>>numbofPeople;
        
        if( category=='R' || category == 'r')
        {
            totalpay = ((500*0.5)+(500*0.6)+500 )*  numbofPeople;
            totalrose= totalrose + numbofPeople;
            
            if(totalpay>=5000 && totalpay < 10000)
                totalpaydisc=  totalpay - (totalpay*0.1) ;
            else if(totalpay>= 10000 )
                totalpaydisc=totalpay- (totalpay*0.15);
            else if (totalpay<0 && totalpay < 5000)
                totalpaydisc = totalpay;
            cout<<"Total payment: RM "<<totalpay<<endl;
        }
        else if (category == 'O' || category == 'o')
        {
            totalpay = ((350*0.5)+(350*0.6)+350)* numbofPeople;
            totalorchid = totalorchid + numbofPeople;
            
            if(totalpay>=5000 && totalpay < 10000)
                totalpaydisc=  totalpay - (totalpay*0.1) ;
            else if(totalpay>= 10000 )
                totalpaydisc=totalpay- (totalpay*0.15);
            else if (totalpay<0 && totalpay < 5000)
                totalpaydisc = totalpay;
            cout<<"Total payment: RM "<<totalpay<<endl;
        }
        else if (category == 'T'|| category == 't')
        {
            totalpay = ((200*0.5)+(200*0.6)+200)* numbofPeople;
            totaltulip= totaltulip + numbofPeople;
            
            if(totalpay>=5000 && totalpay < 10000)
                totalpaydisc=  totalpay - (totalpay*0.1) ;
            else if(totalpay>= 10000 )
                totalpaydisc=totalpay- (totalpay*0.15);
            else if (totalpay<0 && totalpay < 5000)
                totalpaydisc = totalpay;
            cout<<"Total payment: RM "<<totalpay<<endl;
        }
        
        if (totalrose>totalorchid && totalrose>totaltulip)
            strcpy (max," ROSE ");
        else if (totalorchid>totalrose && totalorchid>totaltulip)
            strcpy (max," ORCHID ");
        else if (totaltulip>totalrose && totaltulip>totalrose)
            strcpy (max," TULIP ");
        
        totalcollect=totalcollect + totalpay;
        cout <<"Do you want to continue [(Y/y ==yes) or (N/n == no) : ";
        cin>>answer;
    }
    cout<< " TOTAL NUMBER OF EACH CUSTOMER (CATEGORY) : "<<endl;
    cout<< " NUMBER OF ROSE   : "<<totalrose<<endl;
    cout<< " NUMBER OF ORCHID : "<<totalorchid<<endl;
    cout<< " NUMBER OF TULIP  : "<<totaltulip<<endl;
    cout<< " THE MOST PREFERRED CRUISE CATEGORY : "<<max<<endl;
    cout<< " TOTAL COLECTION FOR MAWARMERAH HOLIDAY CRUISE : "<<totalcollect<<endl;
    return 0;
}

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	double totprice,receive,coll;
	int category,person;
	float count1,count2,count3;
	char respon;
	const float rose=500,orchid=350,tulip=200;
	
	cout<<"Welcome to MawarMerah Holiday Cruise"<<endl;
	cout<<endl;
	cout<<"Do you wish to continue? (y=yes,n=no)"<<endl;
	cin>>respon;

	while (respon == 'y' || respon == 'Y')
	{
	cout<<"Enter your Cruise category"<<endl;
	cout<<"1=Rose, 2=Orchid, 3=Tulip"<<endl;
	cin>>category;
	cout<<"Enter the number of person : "<<endl;
	cin>>person;
	
		if ( category == 1)
		{
			
		cout<<"Your have choose Rose for your Cruise Category"<<endl;
		totprice=rose*person;
		cout<<"Your payment is : RM "<<totprice<<endl;
		count1++;
		
		}
		else if(category == 2)
		{
			
		cout<<"Your have choose Orchid for your Cruise Category"<<endl;
		totprice=orchid*person;
		cout<<"Your payment is : RM "<<totprice<<endl;
		count2++;
		
		}	
		else if(category == 3)
		{
			
		cout<<"Your have choose Tulip for your Cruise Category"<<endl;
		totprice=tulip*person;
		cout<<"Your payment is : RM "<<totprice<<endl;
		count3++;
		
		}
		if(totprice<5000.00)
		{
			receive=totprice;
		}
		else if(totprice >= 5000.00 && totprice < 10000.00)
		{
			receive=totprice - (totprice*0.1)+ (0.5*receive) + (0.6*receive);
			cout<<"Your total payment include gst and sst is : RM "<<receive<<endl;
		}
		else if (totprice >= 10000.00);
		{
			receive=totprice - (totprice*0.15)+ (0.5*receive) + (0.6*receive);
			cout<<"Your total payment include gst and sst is : RM "<<receive<<endl;
		}
		coll=coll+receive;
	
	cout<<endl;	
	cout<<"Do you wish to continue? (y=yes,n=no)"<<endl;
	cin>>respon;
			
    }
	cout<<"The total number of customer for Rose : "<<count1<<endl;
	cout<<"The total number of cuctomer for Orchid : "<<count2<<endl;
	cout<<"The total number of customer for Tulip : "<<count3<<endl;
	cout<<endl;
	
	if(count1>count2 && count1>count3)
	{
	cout<<"Rose is the most preffered by customer";
	}
	else if(count2>count1 && count2>count3)
	{
	cout<<"Orchid is the most preffered category by customer";
	}
	else if(count3>count1 && count3>count2)
	{
	cout<<"Tulip is the most preffered category by customer";
	}
	else if(count1==count2 && count1>count3)
	{
	cout<<"Rose & Orchid is the most preffered category by customer";
	}
	else if(count1==count3 && count1>count2)
	{
	cout<<"Rose & Tulip is the most preffered category by customer";
	}
	else if(count2==count3 && count2>count1)
	{
	cout<<"Tulip & Orchid is the most preffered category by customer";
	}
	else if(count1==count2 && count1==count3)
	{
	cout<<"Rose & Orchid & Tulip have the equal customer";
	}
	cout<<endl;
	cout<<"The total collection for MawarMerah Holiday Cruise is: RM "<<coll<<endl;
	cout.precision(3);
	cout<<endl;
	cout<<"Thank you";
	
	return 0;
}
	

# data[].attributes.headline
RADEN AJENG SITI FATIMAH BT RADEN AHMAD DARMAWAN (2018414998)

# data[].attributes.subject
RADEN AJENG SITI FATIMAH BT RADEN AHMAD DARMAWAN (2018414998)

# data[].attributes.attachment_link.readable_text
#include <iostream>
#include <string.h>
using namespace std;

int main ()
{
 int numofpeople ,payment, totalcollection;
 int totalpayment , totalrose, totalorchid, totaltulip;
 char category, answer , max [20];
 float govermentax = 0.5;
 float servicetax = 0.6;
 
   
    cout<<"************WELCOME TO MAWARMERAH HOLIDAY CRUISE*********"<<endl;
    cout<<"Do you wish to start ? (Y/y == yes or N/n == No) : ";
    cin>>answer;
    
    while(answer == 'Y' || answer == 'y')
   {
    cout<<"PLEASE ENTER THE CRUISE CATEGORY  ( [R/r - Rose]  [O/o - Orchid] [T/t - Tulip] ): ";
    cin>>category;
	cout<<"PLEASE ENTER THE NUMBER OF PEOPLE :";
    cin>>numofpeople;
    
    if ( category == 'R'|| category == 'r')
    {
    	
    payment = ( 500 * 0.6 ) + ( 500 * 0.5) + 500;
    totalpayment = payment * numofpeople;
    totalrose = totalrose + numofpeople;
    cout<<"Total payment RM : "<<totalpayment<<endl;
	

 	}
	
	else if ( category == 'O' || category == 'o')
	{
		payment = ( 350 * 0.6 ) + ( 350 * 0.5 ) + 350;
		totalpayment = payment * numofpeople;
		totalorchid = totalorchid + numofpeople;
		cout<<"Total payment RM : "<<totalpayment<<endl;
	
 	}
	
	else if ( category == 'T' || category == 't')
	{  
	     payment = ( 200 * 0.6 ) + ( 200 * 0.5) + 200;
	     totalpayment = payment * numofpeople;
	     totaltulip = totaltulip + numofpeople;
	     cout<<"Total payment RM : "<<totalpayment<<endl;
	
    }
    
   if ( totalpayment >= 5000 && totalpayment < 10000 )
	{
	totalpayment = totalpayment * 0.1;
    }
    else if ( totalpayment > 10000)
    {
	totalpayment =  totalpayment * 0.15;
    }
	

    if ( totalrose > totalorchid && totalrose > totaltulip)
    strcpy(max,"ROSE");
       else if ( totalorchid > totalrose && totalorchid > totaltulip )
       strcpy(max, "ORCHID");
       else if ( totaltulip > totalrose  && totaltulip > totalorchid )
       strcpy(max, "TULIP");
		
		totalcollection = totalcollection + totalpayment;
		cout<<"Do you wish to continue ? (Y/y == yes OR N/n == No) : ";
		cin>>answer;
	}
	cout<<"TOTAL NUMBER OF CUSTOMERS FOR EACH CATEGORY : "<<endl;
	cout<<"ROSE - "<<totalrose<<endl;
	cout<<"ORCHID - "<<totalorchid<<endl;
	cout<<"TULIP - "<<totaltulip<<endl;
	cout<<"THE MOST PREFERRED CRUISED CATEGORY : "<<max<<endl;
	cout<<"TOTAL COLLECTION FOR MAWARMERAH HOLIDAY CRUISE : "<<totalcollection<<endl;
	return 0;
	
    
}

# data[].attributes.body
assignment 2

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main ()
{
	char cruise, answer;
	int people;
	float rose, orchid, tulip, price, bill, totalbill, payment, collection;
	float govtax = 0.05;
	float servtax = 0.06;
	float discount;
	
	cout<<" ********** Welcome to MawarMerah Holiday Cruise ********** "<<endl;
	cout<<" Do you wish to start processing? ( Y / y | N / n ) : ";
	cin>>answer;
	cout<<endl;
	
	while ( answer == 'y' || answer == 'Y')
	{
		cout<<" Enter ( R / r ) for Rose Cruise "<<endl;
		cout<<" Enter ( O / o ) for Orchid Cruise "<<endl;
		cout<<" Enter ( T / t ) for Tulip Cruise "<<endl;
		cout<<" Please enter your category cruise that provided by MawarMerah Holiday Cruise : ";
		cin>>cruise;
		
		cout<<" Please enter the number of person you want to book : ";
		cin>>people;
		
		
		if ( cruise == 'R' || cruise == 'r')
		{
			price = 500.00;
			bill = ( people * price );
			rose += people;
			
		}
		
		else if ( cruise == 'O' || cruise == 'o')
		{
			price = 350.00;
			bill = ( people * price );
			orchid += people ;
		}
		
		else if ( cruise == 'T' || cruise == 't')
		{
			price = 200.00;
			bill = ( people * price );
			tulip += people;
		}
		
		cout<<endl;
		
		if ( bill > 0 && bill <= 5000 )
		{
			totalbill = bill;
			payment = totalbill + ( totalbill * govtax ) + ( totalbill * servtax );
		}
			
		else if ( bill > 5000 && bill <= 10000 )
		{
			discount = 0.1;
			totalbill = ( bill - ( bill * discount ));
			payment = totalbill + ( totalbill * govtax ) + ( totalbill * servtax );
		}
			
		else if ( bill > 10000 )
		{
			discount = 0.15;
			totalbill =  ( bill - ( bill * discount ));
			payment = totalbill + ( totalbill * govtax ) + ( totalbill * servtax );
		}
			collection += payment;	
		
		cout<<" Your bill before before discount and tax : RM"<<bill<<endl;
		cout<<" Your bill after discount : RM "<<totalbill<<endl;
		cout<<" Your bill after discount and included tax : RM "<<payment<<endl;
		cout<<endl;
		
		cout<<" Do you wish to continue : ";
		cin>>answer;
		cout<<endl;
		
		cout<<" Dear Our Value Customer, Thank You! ";
		cout<<endl;
	}
	
	    cout<<"____________________________________________________________________"<<endl;
	    cout<<" MawarMerah Holiday Cruise Data "<<endl;
	    cout<<endl;
	    
	    cout<<" The total number of customer for each cruise category "<<endl;
	    cout<<" Rose Cruise : "<<rose<<endl;
	    cout<<" Orchid Cruise : "<<orchid<<endl;
	    cout<<" Tulip Cruise : "<<tulip<<endl;
	    cout<<endl;
	    
	    cout<<" The most preffered cruise : "<<endl;
		
		if ( rose > orchid && rose > tulip )
		{
			cout<<" Rose Cruise "<<endl;
		}
		
		else if ( orchid > rose && orchid > tulip )
		{
			cout<<" Orchid Cruise "<<endl;
		}
		
		else if ( tulip > rose && tulip > orchid )
		{ 
			cout<<" Tulip Cruise "<<endl;
		}
	    
	    else if ( rose == orchid && rose > tulip )
	    {
	    	cout<<" Rose and Orchid Cruise "<<endl;
		}
		
		else if ( rose == tulip && rose > orchid )
		{
			cout<<" Rose and Tulip Cruise "<<endl;
		}
		
		else if ( tulip == orchid && tulip > rose )
		{
			cout<<" Tulip and Orchid Cruise "<<endl;
		}
	    cout<<endl;
		
		cout<<" MawarMerah Holiday Cruise total collection is : RM "<<collection<<endl;
		
    return 0;
}

# data[].attributes.body
ARIFAH BINTI ABDUL AZIZ
(2018678806)

# data[].attributes.attachment_link.readable_text
#include<iostream>

using namespace std;

int main()
{
	int numpeople;
	int countR=0;
	int countO=0;
	int countT=0;
	float totalpayment,newprice,totalcollection,price,newtotalpayment,tax1,tax2,collect;
	char category,answer,Rose,Orchid,Tulip;
	const float gtax=0.05;
	const float stax=0.06;

	cout<<"***WELCOME TO MAWARMERAH  CRUISE***";	
	cout<<"\nDo you wish to start processing : ";
	cin>>answer;
	
	while (answer=='y' || answer=='Y')
	{
	cout<<"Enter R/r= Rose, O/o=Orchid, T/t=Tulip"<<endl;
	cout<<"Insert cruise category : ";
	cin>>category;
	cout<<"Enter number of people : ";
	cin>>numpeople;
	
	if (category=='R'||category=='r')
	{
		totalpayment = numpeople*500;
		countR++;
		
		if(totalpayment>=5000&&totalpayment<10000)
		{
			totalpayment= totalpayment*0.10;
		}
	
		else if(totalpayment>=10000)
		{
			totalpayment= totalpayment*0.15;	
		}
		
		tax1=totalpayment*gtax;
		tax2=totalpayment*stax;
		newtotalpayment = totalpayment + tax1 + tax2;
		collect = collect + newtotalpayment;

		cout<<"The total amount is : RM "<<newtotalpayment;
		cout<<endl<<endl;
	}
	
	else if (category=='O'||category=='o')
	{
		totalpayment = numpeople*350;
		countO++;
		
	if(totalpayment>=5000&&totalpayment<10000)
		{
			totalpayment= totalpayment*0.10;
		}
	
		else if(totalpayment>=10000)
		{
			totalpayment= totalpayment*0.15;	
		}
		
		tax1=totalpayment*gtax;
		tax2=totalpayment*stax;
		newtotalpayment = totalpayment + tax1 + tax2;
		collect = collect + newtotalpayment;

		cout<<"The total amount is : RM "<<newtotalpayment;
		cout<<endl<<endl;
	}
	
	else if (category=='T'||category=='t')
	{
		totalpayment = numpeople*200.00;
		countT++;
	
		
	if(totalpayment>=5000&&totalpayment<10000)
		{
			totalpayment= totalpayment*0.10;
		}
	
		else if(totalpayment>=10000)
		{
			totalpayment= totalpayment*0.15;	
		}
		
		tax1=totalpayment*gtax;
		tax2=totalpayment*stax;
		newtotalpayment = totalpayment + tax1 + tax2;
		collect = collect + newtotalpayment;
	
		cout<<"The total amount is : RM "<<newtotalpayment;
		cout<<endl<<endl;
	}
	
	cout<<endl;
	cout<<"Do you wish to continue ? (Y/y=yes or N/n=no)  =  ";
	cin>>answer;
	cout<<endl;
	}
	
	if ( Rose > Orchid && Rose > Tulip )
	  {
	   cout<<"\nThe most preferred cruise category : ROSE "<<endl;
      }
	else if ( Orchid > Rose && Orchid > Tulip )
	  {
	   cout<<"\nThe most preferred cruise category : ORCHID "<<endl;
      }
	else if ( Tulip > Rose && Tulip > Orchid )
	  {
	   cout<<"\nThe most preferred cruise category : TULIP "<<endl;
      }
    
	    
	cout<<"The payment is include 5% government tax and 6% service tax"<<endl;
	cout<<"Total number of customer is for Rose : "<<countR<<endl;
	cout<<"Total number of customer is for Orchid : "<<countO<<endl;
	cout<<"Total number of customer is for Tulip : "<<countT<<endl;
	cout<<"The total collection is : RM "<<collect<<endl;
	cout<<"\n		"<<"THANK YOU FOR VISITING"<<"		"<<endl;
	cout<<"\n		"<<"HAVE A NICE DAY"<<"		"<<endl;
	
	return 0;
	
	
	
	
}

# data[].attributes.headline
WAN NUR AMIRA NATASYA BINTI WAN ANUAR (2018214144)

# data[].attributes.subject
WAN NUR AMIRA NATASYA BINTI WAN ANUAR (2018214144)

# data[].attributes.body
Assignment 2 (Q21)

# data[].attributes.attachment_link.readable_text
#include <iostream>

using namespace std;

int main()
{
	int numofpeople, countR=0, countO=0, countT=0, totalnumofcustomer;
	float totalpayment, alltotalpayment, governmenttax, servicetax, totalcollection;
	char cruisecategory, answer, cruiseR, cruiseO, cruiseT;
	
	cout<<" WELCOME TO MAWARMERAH HOLIDAY CRUISE ! "<<endl;
	
	cout<<"\nDo you wish to start processing ?(y/n): ";
	cin>>answer;
	
	while (answer == 'Y' || answer == 'y' )
	{
		
		cout<<"\nPlease enter the cruise category : ";
		cin>>cruisecategory;
		
		cout<<"\nPlease enter the number of people : ";
		cin>>numofpeople;
		
		if (cruisecategory == 'R' || cruisecategory == 'r')
		{
			totalpayment = 500.00 * numofpeople;
			countR++;
		}
		
		else if (cruisecategory == 'O' || cruisecategory == 'o')
		{
			totalpayment = 350.00 * numofpeople;
			countO++;
		}
		
		else if (cruisecategory == 'T' || cruisecategory == 't')
		{
			totalpayment = 200.00 * numofpeople;
			countT++;
		}
		
		cout<<"\nYour total payment is : RM "<<totalpayment<<endl;
		
		{
			if (totalpayment > 5000.00)
			{
				totalpayment = totalpayment - (0.1 * totalpayment);
				
				cout<<"\nYour total payment after discount is : RM "<<totalpayment<<endl;
			}
			
			else if (totalpayment > 10000.00)
			{
				totalpayment = totalpayment - (0.15 * totalpayment);
				cout<<"\nYour totalpayment is : RM "<<totalpayment<<endl;
			}
		}
		
		{
			governmenttax = 0.05 * totalpayment;

			servicetax = 0.06 * totalpayment;

			alltotalpayment = totalpayment + governmenttax + servicetax;
		
	    }
	    
	    cout<<"\nYour all total payment is : RM "<<alltotalpayment<<endl;
	    
	    {
	    	totalcollection = totalcollection + alltotalpayment;
		}
	    
	    cout<<"\nDo you wish to start processing ? (y/n) : ";
	    cin>>answer;
	
	
    }
	
	    
	    {
	    	
	    	cout<<"\nTotal number of customer for cruise Rose is : "<<countR<<endl;
	    	
	    	cout<<"\nTotal number of customer for cruise Orkid is : "<<countO<<endl;
	    	
	    	cout<<"\nTotal number of customer for cruise Tulip is : "<<countT<<endl;
		}
		
		if ( countR > countO && countR > countT )
		{
			cout<<"\nThe most preferred cruise category is Rose Cruise ! ";
		}
		
		else if ( countO > countR && countO > countT )
		{
			cout<<"\nThe most preferred cruise category is Orchid Cruise ! ";
		}
		
		else if ( countT > countR && countT > countO )
		{
			cout<<"\nThe most preferred cruise category is Tulip Cruise ! ";
		}
		
		else if ( countR == countO && countR > countT )
		{
			cout<<"\nThe most preferred cruise category is Rose and Orchid Cruise ! ";
		}
		
		else if ( countR == countT && countR > countO )
		{
			cout<<"\nThe most preferred cruise category is Rose and Tulip Cruise ! ";
		}
		
		else if ( countT == countO && countT > countR )
		{
			cout<<"\nThe most preferred cruise category is Tulip and Orchid Cruise ! ";
		}
		
		
		cout<<"\nTotal collection for MawarMerah Holiday Cruise is : RM "<<totalcollection<<endl;
		
		
	 	return 0;
}   
    

# data[].attributes.attachment_link.readable_text
//Assignment2
//NURUL HUDA BINTI SHAHRUDIN
//2018213772
//A4CS1432A
//MADAM SHAHIRAH
#include<iostream>
using namespace std;
int main()
{
	char cruise , answer, prefered ;
	int numPeople, countR=0, countO=0, countT=0;
	double charge, totalcharge,totalCollection;
	const double govTax=0.05, serviceTax=0.06;
	
	cout<<"\n* * * * * * * * * * * * * WELCOME TO MAWAR MERAH HOLIDAY CRUISE!!* * * * * * * * * * * * * ";
	cout<<"\nPrepared by: NURUL HUDA SHAHRUDIN.";
	
	cout<<"\nDo you wish to start processing? Y-yes: ";
	cin>>answer;

	while (answer=='Y' || answer =='y')	
		{
			cout<<"\nEnter 'R' for Rose, 'O' for Orchid, 'T' for Tulip.";
			cout<<"\nChoosen cruise category: ";
			cin>>cruise;
			
			cout<<"Enter the number of people: ";
			cin>>numPeople;
			{
				if (cruise=='R' || cruise=='r' )
				{				
					charge= (numPeople*500.00);
					countR++;
				}
				else if (cruise=='O'|| cruise=='o')
				{				
					charge=(numPeople*350.00);
					countO++;
				}
				else if (cruise=='T'|| cruise=='t')
				{
					charge=(numPeople*200.00);
					countT++;
				}
				else if (cruise!='R'||cruise!='r'||cruise!='O'||cruise!='o'||cruise!='T'||cruise!='t')
				{
					cout<<"CATEGORY NOT FOUND , PLEASE ENTER THE RIGHT CODE !";
				}
			}
			cout<<"\nTotal ammount need to pay: RM "<<charge;
			{
				if(charge>5000.00)
				{
					charge=charge-(charge*0.10);
					cout<<"\nThe price after discount : RM "<<charge;
				}
				else if (charge>10000.00)
				{
					charge=charge-(charge*0.15);
					cout<<"\nThe price after discount : RM "<<charge;
				}
				totalcharge=charge+ (charge*0.05)+(charge*0.06);
				cout<<"\nThe final ammount need to pay : RM "<<totalcharge;
			}
			totalCollection=totalCollection+totalcharge;
			cout<<"\nDo you wish to continue processing? Y-yes: ";
			cin>>answer;
		}

		cout<<"\nThe total number of customers for each cruise category:";
		cout<<"\nCategory Rose: "<<countR;
		cout<<"\nCategory Orchid: "<<countO;
		cout<<"\nCategory Tulip: "<<countT;
		
		
		if (countR>countO && countR>countT)
			{
					cout<<"\nThe most preferred cruise category: ROSE ";
			}
		else if (countO>countR && countO>>countT)
			{
				cout<<"\nThe most preferred cruise category: ORCHID ";
			}
		else if (countT>countR && countT>countO)
			{
				cout<<"\nThe most preferred cruise category: TULIP ";
			}
		else if (countR==countT && countR>countT)
			{
				cout<<"\nThe most preferred cruise category : ROSE AND ORCHID";
			}
		else if (countR==countT && countR>countO)
    		{
    			cout<<"\nThe most preferred cruise category : ROSE AND TULIP";
			}
		else if (countT==countO && countT>countR)
			{
				cout<<"\nThe most preferred cruise category : TULIP & ORCHID "<<endl;
			}
		else
			{ 
			cout<<"\nThe most preferred cruise category : NO PREFERRED CRUISE CATEGORY. ROSE , ORCHID and TULIP are EQUAL.";
			}
			
		cout<<"\nTotal collection for MawarMerah Holiday Cruise: RM "<<totalCollection;
		cout<<"\n* * * * * * * * * * * * * THANK YOU * * * * * * * * * * * * *";

		return 0;
}

# data[].attributes.attachment_link.readable_text
//Name:Arman Syahir Bin Afandi
//Class:A4CS1432A
//No.Matrix:2018423334

#include<iostream>
using namespace std;
int main()
{
	char answer; 
	int category, people;
	float discount, grosspay, total, collection;
	float count1=0, count2=0, count3=0;
	
	cout<<"Welcome to MawarMerah Holiday Cruise"<<endl;
	cout<<endl;
	cout<<"Do you really want to proceed? (y/n) "<<endl;
	cin>>answer;
	while(answer=='y'||answer=='Y')
	{
		cout<<"Enter your cruise category:"<<endl;
		cout<<"1=Rose, 2=Orchid, 3=Tulips"<<endl;
		cin>>category;
		if(category==1)
		{
			cout<<"Enter the number of person:";
		    cin>>people;
			grosspay=500*people;
			count1++;
		}
		else if(category==2)
		{
			cout<<"Enter the number of person:";
		    cin>>people;
			grosspay=350*people;
			count2++;
		}
		else if(category==3)
		{
			cout<<"Enter the number of person:";
		    cin>>people;
			grosspay=200*people;
			count3++;
			
		}
		if(grosspay<5000)
		discount=grosspay;
		else if(grosspay>=5000 && grosspay<10000)
		discount=grosspay-(grosspay*0.1);
		else if(grosspay>=1000)
		discount=grosspay-(grosspay*0.15);
		total=(discount*0.11)+discount;
		cout<<"The total payment is:(RM)"<<total<<endl;
		cout<<"(Include of 5% goverment tax & 6% service tax)";
		
		collection=collection+total;

	cout<<endl;
	cout<<"Do you wish to continue? (y/n) "<<endl;
	cin>>answer;
    }
	cout<<"The total number of customer for Rose : "<<count1<<endl;
	cout<<"The total number of customer for Orchid : "<<count2<<endl;
	cout<<"The total number of customer for Tulips : "<<count3<<endl;
	cout<<endl;
	if(count1>count2 && count1>count3)
	{cout<<"ROSE is most preffered by customer";
	}
	else if(count2>count1 && count2>count3)
	{cout<<"ORCHID is most preffered by customer";
	}
	else if(count3>count1 && count3>count2)
	{cout<<"TULIPS is most preffered by customer";
	}
	else if(count1==count2 && count1>count3)
	{cout<<"ROSE & ORCHID is most preffered by customer";
	}
	else if(count1==count3 && count1>count2)
	{cout<<"ROSE & TULIPS is most preffered by customer";
	}
	else if(count2==count3 && count2>count1)
	{cout<<"TULIPS & ORCHID is most preffered by customer";
	}
	else if(count1==count2 && count1==count3)
	{cout<<"TULIPS & ORCHID & Tulip have the equal customer";
	}
	cout<<endl;
	cout<<endl;
	cout<<"The total collection for MawarMerah Holiday is: (RM)"<<collection<<endl;
	cout<<endl;
	cout<<"Thank you";
	
	return 0;
}

# data[].attributes.headline
NURUL SYAHERA BINTI MOHD RAZIF (2018422924)

# data[].attributes.subject
NURUL SYAHERA BINTI MOHD RAZIF (2018422924)

# data[].attributes.body
assignment 2

# data[].attributes.attachment_link.readable_text
#include <iostream>

using namespace std;

int main()
{
	int numPeople, totalCollection,totalCust;
	char code;
	char Tulip, Rose , Orchid;
	float price,totalPay,discount, payment,  sum;
	const float govTax = 0.05;
	const float serviceTax = 0.06;
	int countR = 0, countO =0, countT = 0;
	char respon='y';
	
	while(respon != 'n')
	{
		cout<<"MawarMerah Holliday Cruise"<<endl;
		cout<<"R - Rose Cruise, O - Orchid Cruise, T - Tulip Cruise "<<endl;
		
		cout<<"Enter the code : ";
		cin>>code;
		
		cout<<"Enter the number of people: ";
	    cin>>numPeople;

		{
		if(code == 'R'|| code == 'r')
		  {
		   price = 500 * numPeople;
		   totalPay = price + price * (0.05 + 0.06);
		   countR++;
	    }
		else if(code == 'O'|| code =='o')
		        {
				price = 350  * numPeople;
				totalPay = price + price * (0.05 + 0.06);
				countO++;
			    }
		        
		else if (code == 'T'|| code =='t')
		         {
				 price = 200  * numPeople;
				 totalPay = price + price * (0.05 + 0.06);
				 countT++;
		         }
	    }
	    cout<<"price :RM "<<price<<endl;
	    cout<<"total payment :RM "<<totalPay<<endl;
	    
	    cout<<"\nAny more data to be process? (y-yes, n-no) :";
	    cin>>respon;
	    
	    cin.ignore();
	   {
		if(price < 5000)
	       payment=price;
	    
	    else if(price >= 5000 && price < 10000)
	            payment = price - (price * 0.10);
	            
	    else if (price >= 10000)
	             payment= price - (price * 0.15);
	         }
	   
	    sum += totalPay;
	    
	}
	    cout<<"total collection :RM "<<sum<<endl;
	    cout<<"total number of customer of Rose: "<<countR<<endl;
	    cout<<"total number of customer of Orchid: "<<countO<<endl;
	    cout<<"total number of customer of Tulip:"<<countT<<endl;
		 {
		 if(countR > countO && countR > countT)
		    cout<<"most preffered cruise : Rose"<<Rose<<endl;
		else if(countO > countR && countO > countT)
		        cout<<"most preffered cruise : Orchid"<<Orchid<<endl;
		else if (countT > countR && countT > countO)
		         cout<<"most preffered cruise : Tulip"<<Tulip<<endl;
	}
	    	    
	    
	    return 0;
	    
	    
    }


# data[].attributes.headline
FARAH AZURIN BINTI MOHD FABLI (2018417892)

# data[].attributes.subject
FARAH AZURIN BINTI MOHD FABLI (2018417892)

# data[].attributes.body
ASSIGNMENT 2

# data[].attributes.attachment_link.readable_text
#include <iostream>

using namespace std;

int main ()
{
	int countR = 0 , countO = 0, countT = 0;
	char category;
	char respon = 'y';
	int numberPeople,totalPeople, price, r, o, t;
	const float governmentTax = 0.05, serviceTax = 0.06;
	float payment,totalPayment, sum = 0;
	
	cout<<"Welcome To MawarMerah Holiday Cruise!"<<endl;
	cout<<endl;
    cout<<"Any more data to be process? (y - yes, n - no) : ";
	cin>>respon;
    
    cout<<"Prices offerred by MawarMerah Holiday Cruise:"<<endl;
    cout<<endl;
    cout<<"Rose Cruise = RM500/person"<<endl;
    cout<<"Orchid Cruise = RM350/person"<<endl;
    cout<<"Tulip Cruise = RM200/person"<<endl;
    cout<<endl;
    cout<<"Please select your cruise"<<endl;
	cout<<"R for Rose; O for Orchid; T for Tulip"<<endl;
	
	  while (respon!= 'n' )
	  
	  {
	  cout<<"Enter your cruise category: ";
	  cin>>category;
	    {
	     if ( category == 'R' || category == 'r' )
	     {
	       price = 500;
	       countR++;
         }
     	else if ( category == 'O' || category == 'o')
     	 {
     	   price = 350;
     	   countO++;
         }
     	else if ( category == 'T' || category == 't')
	     {
	       price = 200;
	       countT++;
         }
         
	cout<<"Number of people in "<<category<< " cruise: ";
	cin>>numberPeople;
        }
    
    payment = numberPeople * price ;
    cout<<"Total price before tax and discount: RM"<<payment<<endl;
    
    {
    if ( payment < 5000 )
	totalPayment = payment + (payment * 0.05) + (payment * 0.06) ;	
    	
	if ( payment > 5000 && payment < 10000 )
	totalPayment = payment + (payment * 0.05) + (payment * 0.06) - (payment * 0.10);
	
	else if ( payment > 10000 )
	totalPayment = payment + (payment * 0.05) + (payment * 0.06)- (payment * 0.15 ) ;
    
    cout<<"Your total payment is: RM"<<totalPayment<<endl;
    }
    cout<<endl;
    cout<<"Any more data to be process? (y - yes, n - no) : ";
    cin>>respon;
    
    cin.ignore();
    
     if ( r > o && t < r )
	 
	 cout<<"The most preferred cruise is : Rose Cruise "<<endl;
	 
	 else if ( o > r && t < o)
	 
	 cout<<"The most preferred cruise is : Orchid Cruise"<<endl;
	 
	 else 
	 
	 cout<<"The most preferred cruise is : Tulip Cruise"<<endl;	 
    
    sum += totalPayment;
      }
    cout<<"Total number of customer for cruise R: "<<countR++<<endl;
    cout<<"Total number of customer for cruise O: "<<countO++<<endl;
    cout<<"Total nummber of customer for cruise T: "<<countT++<<endl;
    cout<<"Total collection for MawarMerah Holiday Cruise: RM"<<sum;
    
    return 0;
	
}

# data[].attributes.attachment_link.readable_text
// NAME :NURUL HUSNA BT MOHD AZHAR
// STUDENT ID: 2018212456
// LECTURER NAME : MADAM SHAHIRAH MOHAMED HATIM


#include <iostream>
using namespace std;

int main()
{
	int totalcus, numpeople, cat, count, count1, count2, totalpayment;
	const int rose = 500, orchid=350, tulip=200;
	float bill, totalprice, gst, sst;
	char answer ;
	
	cout<<"WELCOME TO MawarMerah Holiday Cruise "<<endl;
	
	cout<<" Do you wish to start now "<<endl;
	cin>>answer;
	
	count=0;
	count1=0;
	count2=0;
	
	while (answer == 'Y'|| answer == 'y')
	{
		cout<<"How many people want to ride :  "<<endl;
		cin>> numpeople;
		
		cout<<"What category do you in = "<<"   "<<" 1= ROSE, 2= ORCHID, 3= TULIP"<<endl;
		cin>>cat;
		
		if (cat==1)
		{
			bill= rose*numpeople;
			cout<<"Price = RM "<<bill<<endl;
			count= count+numpeople;
			
		}
		
		else if( cat == 2)
		{
			bill= orchid*numpeople;
			cout<<" Price = RM "<<bill<<endl;
			count1= count1+numpeople;
			
		}
		else if(cat==3)
		{
			bill=tulip*numpeople;
			cout<<" price = rm "<<bill<<endl;
			count2= count2+numpeople;
			
		}
		
		if(bill >= 5000 && bill < 10000)
		{
			bill= bill-(0.1*bill) ;
			cout<<"Price after discount = RM "<<bill<<endl;
		}
		else if (bill>=10000)
		{
			bill= bill-(0.15*bill);
			cout<<" Price after discount = RM "<<bill<<endl;
		}
			gst= (0.05*bill );
		 	cout<<" GST = RM "<<gst<<endl;
		 	
		 	sst= (bill*0.06);
		 	cout<<"SST = RM"<<sst<<endl;
		 	
			totalprice= bill + (0.05*bill ) + (bill*0.06);
			cout<<"Total price include gst and sst = RM"<<totalprice<<endl;
		
			totalpayment= totalpayment+totalprice;
			
			cout<<" Do you wish to start "<<endl;
			cin>>answer;
			
			
			
	}
			
			
			cout<<"total customer for rose catogory = "<<count<<endl;
			cout<<"total customer for orchid catagory ="<<count1<<endl;
			cout<<"total customer for tulip category = "<<count2<<endl;
			
			if(count>count1 && count>count2)
			cout<<"the most preferred cruise category is rose.";
			
			else if(count1>count&& count1>count2)
			cout<<"the most preferred cruise category is orchid.";
			
			else if(count2>count && count2>count1)
			cout<<"the most preferred cruise category is tulip.";
			
			cout<<" total collection for mawarmerah holiday cruise = RM "<<totalpayment;
			
			
	return 0;
}

# data[].attributes.headline
ROS AINA NAJIHAH BINTI ROSLAN (2018405182)

# data[].attributes.subject
ROS AINA NAJIHAH BINTI ROSLAN (2018405182)

# data[].attributes.body
ASSIGNMENT 2

# data[].attributes.attachment_link.readable_text
#include <iostream>

using namespace std;

int main()
{
	float gvnTax, svcTax, total, totalPayment, afterDiscount;
	float rosePrice = 500.00;
	float orchidPrice = 350.00;
	float tulipPrice = 200.00;
	float payment = 0;
	float discount = 0;
	float totalCollection = 0;
	float totalNew = 0;
	int numPeople;
	int rose = 0;
	int orchid = 0;
	int tulip = 0;
	char respond;
	char cruiseCategory;
	string preferCategory;
	
		cout<<"***** WELCOME TO MAWAR MERAH HOLIDAY CRUSIE!!! ***** "<<endl;
		cout<<endl;
		
		cout<<"There are 3 cruise category that are provided: "<<endl;
		cout<<"ROSE CRUISE = RM 500.00 "<<endl;
		cout<<"ORCHID CRUISE = RM 350.00 "<<endl;
		cout<<"TULIP CRUISE = 200.00 "<<endl;
		cout<<endl;
		
		while(respond != 'N')
		{
			cout<<"Please choose the cruise category: ";
			cin>>cruiseCategory;
			cout<<endl;
			
			cout<<"Enter the number of people: ";
			cin>>numPeople;
			cout<<endl;
			
			if(cruiseCategory == 'R' || cruiseCategory == 'r')
			{
				cout<<"Rose Cruise"<<endl;
			
				total = 500 * numPeople;
				payment = total + payment;
				rose += numPeople;
			}
			
			else if(cruiseCategory == 'O' || cruiseCategory == 'o')
			{
				cout<<"Orchid Cruise"<<endl;
			
				total = 350 * numPeople;
				payment = total + payment;
				orchid += numPeople;
			}
			
			else if(cruiseCategory == 'T' || cruiseCategory == 't')
			{
				cout<<"Tulip Cruise"<<endl;
			
				total = 200 * numPeople;
				payment = total + payment;
				tulip += numPeople;
			}
			
				if(payment > 5000 && payment <= 10000)
				{
					afterDiscount = payment - (payment * 0.10);
				}
			
				else if(payment > 10000)
				{
					afterDiscount = payment - (payment * 0.15);
				}
				
				cout<<"The Payment After Discount is : RM "<<afterDiscount;
				cout<<endl;
				
				gvnTax = 0.05 * afterDiscount;
				svcTax = 0.06 * afterDiscount;
				totalPayment = afterDiscount + gvnTax + svcTax;
				
				totalCollection += (afterDiscount * 0.11);
				
				cout<<"The Total Collection for Mawar Merah Holiday Cruise is : RM "<<totalCollection<<endl;
				
				cout<<"The Total Payment is : RM "<<totalPayment;
				cout<<endl;
				
				cout<<"Do you wish to continue? Enter Y/N ";
				cin>>respond;
				cout<<endl;
		}
		
			cout<<endl;
			cout<<"Total number customers for Rose Cruise : "<<rose<<endl;
			cout<<"Total number customers for Orchid Cruise : "<<orchid<<endl;
			cout<<"Total number customers for Tulip Cruise : "<<tulip<<endl;
		
				if ( rose > orchid && tulip < rose )
	 				cout<<"The Most Preferred Category is Rose "<<endl;
	 				
				else if ( orchid > rose && tulip < orchid )
	 				cout<<"The most preferred  Category is Orchid "<<endl;
	 
	 			else if ( tulip > rose && orchid < tulip )
	 				cout<<"The most preferred  Category is Tulip "<<endl;
			
			
	return 0;
		
}

# data[].attributes.headline
assignment 2 Muhammad Najwan Hakimi bin Hasri 2018281126

# data[].attributes.subject
assignment 2 Muhammad Najwan Hakimi bin Hasri 2018281126

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	float price, disc, total, tax = 1.11, gross,aftrDisc,countR=0, countT=0, countO=0;
	int cust, category,per;
	char answer;

	cout<<"****Welcome to MawarMerah Holiday Cruise****"<<endl;
	cout<<"Do you wish to continue? (y/n): ";
	cin>>answer;
	cout<<"Enter number of person :";
	cin>>per;
	
	while(answer=='y' || answer=='Y')
{	

	cout<<"Enter your Cruise Category (Rose=1 Orchid=2 Tulip=3) :";
	cin>>category;
	
	
	if(category == 1)
	{
		gross= per * 500;
		if(gross > 5000 && gross <= 10000)
		{
			disc=0.9;
			aftrDisc = gross * disc;
			total = aftrDisc * tax;
			cout<<"Your total is :RM"<<total<<endl;
		}
		else if(gross > 10000 )
		{
			disc=0.85;
			aftrDisc = gross * disc;
			total = aftrDisc * tax;
			cout<<"Your total is :RM"<<total<<endl;
		}
		else if(gross <= 5000)
		{
		total = gross * tax;
		cout<<"Your total is :RM"<<total<<endl;
	 	}
	 	countR++;
	}
	else if(category == 2)
	{
		gross= per * 350;
		if(gross > 5000 && gross <= 10000)
		{
			disc=0.9;
			aftrDisc = gross * disc;
			total = aftrDisc * tax;
			cout<<"Your total is :RM"<<total<<endl;
		}
		else if(gross > 10000 )
		{
			disc=0.85;
			aftrDisc = gross * disc;
			total = aftrDisc * tax;
			cout<<"Your total is :RM"<<total<<endl;
		}
		else if(gross <= 5000)
		{
		total = gross * tax;
		cout<<"Your total is :RM"<<total<<endl;
	 	}
	 	countO++;
	}
	else if(category == 3)
	{
		gross= per * 200;
		if(gross > 5000 && gross <= 10000)
		{
			disc=0.9;
			aftrDisc = gross * disc;
			total = aftrDisc * tax;
			cout<<"Your total is :RM"<<total<<endl;
		}
		else if(gross > 10000 )
		{
			disc=0.85;
			aftrDisc = gross * disc;
			total = aftrDisc * tax;
			cout<<"Your total is :RM"<<total<<endl;
		}
		else if(gross <= 5000)
		{
		total = gross * tax;
		cout<<"Your total is :RM"<<total<<endl;
	 	}
	 	countT++;
	}

	
	cout<<"Do you wish to continue? (y/n): ";
	cin>>answer;


}

	cout<<"Total number of customer for cruise rose :"<<countR<<endl;
	cout<<"Total number of customer for cruise Orchid :"<<countO<<endl;
	cout<<"Total number of customer for cruise Tulip :"<<countT<<endl;
	
	
	cout<<"*****Thank You*****"<<endl;
	
	return 0;
}

# data[].attributes.body
2018824436
cs1102e

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;

int main ()
{
	int num , price  , rose = 0 , orchid = 0 , tulip=0 ;
	float govertax , servtax , newtotalpayment ,totalpayment, newtotal = 0 , totalcollection = 0 ;
	char respon = 'y' , category ;
	
	cout<<" ****** WELCOME TO THE MAWARMERAH HOLIDAY CRUISE ****** "<<endl;
	cout<<" ------------------------------------------------------ "<<endl;
	cout<<"                ROSE : RM 500 PRICE PER PERSON          "<<endl;
	cout<<"              ORCHID : RM 350 PRICE PER PERSON          "<<endl;
	cout<<"               TULIP : RM 200 PRICE PER PERSON          "<<endl;
	cout<<"            5 % goverment tax & 6 % service tax         "<<endl;
	cout<<" ------------------------------------------------------ "<<endl;
	while (respon != 'n' )
	{
		float totalpayment = 0 , totaldiscount = 0 ;
		
		cout<<endl;
	    cout<<"The cruise category ( Enter 'r' for Rose , 'o' for Orchid , 't'  for Tulip ) : ";
	    cin>>category;
	    cout<<"The number of people : ";
	    cin>>num;

	 if (category == 'R'|| category == 'r')
	 
    {
	    price = 500 * num ;
	    totalpayment = price + totalpayment ;
	    rose++;
    }
	    
	else if (category == 'O' || category == 'o')
	{
	     price = 350 * num ;
	     totalpayment = price + totalpayment ;
	     orchid++;
    }
	else if (category == 'T' || category == 't')
	{
		 price = 200 * num ;
		 totalpayment = price + totalpayment ;
		 tulip++;
		 
	 }
	 
	 if ( totalpayment >= 5000 && totalpayment < 10000 )
	 {
	   totaldiscount =  totalpayment * 0.10 ;
	   totalpayment = totalpayment - totaldiscount ;	   
	 }
	 
	 else if ( totalpayment >= 10000 )
	 {
	 	totaldiscount = totalpayment * 0.15;
	 	totalpayment = totalpayment-totaldiscount;
	 }
	 cout<<"total discount : RM "<<totaldiscount<<endl;
	 cout<<"the payment have to pay after discount : RM "<<totalpayment<<endl;
	
	 govertax = totalpayment * 0.05 ;
	 servtax = totalpayment * 0.06 ;
	 newtotalpayment = totalpayment + govertax + servtax ;
	 
	 cout<<" the payment before tax : "<<totalpayment<<endl;
	 cout<<"The payment customer has to pay after tax : RM "<<newtotalpayment<<endl;
	 
	 newtotal = newtotal + newtotalpayment ;
	 
	 
	 cout<<"Do you want to continue?  (y-Yes or n-No) : " ;
	 cin>>respon ;
   }
   
	 cout<<endl;
	 cout<<"Total number of Rose category customers : "<<rose<<endl;
	 cout<<"Total number of Orchid category customers : "<<orchid<<endl;
	 cout<<"Total number of Tulip category customers : "<<tulip<<endl;
	 
	 totalcollection = newtotal ;
	 
	 if ( rose > orchid && tulip < rose )
	 
	 cout<<" the most preferred in cruise category is : Rose "<<endl;
	 
	 else if ( orchid > rose && tulip < orchid)
	 
	 cout<<" the most preferred in cruise category is : orchid "<<endl;
	 
	 else 
	 
	 cout<<"the most preferred in cruise category is : tulip "<<endl;	 
	 
	 
	 cout<<"total collection for MAWARMERAH HOLIDAY CRUISE :  "<<totalcollection<<endl;
	 
	 return 0 ;
}

# data[].attributes.body
2018221206

# data[].attributes.attachment_link.readable_text
//ASSIGNMENT 2
//NAME : NIK MUHAMMAD KHALIS BIN NIK NAZRI
//STUDENT ID : 2018221206
//CLASS : A4CS1102E
//LECTURER'S NAME : MADAM SHAHIRAH

#include<iostream>
using namespace std;

int main ()
{
	int ppl , rose = 0 , orchid = 0 , tulip = 0 ;
	float price , govertax , servtax , collect ;
	char cat , respon = 'y' ;
	
	cout<<"* * * * * * WELCOME TO MAWARMERAH HOLIDAY CRUISE * * * * * * "<<endl;
	
	cout<<"\nCruise category : (r-Rose , o-Orchid , t-Tulip)"<<endl ;
	
	while (respon != 'n')
	{
		cout<<"\nCruise category : ";
		cin>>cat;
		
		cout<<"Number of people : ";
		cin>>ppl;
		
		switch (cat)
		{
			case 'r' : case 'R' : price = 500 * ppl ;
			                      cout<<"Total before discount : RM "<<price<<endl;
			                      rose++;
			                      break ;
			case 'o' : case 'O' : price= 350 * ppl ;
			                      cout<<"Total before discount : RM "<<price<<endl;
			                      orchid++;
			                      break ;
			case 't' : case 'T' : price = 200 * ppl ;
			                      cout<<"Total before discount : RM "<<price<<endl;
			                      tulip++;
			                      break ;
			default : cout<<"CATEGORY NOT FOUND , PLEASE ENTER THE RIGHT CODE !"<<endl;
		}
		
		if (price > 5000 && price <= 10000)
		{
		price = price * 0.1;
	    }
		else if (price > 10000)
		{
		price = price * 0.15;
	    }
	    
	    govertax = price * 0.05 ;
	    servtax = price * 0.06 ;
	    price = price + govertax + servtax ;
	    
	    collect = collect + price ;
	    
	    cout<<"Total payment for this booking : RM "<<price<<endl;
	    
	    cout<<"\nDo you want to continue ? (y-yes , n-no) : ";
	    cin>>respon;
	}
	cout<<"\n* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * "<<endl;
	cout<<"\nTotal number of Rose cruise customers : "<<rose<<endl;
	cout<<"Total number of Orchid cruise customers : "<<orchid<<endl;
	cout<<"Total number of Tulip cruise customers : "<<tulip<<endl;
	
	if ( rose > orchid && rose > tulip )
	  {
	   cout<<"\nThe most preferred cruise category : Rose "<<endl;
      }
	else if ( orchid > rose && orchid > tulip )
	  {
	   cout<<"\nThe most preferred cruise category : Orchid "<<endl;
      }
	else if ( tulip > rose && tulip > orchid )
	  {
	   cout<<"\nThe most preferred cruise category : Tulip "<<endl;
      }
    else if (rose == orchid && rose > tulip )
      {
        cout<<"\nThe most preferred cruise category : Rose & Orchid "<<endl;
	  }
    else if (rose == tulip  && rose > orchid )
      {
        cout<<"\nThe most preferred cruise category : Rose & Tulip "<<endl;
	  }
    else if (tulip == orchid && tulip > rose )
      {
        cout<<"\nThe most preferred cruise category : Orchid & Tulip "<<endl;
	  }  
	else 
	    cout<<"\nThe most preferred cruise category : NO ~ Rose , Orchid and Tulip are equal . "<<endl;
	      
	cout<<"\nTotal collection for MawarMerah Holiday Cruise : RM "<<collect<<endl;
	cout<<"\n* * * * * * * * * * * * * THANK YOU * * * * * * * * * * * * * ";
	
	return 0 ;
	
}

# data[].attributes.body
idlan
cs1102e

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;

int main()
{
	int r, num,c ;
	char symbol;
	
	cout<<"Enter how many row: ";
	cin>>num;
	
	cout<<"Enter your symbol: ";
	cin>>symbol;
	
	for(r=1; r<=num; r++)
	{
		for(c=1; c<=r; c++)
		{
			cout<<symbol<<"";
		}
		
	cout<<endl;
	
	}
	return 0;
}

# data[].attributes.body
question 15

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;

int main()
{
	float cost,toll,total=0;
	
	int year,lastyear;
	
	cout<<"Enter the cost of expressway: ";
	cin>>cost;
	
	for(year=1; year<=10; year++)
	{   if(total<=cost)
	    {
	      cout<<"The toll collected every years "<<year<<" : ";
	      cin>>toll;
	      
	      total+=toll;
	      lastyear=year;
		}
		
	}
	cout<<"\n The total toll collected:"<<total<<"\n Number of years: "<<lastyear;
	return 0;
}

# data[].attributes.body
fared

# data[].attributes.body
nabil

# data[].attributes.body
Nuraliah

# data[].attributes.body
nabil

# data[].attributes.body
Nuraliah

# data[].attributes.body
nabil

# data[].attributes.body
Nuraliah

# data[].attributes.body
fared

# data[].attributes.attachment_link.readable_text
#include<iostream>

using namespace std;

int main()
{ float n=1,total=0.00,volume,average,maximum=0,minimum=9999,difference;

  while( n<=12 )
  {
  	 cout<<"\n Enter volume monthly rain month "<<n<<" : "; cin>>volume;
  	 total += volume;
  	 n++;
  	 
  	 if (minimum>volume)
  	  minimum = volume;
  	else if (maximum<volume)
  	  maximum = volume;
  }
  
  average=total/n;
  difference=maximum-minimum;
  
  cout<<"Halooooooooooooooooooooo"<<endl;
  cout<<"============================================="<<endl;
  cout<<"Total volume of rain in that city :"<<total<<endl;
  cout<<"Average rain received :"<<average<<endl;
  cout<<"Highest rain received :"<<maximum<<endl;
  cout<<"Lowest rain received :"<<minimum<<endl;
  cout<<"Difeerence between highest and lowest :"<<difference<<endl;
  
  return 0;
}

# data[].attributes.body
Nuraliah

# data[].attributes.body
Nuraliah

# data[].attributes.headline
saidahtul izyan izzati binti mohamad sazali

# data[].attributes.subject
saidahtul izyan izzati binti mohamad sazali

# data[].attributes.body
exercise 4.1(no 12)

# data[].attributes.body
exercise 4.1 no 15

# data[].attributes.body
exercise 4.1 no 13

# data[].attributes.headline
saidahtul izyan izzati binti mohamad saza

# data[].attributes.subject
saidahtul izyan izzati binti mohamad saza

# data[].attributes.body
exercise 4.1 (13)

# data[].attributes.body
exercise 4.1 no

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	float cost,express,totalToll,toll,total;
	int year;
	
	cout<<"Enter the cost of the express way:";
	cin>>express;
	
	cout<<"Enter the toll collected every year:";
	cin>>toll;
	
	for(int year=1; year<=10; year++)
	{
		totalToll=totalToll+toll;
		
		 if (totalToll == express)
		{
			cout<<"total collection is:"<<totalToll<<endl;
			cout<<"number of year collected"<<year<<endl;
		}
		else if ( totalToll<express)
		{
			cout<<"total collection is:"<<totalToll<<endl;
			cout<<"number of year to collected:"<<year<<endl;
			
		}
	}
	
	return 0;
}

# data[].attributes.body
4.1.12

# data[].attributes.attachment_link.readable_text
#include<iostream>

using namespace std;
int main()
{
	float costexpress,totalToll,toll;
	int years;
	
	cout<<"enter the cost of express way: ";
	cin>>costexpress;
	
	cout<<"enter the toll collected: ";
	cin>>toll;
	{
		for ( years =1 ; years <= 10 ; years++)
		 
		 	totalToll = totalToll + toll;
		
		
			if (totalToll == costexpress)
			{
				cout<<"the total toll collected: "<<totalToll;
				cout<<"the number of years are: "<<years;
			}
			
			else if(totalToll > costexpress)
			{
				cout<<"The total toll collected : "<<totalToll;
				cout<<"the number of years taken: "<<years;
			}
	
	}
	return 0;
}

# data[].attributes.headline
saidahtul izyan izzati binti mohamad sazali

# data[].attributes.subject
saidahtul izyan izzati binti mohamad sazali

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{ int S,N;
for(S=1;S<=5;S++)
{for(N=1;N<=S;N++)
cout<<"#"<<" ";
cout<<endl;}
return 0;
}

# data[].attributes.body
Ex 13

# data[].attributes.attachment_link.readable_text
#include <iostream>

using namespace std;

int main()
{
	char city[40];
	int month;
	float rainM, Vrain, totalV=0, Arain, highRain=0, lowRain=99999, difRain;
	
	cout<<" The name of the city is: ";
	cin.getline(city,40);
	
	for (month=1; month<=12; month++)
	{
		cout<<" The amount of  rain received per month: ";
		cin>>rainM;
		totalV = totalV + rainM;
		
		if (highRain<rainM)
		   highRain = rainM;	   
		   
    	if (lowRain>rainM)
		   lowRain = rainM;
		   
	    difRain = highRain - lowRain;
	}
	
	cout<<" The total volume of rain in that city: "<<totalV<<endl;
	Arain = totalV/12;
	cout<<" The average rain received is: "<<Arain<<endl;
	cout<<" The highest rain received is: "<<highRain<<endl;
	cout<<" The lowest rain received is: "<<lowRain<<endl;
	cout<<" The difference between the highest and the lowest rain received: "<<difRain<<endl;
	
	
	return 0;
}

# data[].attributes.body
4.1 question 15

# data[].attributes.body
4.1 question 13

# data[].attributes.body
Exercise 4.1

# data[].attributes.body
4.1 question 12

# data[].attributes.body
EXERCISE 4.1 QUESTION 15

# data[].attributes.attachment_link.readable_text
#include<iostream>

using namespace std;

int main()
{	char p = '#' ;

	for (int i=5; i>=1; i--)
	{	
		for(int j=5; j>=i; j-- )
		cout<<p<<" ";
		cout<<endl;
	
	} 
	
	return 0;
}

# data[].attributes.body
EXERCISE 4.1 QUESTION 13

# data[].attributes.body
exer

# data[].attributes.body
EXERCISE 4.1 QUESTION 12

# data[].attributes.attachment_link.readable_text
#include<iostream>

using namespace std;

int main()
{	float years,years1,cost,toll,totaltoll;

	cout<<" Enter cost of the expressway : "; cin>>cost;
	
	for(years=1;years<=10;years++)
	{ 	if( totaltoll < cost )
		{	cout<<" Enter toll collected every year : "; cin>>toll;
			totaltoll+=toll;
			years1=years;
		}
	}
	
	cout<<" Number of years to tooks to eliminate : "<<years1<<endl;
		
	
	
	
	return 0;
}

# data[].attributes.body
exercise 13

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()
{
	char city [20];
	int month;
	float rain, totalvolume, average, highest=0, lowest=9999, range;
	
	cout<<"Enter the name of the city "<<endl;
	cin>>city;
	cout<<endl;
	
	for (int month=1; month<=12; month++)
	{
		cout<<"Enter the volume of monthly rain received of the "<<month<<" month :";
		cin>>rain;
		cout<<endl;
		
		totalvolume += rain;
		
		if (lowest>rain)
			lowest=rain;
			
		else if (highest<rain)
				highest=rain;
			
	}	
	
	average=(totalvolume/12);
	
	range=highest-lowest;
	
	cout<<"The total volume of rain is "<<totalvolume<<endl;
	cout<<"The average rain received :"<<average<<endl;
	cout<<"The highest rain received :"<<highest<<endl;
	cout<<"The lowest rain received :"<<lowest<<endl;
	cout<<"The difference between the highest and the lowest rain received in that year :"<<range<<endl;
	
	return 0;	
}

# data[].attributes.body
e

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()
{
	int year, expressway, toll, totaltoll;
	
	cout<<"Welcome to Far Far Away Country!";
	cout<<endl<<endl;
	
	cout<<"Enter the cost of expressway : RM";
	cin>>expressway;
	
	cout<<"Enter the toll collected every year :RM";
	cin>>toll;
	cout<<endl;
	
	for(int year=1; year<=10; year++)
	{
		totaltoll += toll;
		
		if (totaltoll<expressway)
		{
			cout<<"The total collection is RM"<<totaltoll<<endl;
			cout<<"The number of year(s) it took to eliminate the toll collection is "<<year<<endl<<endl;
		}
		else if (totaltoll==expressway)
		{
			cout<<"The total collection is RM"<<totaltoll<<endl;
			cout<<"The number of year to collect is "<<year<<" years"<<endl;
		}
	}
	return 0;
}

# data[].attributes.body
Exercise 4.1 13

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;

int main()
{
	int i=1, month=1;
	int min=1000;
	int max=0;
	int total=0;
	float vol, ave;
	int difference;
	
	while(month<13)
	{
		cout<<" Volume received in a particular city in "<<i++<<"-month : ";
		cin>>vol;
		
		total=total+vol;
		
		if(vol<min)
			min=vol;
			
		if(vol>max)
			max=vol;
		
		month++;
	}
	
	ave=float(total)/month;
	difference=max-min;
	
	cout<<" the total volume of rain in city: "<<total<<endl;
	cout<<" the average rain received: "<<ave<<endl;
	cout<<" the highest rain received: "<<max<<endl;
	cout<<" the lowest rain received: "<<min<<endl;
	cout<<" the diferrence between the highest and the lowest rain recein received in that year: "<<difference;
}

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	int volume,average,highest=100,lowest=1000,difference,total,month;
	
	for(month=1;month<=12;month++)
	{ 
	 	cout<<"Enter the volume of monthly rain receives in monthly :";
	 	cin>>volume;
	 	
	 	if(highest<volume)
	 	{
		 highest=volume;
		}
	 	if(lowest>volume)
	 	{
		 lowest=volume;
		}
	total+=volume;
	}
		average=total/12;
		difference=highest-lowest;
	
	cout<<"The average of rain received :"<<average<<endl;
	cout<<"The highest rain received :"<<highest<<endl;
	cout<<"The lowest rain received :"<<lowest<<endl;
	cout<<"The difference between highest and lowest rain received :"<<difference<<endl;
	
	return 0;
}

# data[].attributes.body
Exercise 4.1 12

# data[].attributes.body
Ex 15

# data[].attributes.body
Ex 1

# data[].attributes.attachment_link.readable_text
#include <iostream>

using namespace std;

int main()
{
	float costE, toll, totalT;
	int numyears;
	
	cout<<" The cost of the expressway is: ";
	cin>>costE;
	
	cout<<" The toll collected every year is: ";
	cin>>toll;
	
	for (numyears=1; numyears<=10; numyears++)
	{
		totalT = numyears*toll; 
	
        if (totalT<=costE)
        {
		    cout<<" The total toll collected is: "<<totalT<<endl;
	        cout<<" The number of years is: "<<numyears<<endl;
        }
    }
    
	return 0;
}

# data[].attributes.body
exercise 4.1 no 15

# data[].attributes.body
Exercise 4.1 no 13

# data[].attributes.body
Soalan no. 15 :)

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;

int main()
{
	int r,num, c ;
	char symbol ;
	
	cout<<"Enter how many row : ";
	cin>>num;
	
	cout<<"Enter your symbol : ";
	cin>>symbol;
	
	for(r=1 ; r<=num ;r++)
	{
		for( c=1; c<=r; c++)
		{
			cout<<symbol<<" ";
		}
	
	cout<<endl;
	
	}
	return 0;
}

# data[].attributes.body
Soalan no. 13 :)

# data[].attributes.body
exercise 4.1 no 12