Salam Pertemuan Buat Semua Seintim Hubungan Seerat Ukhwah Menyemai Kasih Mesra Diantara Kita Moga Mendapat Rahmat Yang Esa







Monday, March 23, 2009
Annual Kem Wataniah sem 2 2009

Aku mengharapkan kem wataniah ni mcm camping..
Dpt suka2 sambil main dgn unggun api..
Tapi jangkaan aku meleset.
Ptg jumaat tue dah kena maki pasal baju budak kelas aku tak seperti yang disuruh. oleh Kopral Sozana.
Apa nak buat. Aku boleh concludekan isu ini kerana arahan diberikan pada pagi jumaat menyuruh pakai baju hitam pulak.. Padahal pada rabu pagi Kopral dah suruh pakai baju merah.
Free2 je kena maki..
Bukan salah aku kan?
Ptg tue dah penat kawad dan lari2.. Malam mungkinkah rehat?
Lepas makan dan magrib serta isyak..
Tazkirah Isyak pon best. Stap Wan memberi input yg baru pada aku..
Askar bukan sekadar askar.
Means kita kena jadi askar yang baik.
Askar yang baik adalah askar yang jaga tatsusila peperangan.
Tak tinggal solat. Jaga akhlak dll.
(Nanti Continue)

Posted at 03:34 pm by hifzaili
Comments (2)  

Monday, March 16, 2009
C++ Programming

#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
void printMenu(float value_meal[4][3]);
void getType(int& num_meal);
void getSize(char& size_type,int num_meal);
void getQty(int& meal_qty,int& num_meal,char size_type);
void assignArrayNum(char size_type,int& size_num,int& num_meal);
void priceMeal(int& num_meal,int& size_num,float value_meal[4][3],int& meal_qty,float& total_price);
void printSideDish(float& side_dish1,float& side_dish2,float& side_dish3);
void getSideDishType(int& sd_num);
void getSideDishQty(int& sd_qty,int& sd_num);
void priceSideDish(int& sd_num,int& sd_qty,float& side_dish1,float& side_dish2,float& side_dish3,float& total_sdPrice);
void calcGrossPrice(double& sum_meal,double& sum_sd,double& gross_price);
void calcDiscount(char& member,double& gross_price);
void calcTax(float& final_price,double& gross_price);
void calcPayment(float& money_paid,float& final_price,float& money_change);
void printReceipt(int iteration_meal,float num_total_price[],double sum_meal,int iteration_sd,float num_total_sdPrice[],
                  double sum_sd,char member,double gross_price,float final_price,float money_paid,float money_change);
int main()
{
    float value_meal[4][3]={{5,5.5,6},
                            {6.5,7,7.5},
                            {8,8.5,9},
                            {9.3,9.6,9.8}};
    float side_dish1=2.5;
    float side_dish2=1.5;
    float side_dish3=3.0;
    
    int num_meal;
    char size_type;
    int meal_qty;
    int size_num;
    float total_price;
    int sd_num;
    int sd_qty;
    float total_sdPrice;
    double gross_price;
    char member;
    float final_price;
    int addorder;
    int iteration_meal=0;
    int iteration_sd=0;
    float num_total_price[iteration_meal];
    float num_total_sdPrice[iteration_sd];
    double sum_meal;
    double sum_sd;
    float money_paid;
    float money_change;
     
    printMenu(value_meal);
   
    do
    {
    getType(num_meal);
    getSize(size_type,num_meal);
    getQty(meal_qty,num_meal,size_type);
    assignArrayNum(size_type,size_num,num_meal);
    priceMeal(num_meal,size_num,value_meal,meal_qty,total_price);
    num_total_price[iteration_meal]=total_price;
    cout<<endl;
    cout<<"Enter 1 to add order and 0 to proceed"<<endl;
    cin>>addorder;
    iteration_meal++;
    }while(addorder==1);
   
    for(int i=0;i<iteration_meal;i++)
    {
      sum_meal=sum_meal+num_total_price[i];               
    }
    cout<<setprecision(2)<<fixed;
   
    printSideDish(side_dish1,side_dish2,side_dish3);
   
    do
    {
    getSideDishType(sd_num);
    getSideDishQty(sd_qty,sd_num);
    priceSideDish(sd_num,sd_qty,side_dish1,side_dish2,side_dish3,total_sdPrice);
    num_total_sdPrice[iteration_sd]=total_sdPrice;
    cout<<endl;
    cout<<"Enter 1 to add order and 0 to proceed"<<endl;
    cin>>addorder;
    iteration_sd++;
    }while(addorder==1);
   
    for(int i=0;i<iteration_sd;i++)
    {
      sum_sd=sum_sd+num_total_sdPrice[i];                
    }
    cout<<setprecision(2)<<fixed;
   
    calcGrossPrice(sum_meal,sum_sd,gross_price);
    calcDiscount(member,gross_price);
    calcTax(final_price,gross_price);
    calcPayment(money_paid,final_price,money_change);
    printReceipt(iteration_meal,num_total_price,sum_meal,iteration_sd,num_total_sdPrice,sum_sd,member,gross_price,final_price,
                 money_paid,money_change);
   
    system("pause");
    return 0;
   
}

void printMenu(float value_meal[4][3])
{
     cout<<setprecision(2)<<fixed;
     cout<<"The Menu that we offer and its price is \n"<<endl;
     cout<<"Menu Name   Size(S) Size(M) Size(L)"<<endl;
     for(int i=0;i<4;i++)
     {
        cout<<"Mc Value "<<i+1<<"    ";
        for(int j=0;j<3;j++)
        {   
             cout<<value_meal[i][j]<<"   ";
        }
        cout<<" \n";
     }
   
}

void getType(int& num_meal)
{
     cout<<"-------------------------------------------------------------------------------"<<endl;
     cout<<endl;
     cout<<"Which number of Mc Value you want to order?"<<endl;
     cin>>num_meal;
    
     while(num_meal!=1&&num_meal!=2&&num_meal!=3&&num_meal!=4)
     {
      cout<<"The number of value meal you want is not available.Please re-enter: "<<endl;
      cin>>num_meal;
     }
    
}

void getSize(char& size_type,int num_meal)
{
     cout<<endl;
     cout<<"Which size type you want to order for McValue number "<<num_meal<<" ?"<<endl;
     cin>>size_type;
    
     while(size_type!='s'&&size_type!='S'&&size_type!='m'&&size_type!='M'&&size_type!='l'&&size_type!='L')
     {
      cout<<"The size of value meal is not available.Please re-enter(s,m or l only): "<<endl;
      cin>>size_type;
     }
}

void getQty(int& meal_qty,int& num_meal,char size_type)
{
     cout<<endl;
     cout<<"How many Mc Value number "<<num_meal<<"("<<size_type<<" size) did you want to order?"<<endl;
     cin>>meal_qty;
}

void assignArrayNum(char size_type,int& size_num,int& num_meal)
{
     if(size_type=='s')
     size_num=0;
     else if(size_type=='m')
     size_num=1;
     else if(size_type=='l')
     size_num=2;
    
     num_meal=num_meal-1;
}

void priceMeal(int& num_meal,int& size_num,float value_meal[4][3],int& meal_qty,float& total_price)
{
     cout<<endl;
     total_price=(value_meal[num_meal][size_num])*meal_qty;
     cout<<"Your total meal price is: "<<value_meal[num_meal][size_num]<<" x "<<meal_qty<<" = "<<total_price<<endl;
     cout<<"-------------------------------------------------------------------------------"<<endl;
}

void printSideDish(float& side_dish1,float& side_dish2,float& side_dish3)
{
     cout<<"-------------------------------------------------------------------------------"<<endl;
     cout<<endl;
     cout<<"The menu of side dishes that we offer and its price \n"<<endl;
     cout<<"Side Dish Name  Price"<<endl;
     cout<<"1)Coleslaw      "<<side_dish1<<endl;
     cout<<"2)Ice Cream     "<<side_dish2<<endl;
     cout<<"3)Potato Chip   "<<side_dish3<<endl;
}
   
void getSideDishType(int& sd_num)
{
     cout<<"-------------------------------------------------------------------------------"<<endl;
     cout<<endl;
     cout<<"Which number of side dish did you want to order?"<<endl;
     cin>>sd_num;
    
     while(sd_num!=1&&sd_num!=2&&sd_num!=3)
     {
      cout<<"The number of side dish you want is not available.Please re-enter: "<<endl;
      cin>>sd_num;
     }
}

void getSideDishQty(int& sd_qty,int& sd_num)
{
     cout<<endl;
     cout<<"How many side dish num "<<sd_num<<" did you want to order?"<<endl;
     cin>>sd_qty;
}    

void priceSideDish(int& sd_num,int& sd_qty,float& side_dish1,float& side_dish2,float& side_dish3,float& total_sdPrice)
{
     if(sd_num==1)
     {
         total_sdPrice=side_dish1*sd_qty;
         cout<<endl;
         cout<<"Your total side dish price is: "<<side_dish1<<" x "<<sd_qty<<" = "<<total_sdPrice<<endl;
         cout<<"-------------------------------------------------------------------------------"<<endl;                                     
     }
     else if(sd_num==2)
     {
         total_sdPrice=side_dish2*sd_qty;
         cout<<endl;
         cout<<"Your total side dish price is: "<<side_dish2<<" x "<<sd_qty<<" = "<<total_sdPrice<<endl;
         cout<<"-------------------------------------------------------------------------------"<<endl;                                     
     }
     else if(sd_num==3)
     {
         total_sdPrice=side_dish3*sd_qty;
         cout<<endl;
         cout<<"Your total side dish price is: "<<side_dish3<<" x "<<sd_qty<<" = "<<total_sdPrice<<endl;
         cout<<"-------------------------------------------------------------------------------"<<endl;                                    
     }
}

void calcGrossPrice(double& sum_meal,double& sum_sd,double& gross_price)
{
     gross_price=sum_meal+sum_sd;
     cout<<endl;
     cout<<"-------------------------------------------------------------------------------"<<endl;
     cout<<"Total value meal price is : "<<sum_meal<<endl;
     cout<<"Total side dish price is  : "<<sum_sd<<endl;
     cout<<"Your Gross price is       : "<<gross_price<<endl;
     cout<<"-------------------------------------------------------------------------------"<<endl;
}

void calcDiscount(char& member,double& gross_price)
{
     cout<<endl;
     cout<<"Are you the member of McDonals?Enter y for yes and n for no: "<<endl;
     cin>>member;
     cout<<endl;
    
     if(member=='y')
     {
       gross_price=gross_price*0.8;
       cout<<"Your gross price after discount 20% is: "<<gross_price<<endl;
     }  
}

void calcTax(float& final_price,double& gross_price)
{
     final_price=(gross_price*0.03)+gross_price;
     cout<<"Your final price after tax of 3% is   : "<<final_price<<endl;
     cout<<"-------------------------------------------------------------------------------"<<endl;
    
}

void calcPayment(float& money_paid,float& final_price,float& money_change)
{
     cout<<"Your final price after tax of 3% is   : "<<final_price<<endl;
     cout<<"Your payment is \t\t      : ";
     cin>>money_paid;
    
     while(money_paid<final_price)
     {
      cout<<"You pay less than the final price.Please add another "<<abs(money_paid-final_price)<<endl;
      cout<<"Your payment is \t\t      : ";
      cin>>money_paid;
     }
    
     money_change;
     money_change=money_paid-final_price;
     cout<<"Your change is \t\t\t      : "<<money_change<<endl;
     cout<<"-------------------------------------------------------------------------------"<<endl;
}

void printReceipt(int iteration_meal,float num_total_price[],double sum_meal,int iteration_sd,float num_total_sdPrice[],double sum_sd,char member,double gross_price,float final_price,
                  float money_paid,float money_change)
{
     cout<<endl;
     cout<<"Your receipt: "<<endl;
     cout<<"Value meal price: "<<endl;
      for(int i=0;i<iteration_meal;i++)
    {
      cout<<"\t\t "<<i+1<<".Order "<<num_total_price[i]<<endl;               
    }
    cout<<setprecision(2)<<fixed;
    cout<<"\t\t Total="<<sum_meal<<endl;
    
    cout<<"Side dish price: "<<endl;
      for(int i=0;i<iteration_sd;i++)
    {
      cout<<"\t\t "<<i+1<<".Order "<<num_total_sdPrice[i]<<endl;               
    }
    cout<<setprecision(2)<<fixed;
    cout<<"\t\t Total="<<sum_sd<<endl;
    
     if(member=='y')
     {
       cout<<"Gross price after discount 20% is = "<<gross_price<<endl;
     }  
     else
     {
       cout<<"Gross price is                    = "<<gross_price<<endl;
     }
     cout<<"Final price after tax of 3% is    = "<<final_price<<endl;
     cout<<"Your payment is \t\t  = "<<money_paid<<endl;
     cout<<"Your change is \t\t\t  = "<<money_change<<endl;
     cout<<"-------------------------------------------------------------------------------"<<endl;
     cout<<"                      THANK YOU AND COME AGAIN                                 "<<endl;
     cout<<"-------------------------------------------------------------------------------"<<endl;
    
}

    
     
    

 

Posted at 11:50 am by hifzaili
Make a comment  

Tuesday, March 10, 2009
Antara cinta dan cita-cita

Kalau sebut cinta je mesti ingat hubungan berpasangan kan? Tak lah.. Aku citer pasal cinta aku pada benda lain..
In the same meaning benda yang kita suka..
Tapi kekadang benda yang kita suka tue tidak selari dengan cita-cita dan mendatangkan masalah..
Masalah yang sering dihadapi oleh diriku ini adalah kurang tidur.. Mau nya tak cukup tidur.. Petang2 main ragbi.. Penat wo.. Kalau dah penat kenapa main? Minat wo.. So, apabila kurang tidur dan kurang rehat.. Performance dalam pembelajaran akan terjejas? Betul.. So how? Kekadang aku monolog sorang2 pon rasa mcm membazir masa.. Tapi bukan semua benda kita boleh cerita kat orang kan? So, at least tak la berat sangat kepala aku ini..

Let me see apa yang nak kena buat untuk hari ni?
1. Submit proposal Elements of Programming.. Status-aku nyer part dah siap.org lain sambung.
2. Assignment Discrete Maths .. Status-Lecturer baru upload hari ni.. Ada masa sampai 20 mac.. Group of 4 person.. So, tak bincang mende pon lagi.
3. Final submission Islamic Worldview - Due date 16 march.. aku tak taip apa lagi.. Nak sampai 100 pages...
4. Lab test Database System 1- Statusnya tadi lecturer tak datang.. so tak buat lagi.. Huhu.
Part2 last adalah pasal Wataniah dan Ragbi..
Wataniah ada Peperiksaan Kawad Kaki.. Tak hafal lagi hukuman2 kawad..
Ragbi plak ntah bila nak start KL league.. Main dah calar balar nieh..

Ok.. Weekend ni jugak la ada McLeague STEADFAST.. Ntah apa aku nak debate pon tak tahu..Takpe juga ada budak2 biro aku yang handal2..

Ok.. See ya.. Dah masuk zuhur nie.. Assalamualaikum...
Lapar.. Nak nie...

Posted at 01:20 pm by hifzaili
Make a comment  

Thursday, March 05, 2009
March 2009

Bulan March dah masuk pun.. Tapi apa yg aku belajar perlu ditingkatkan.. Huhu..
Bulan ni macam banyak sangat benda kena buat dan submit. Kalau tak silap aku.. Bulan nie saja dah ada 4 group project with 4 group presentation.. Poning gak la.. Tapi takpe.. Pelan2 kayuh.. Malam nie ada kelas mencerap bintang di langit..
Petang ni pulak dijadualkan ada friendly match between IIUM Mustang dan Bandaraya Dragon.. Main je lah. Menang kalah soal kedua..

Posted at 08:14 am by hifzaili
Make a comment  

Thursday, February 26, 2009
Apa cher?

At this moment.. Hifzaili is trying to be calm to what had happen..

Adakala kita rasa diri kita hebat.. Tetapi kita lihat ada lagi orang lebih hebat..

Adakala kita rasa kita kuat.. Hakikatnya kita lihat ada lagi orang lebih kuat...

Itu lah kita... Begitu kerdil.. Teringat sabda Rasulullah SAW berkenanaan dengan kota Konstantinopel "Kota Konstantinople akan berjaya ditawan oleh SULTAN yang BAIK, TENTERA yang BAIK dan RAKYAT yang BAIK".

Bukan senang untuk menjadi insan yang baik... Apatah lagi menjadi sultan yang baik mahupun tentera yang baik.. Tetapi itu semua tidak mustahil.. Kalau itu sabda Rasul, ia pasti terjadi..

Alhamdulillah.. Muhammad Al Fateh membuktikan sabda itu dengan menakluk Kontantinopel dan memberi nama Istanbul.. Menjadikan Gereja Aya Sofia sebagai Masjid Aya Sofia..

Apabila teringatkan Muhammad Al Fateh.. Teringat pula Salahuddin Ayubi.. Insan yang menakluk Jurusalem..

Ini juga insan hebat.. Berperang cara Rasulullah..

Malu diriku dengan insan sebegini.. Diuji dengan hebat dan bertambah pula taqwa mereka................


Posted at 10:27 am by hifzaili
Make a comment  

Wednesday, January 28, 2009
Stress dan Study

Assalamualaikum..
Sem 2 di UIA nie mmg serabut..
Dgn study la..
Dgn persatuan la.
Rumah dikampung la..
Tapi, itu semua lumrah la kan..
Nak berjaya tiada jalan mudah..

Even kekadang rasa penat yg amat sangat.
Tapi gagahkan juga..
Demi masa depan la katakan.

Sabtu nie InsyaAllah aku akan penat yg amay giler..
Masakan tidak..
Pagi hingga awal petang akan diadakan kelas Wataniah..
Ini termasuk sekali dengan Physical Training dan kelas la..
Mesti penat punya..
Lewat petang plak ada game rugby..
Sapa opponents pon aku tak ingat..
Layan main sudah,.
Kalau atau menang kita sama2 nantikan
hehe

Baru je lepas upload assigment sebenarnya..
Database Programming
Ntah betul atau tak aku pon tak tahu..

See ya..
Assalamualaikum.

Posted at 11:36 pm by hifzaili
Comments (2)  

Tuesday, January 13, 2009
Kelas Database

Assalamualaikum...

Sewaktu menulis blog ini... Lecturer tgh mengajar database kat depan.

Hehehe...

Posted at 08:01 am by hifzaili
Make a comment  

Tuesday, October 28, 2008
Update on Joko

Dalam bulan 10 ni nak kata busy tak la sangat.. Just kurang idea nak tulis.. So, just citer hal2 biasa je lah erk..

23hb hari tu aku nyer final exam.. Subject Arabic.. Utk insan yg tak penah belajar mcm aku nie agak sukar.. so, aku bedal jer.. Hopefully lulus..

18hb plak lagi best.. Bukan sekadar aku kena telir dgn boss dan jep.. Tapi hari gak aku g Lancang.. Nasir bertunang.. Wah hal aku penah jumpa Nasir tue sekali je pon.. Belasah je lah.. Ronda2 ni mmg feveret.. Boss plak asyik dok bising jer.. Co-Driver yg tak bleh diharap katanya.. Masakan tidak.. Aku tidur je sepanjang jalan.. Ahaha...


Posted at 04:09 am by hifzaili
Make a comment  

Monday, October 06, 2008
Ahmad Hafni

Ini lah Allahyarham Hj Ahmad Hafni Bin Hj Hashim.

Ayah aku. Satu2nya insan yang mengajar aku agar sentiasa berusaha dalam apa jua bidang.


Posted at 05:31 pm by hifzaili
Comment (1)  

Monday, September 29, 2008
Ada motif ker?


Posted at 04:59 am by hifzaili
Comments (3)  

Previous Page Next Page
   

<< June 2017 >>
Sun Mon Tue Wed Thu Fri Sat
 01 02 03
04 05 06 07 08 09 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30

Muhammad Hifzaili
Muhammad Hifzaili
Create Your Badge
Link Cyber Komuniti

VirtualFriends
Friendster
Facebook
Hotmail
Ukhwah.com

Blogger..

Ena
Salman
Dayana
Irfan Khairi
Afdlin Shauki
Hans Isaac
Ako Mustafa
Patrick Teoh

Pengajian Dan Pembelajaran

IIUM
Cosmopoint
Universiti Tenaga Nasional
Penang Free School

Perniagaan
$6.00 Welcome Survey After Free Registration!
Creative Network International
Exabytes - Your Excellent Hosting Partner!

Politik

Pertubuhan Kebangsaan Melayu Bersatu
Parti KeADILan Rakyat Malaysia
Parti Islam Se Malaysia
Parti Tindakan Demokratik
Lim Kit Siang
Parti Sosialis Malaysia

Free JavaScripts provided
by The JavaScript Source


My Websites

Free JavaScripts provided
by The JavaScript Source

Hit Counter
Netflixs

If you want to be updated on this weblog Enter your email here:



rss feed