Pages

Saturday 29 October 2011

Islam in Canada




Salam and Hi to all readers,

Currently I have dilemma within me due to the tense and hectic university life and I felt like I am far from Allah due to my lack of righteousness and I felt like I want to cry  alone and refrain myself from meeting other people as I know that I am not really good at all..Thats my bad!!I felt like I am far from Allah as I am in a new world, a western world which is far different from my home country.I have realized that I have neglected a lot of things due to my inability to prioritize things  and I need Allah to guide me to His way as I knew this religion will come to a victorious moment soon till the rise of khalifa will come and how about me?I have become a very bad person, a misleading person and I need to get back to the fitrah and  my prone towards the Koran and the Hadiths to get back my self- righteousness. Living in Canada is very different from Malaysia as I knew that I need to deal with non-Muslims even I have a friend who asks me "What is significant to have Muhammad as the name "huhu...They don't even know who is our beloved prophet.My friend S, a Malaysian guy had an English professor who said that our syaria' law is a barbaric law...I am shocked to hear such a scholar,a professor from a prestigious university can say such a verse like that.Even the prime minister of Canada,Stephen Harper has come with a new term.."Islamicism" that could be a threat to the Canada's security.He think that Islam is a kind of a terror religion that encourages its followers to kill other people....to be continued...

-shoutul-humaira-0100-

Tuesday 25 October 2011

Star triangle



Salam and Hi!This is my programme regarding to the star triangle :


# include <stdio.h>
#include <stdlib.h>

int main ( void )
{
       int row=0;
       int size = 5;
       while(row<size)
       {
             int star=0;
             while(star<row)
             {
                    printf("*");
                    star++;
             }
             printf("\n");
             row++;
       }
       system("PAUSE");
       return 0;
}
 - shoutul humaira-2144-

Saturday 22 October 2011

Nested loop


Hi and salam to all ! I would like to share with you guys about my programme regarding to the nested loop :

#include <stdio.h>
#include <stdlib.h>

int main( void )
{
    int size;
    int row;
    int star;

    printf( "Enter size of triangle:\n " );
    scanf( "%d", &size );

    row = 1;

    while( row <= size )
    {
        star = 1;

        while( star <= row )
        {
            printf( "*" );
            star++;
        }

        printf( "\n" );

        row++;
    }

    system( "PAUSE" );
    return 0;
}

Do while looping


Salam and Hi, shoutul nak perkenalkan do while looping

#include <stdio.h>

#include <stdlib.h>

#include <math.h>



int main ( void )

{

       double celcius;

       double fahrenheit;

       int doAgain;

       do

       {

             printf("Enter a value for celcius: \n");

             scanf("%lf",&celcius);



             fahrenheit = (9.0/5.0)*celcius+32.0;



             printf("Temperature of the fahrenheit is: %lf \n",fahrenheit);

             printf("Convert another?(0=no  otherwise - yes):");

             scanf("%d:",& doAgain);

       }

       while (doAgain);

       system ("PAUSE");

       return 0;

}


- shoutul humaira-0211-

Tuesday 18 October 2011

For The Rest of My Life


 

 Selalu dengar lagu nie kalau tension 2 study

- shoutul-humaira-2128-

Sunday 16 October 2011

Pascal Triangle Programme


#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define MINROWS 1
#define MAXROWS 12

int getInputInRange(int,int);
int n_choose_r(int,int);
int factorial(int);
void printRow (int);

int main ( void )
{
int row = 0;
int numRows;
numRows = getInputInRange(MINROWS,MAXROWS);

while(row<numRows)
{
printRow(row);
printf("\n");
row++;
}
system("Pause");
return 0;
}

int getInputInRange(int min,int max)
{
int userInput;
printf("Please enter the integer value between %d and %d\n",min,max);
scanf_s("%d",&userInput);

while(userInput<min||userInput>max)
{
printf("Error:The integer value is not in the expected range\n\n");
printf("Please enter the integer value between %d and %d\n",min,max);
scanf_s("%d",&userInput);
}
return userInput;
}

void printRow(int rowNums)
{
int position = 0;
int coefficient;
while ( position <= rowNums)
{
coefficient = n_choose_r(rowNums,position);
printf("%d 4i",coefficient);
position++;
}
}

int n_choose_r(int n,int r)
{
int c;
c = factorial(n)/factorial(r)*factorial(n-r);
return c;
}

int factorial(int num)
{
int fact = 1;
while ( num > 1 )
{
fact*=num;
num --;
}
return fact;

}


- shoutul-humaira - 1649- 

Tuesday 11 October 2011

We are the Engineers of UBC



Salam and Hi


Lamanye shoutul tak blogging..huhu..bukan apa,shoutul sibuk nak sesuaikan diri dengan persekitaran baru yang agak mencabar tahap gaban nie..huhu..biasa la tempat orang kena la kita sesuaikan diri dulu untuk meneruskan kehidupan sebagai seorang pelajar kejuruteraan. Masa pulak menjadi begitu penting sama ada luangkan masa untuk mengulangkaji pelajaran,membuat kerja rumah ataupun berehat,maksudnya tidur la..hehe..Shoutul pulak pelajar jurusan kejuruteraan,mestila sibuk sikit tetambah berada di salah sebuah universiti yang agak2 popular di dunia nie,memang semua susah la,mana ada yang senang...Kejuruteraan? Semuanya pasal mencari jalan untuk menyelesaikan masalah sama ada masalah yang berkaitan kejuruteraan ataupun mmewujudkan sebuah masyarakat yang seimbang dari semua aspek kehidupan dan jurutera mempunyai tanggungjawab untuk merealisasikan impian tersebut. Sekarang shoutul sudah belajar pasal Pergerakan Bendalir dan Termadinamika...huhu..best2..tapi jalan penyelesaiannya meliputi dua muka surat la jawabnya.
Tajuk kinetik,mass - energy balance haruslah dikuasai sebab tu la asas kepada kejuruteraan.Seorang jurutera juga diajar berkenaan teknologi yang sesuai dengan masyarakat meliputi keselamatan, budaya, etika, agama dan amalan masyarakat setempat demi menjaga keharmonian masyarakat yang terdiri dari pelbagai latar belakang yang berbeza.Perniagaan? Kebanyakan jurutera akan terlibat dengan perniagaan seperti sebagai seorang jurutera yang mewakili syarikat -syarikat besar di mana jurutera perlu berinteraksi dengan clients, stakeholders dan para pekerja syarikat yang lain.Matematik? haha... konsep differentiation dan integration daripada kalkulus menjadi tunjang kepada jalan penyelesaian bagi sesuatu masalah. Algebra,Fungsi,Trigonometri dan limit haruslah berada dalam genggaman bagi seseorang jurutera. Komputer pulak dijadikan sebagai alat kepada seorang jurutera untuk memasukkan input yang agak2 komplikated untuk mendapatkan output yang lebih simple dan programming adalah satu asas kepada penyelesaian untuk masalah yang kompleks. Bahasa C adalah bahasa komputer yang perlu shoutul belajar..huhu..tension.

-shoutul humaira-2349-