Wednesday, December 26, 2012

My Programming Code for Calculating CGPA PPSM UKM 2012

Hi everyone..
especially my 1st year friends in PPSM UKM.
I just finished my coding for calculating our CGPA..
It is a success except it looks quite long
I have used function to simplify it but it just shorten about 25%
Perhaps i should used arrays in it
Whatever it is, follow the instruction in the program carefully..
This code is for Dev C++,
if you use other program you can remove the 'system("PAUSE");'

Enjoy, and plan your final pointer from now :)

-----------------------------------------------------------------------------------

#include <iostream>
#include <iomanip>
#include <string>
using namespace std;

void grading(string&, double&);

int main()
{
    int i, credit, extra;
    double score, calculus, computer, economics, fizis, english, PD, subject, total, overall;
    string grade, add;
 
    credit = 18;
 
    cout<<setiosflags(ios::fixed)<<setiosflags(ios::showpoint)<<setprecision(2);
         
    cout <<"Please enter your respective grades for each subjects."<<endl;
    cout <<"A  (85-100%)"<<endl;
    cout <<"A- (75-84%)"<<endl;
    cout <<"B+ (65-74%)"<<endl;
    cout <<"B  (60-64%)"<<endl;
    cout <<"B- (55-59%)"<<endl;
    cout <<"C+ (50-54%)"<<endl;
    cout <<"C  (45-49%)"<<endl;
    cout <<"C- (40-44%)"<<endl;
    cout <<"D+ (35-39%)"<<endl;
    cout <<"D  (30-34%)"<<endl;
    cout <<"E  (0-29%)"<<endl;
    cout <<"Type 'N' if you're not taking the subject"<<endl<<endl;
 
    cout <<"Calculus : ";
    cin >> grade;
    grading(grade,score);
 
    if (grade == "N")
    {
    score = 0;
    credit = credit-4;
    }
    calculus = score * 4;
 
    cout <<"\nComputer Programming : ";
    cin >> grade;
    grading(grade,score);
 
    if (grade == "N")
    {
    score = 0;
    credit = credit-4;
    }
    computer = score * 4;
 
    cout <<"\nEconomics : ";
    cin >> grade;
    grading(grade,score);
 
    if (grade == "N")
    {
    score = 0;
    credit = credit-3;
    }
    economics = score *3;
 
    cout <<"\nSains Fizis : ";
    cin >> grade;
    grading(grade,score);
 
    if (grade == "N")
    {
    score = 0;
    credit = credit-3;
    }
    fizis = score * 3;
 
    cout <<"\nFoundation English or Academic Communication : ";
    cin >> grade;
    grading(grade,score);
 
    if (grade == "N")
    {
    score = 0;
    credit = credit-2;
    }
    english = score * 2;
 
    cout <<"\nPembangunan Diri : ";
    cin >> grade;
    grading(grade,score);
 
    if (grade == "N")
    {
    score = 0;
    credit = credit-2;
    }
    PD = score * 2;
 
    total = calculus + computer + economics + fizis + english + PD;
     
    for( ; ; )
    {
    cout <<"\nDo you take another additional course:(Y/N) ";
    cin >> add;
 
    if(add == "N")
    break;
 
    else
    {
        cout <<"\nHow much is the course credit hour: ";
        cin >> extra;
        credit = credit + extra;
     
        cout << "\nGrade for the subject: ";
        cin >> grade;
        grading(grade,score);
        subject = score * extra;
        total = total + subject;
    }
}

    overall = total/credit;
 
    cout <<"\n============================================";
    cout <<"\nYour total credits are "<<credit;
    cout <<"\nYour Overall Pointers for Semester 1 is "<<overall<<endl<<endl;
 
    system ("PAUSE");
    return 0;
}

void grading(string& grade, double& score)
{
    if (grade == "A")
    score = 4;
    if (grade == "A-")
    score = 3.67;
    if (grade == "B+")
    score = 3.33;
    if (grade == "B")
    score = 3;
    if (grade == "B-")
    score = 2.67;
    if (grade == "C+")
    score = 2.33;
    if (grade == "C")
    score = 2.00;
    if (grade == "C-")
    score = 1.67;
    if (grade == "D+")
    score = 1.33;
    if (grade == "D")
    score = 1.00;
    if (grade == "E")
    score = 0;

    return;
}

Sunday, December 23, 2012

My Targets for Semester 1 Final Results


I'm taking these 6 subjects for this semester
Hope, I could get what I had aim for..

Calculus I : A- (4 credit hour)
Computer Programming : A (4 credit hour)
Economics : A- (3 credit hour)
Science Fizis : B+ (3 credit hour)
Academic Communication (English) : A- (2 credit hour)
Pembangunan Diri (Must-take course) : A- (2 credit hour)

My Final Semester 1 CGPA Target: 3.69 (Dean's List)

Hopefully, I could get what I aim for..
I will try all my best to prepare before and during the exam..
Pray for my success..and
Pray for our success together :)


UKM Grading Marks


This is maybe the UKM's Grading Marks..
I'm taking it from website of FTSM UKM.
So, I not sure it is applicable for all the faculties,
but probably it will be the same :)

I had to say, it is hard to score A with 85+ marks
but, it also looks easier to pass the exam.
So, make your targets for your final grade for every subjects before the exam..
And try to achieve it by working for it.
I believe most of us, could qualify for CGPA of 3.00 and above
We just need to work hard and smart
So, all the best to all of you :)

Friday, December 14, 2012

I am a champion

I just remember about my Induction Camp last week..
Our College Felo, brother Faizal ask us something about who am i..
And continue with spiritual words..that make us energetic
It almost exactly like this one..
Understand the words precisely everyone :)
Try to relate this football talk, with our real life
who am i... I'm the Champion!!

Home..

Finally..arrived home..
Hee..nothing this happy then i'm being in my room
Doing what i wanna do..
it has been 26 days since i last here
(I'm counting it all along..heehee)

The moral of the story..
Take a break and go home..bye :)


Move on in Life =)


There is a message that I want to give you..
life move on, so we must move on too..
this is a true story that happened to me..

I may have achieved a bunch of achievements..
I may have became one of the best student before..
I may have scored maximum result in UPSR and PMR with 5As and 8As respectively
I may have got a couple of awards
I may have been the top 10 scorer in Add Maths for 2 years in a row
I may have thought I am unstoppable in achieving success
I may have become overconfident with myself

Until I thought, I could easily get straight 10As in SPM
This is the time where I depressed the most
Not because of break up with girlfriend or someone dying
but because of myself, where I let myself down
To be honest, I just score 6As, 4Bs
although the school and parents already set the 10As target for me
I know, some feel its not that bad..come on
I think about that myself too..
There is a lot more people who got worse results
I know, my parents don't blame me for the results
But, I just can't forgive myself,
because I just failed to fulfill people's expectation
My confidence level are down..


It takes me a week, for me to be able to overcome this problem
And after a month, I get the offer to foundation in sciences at UiTM
First of all, I'm really in a fiery mood
I really want to prove myself
The mood increase during the orientation, where the facilitator said
I believe all students here have at least 7As and above which is not me
It just made me more determined to prove myself that I'm better or equivalent to them
I remember in my 1st test there in PALAM,
where I score 100% in Physics, being the only one across my lecture hall to get 100%
Eventhough, I just get a very bad B in SPM Physics..
This success proven that SPM does not prove anything on a person
From this success, I grew my confidence to be stronger
I didn't even have a laptop during my foundation years
My parents only promise to buy it for me when I continue my degree
I really thankful to them, because I could not see much the use of laptops there
Most of the marks come from quizs, tests, written lab reports and final exam.
So the whole one year I been spending time with the books and bed..
And yeah! I get excellent 4.00 there where I got As for all subjects except Bio
Bio~ my subject that never get an B+ or grades above ~since I ever studying Bio :P
Luckily, the pointer is not affected
as only the 3 best subjects are chosen for the calculation of pointer

I got my 1st interview for MyBrainSc scholarship program for KPT
Quite a good experience, especially when they asked
"If you are give RM100,000, how do you spend it in a year?"
I still remember what I said " I will spend..
RM10,000 for charity as a zakat for this prize money
RM40,000 will be spend for me to take short class in Economics and Stocks
RM50,000 will be used to buy the correct stocks, and then hopefully i will get my RM100,000 back"
The interviewer smile at me while i explain my plan :)
In short, I get the scholarship for my degree :D



People who forget the past are condemned to repeat it
History could repeat itself
That's why I said, no matter your past is good or bad
Don't just forget about it, and always remember there are reasons behind it
Just take it as a bad experience and you are mend not to repeat it
if the experience is good, still take noticed so next time it will never come out bad

Whatever experience you faced in life..
What's important..do not GIVE UP!!
I have a friend who decided to restart his degree again at the age of 22
after facing his down moment during his degree...
What's good? He is not give up =)
Yet, he said he want to prove himself..
and be what he not used to be in his university life before..
From what I see, he want to come out stronger than he used to..
Everybody makes mistakes, be we are doomed if we not stand up from it..
So, Keep on striving for success..and make amends from your mistakes..OK!!


Wednesday, December 12, 2012

Introduction :)


Welcome! This is my third blog and my only active blog
After 2 of my blogs had been hacked..
the first one is deenicoolz.blogspot.com where i wrote about my school memories and last updated in 2010 after I finished my SPM..
While the second one is diaridakwah.blogspot.com where i wrote my tazkirah and some wise words i heard in my life before.
And today, on this awesome date of 12/12/12..i will launched my 3rd blog of me :)
Read and follow if you like.. your comments are welcome..
I might make a lot of grammatical errors but just ignore it, okay :)

Let me tell your a little bit about myself..
I'm izzudeen but you can easily called me ideen..
I'm 19 and a first year university student in Universiti Kebangsaan Malaysia
I'm a former SKTSA and SMK Sri Andalas student in Klang until i'm form 3 in 2008
I have some awesome memories there :)
Then, I continue my studies in ASiS from 2009 to 2010..
I'm the 7th batch there called PATRIOTS VII and we still proud of it..
Our friendship now are still close, although we pursue our studies in different places..
I'm proud of them..
Then, after SPM which i have a disaster result (only Allah knows why)
I could not apply any scholarships except an application in UPU for foundation(asasi) or diplomas..
Hoping to get foundation in UM...
However, i get the offer to foundation in UiTM Puncak Alam in 2011-2012..
Yet, it is an awesome experience there in PALAM..
And the results of my 1 year course lead me to my newly home, UKM.
Now, I'm in UKM.. I'm doing degree in Statistics in School of Mathematics of Faculty of Science and Technology..
Although, i prefer actuarial science and mathematics more
but, we'll see..maybe Allah have other plans for me
Hopefully it ended happily ever after :D