Quote:

The amount of happiness that you have depends on the amount of freedom you have in your heart

Monday 31 October 2011

Access to Assinments

Go to my "CPP Blog" to download Assignments and solutions.

Free Hugs       Muhammad Farrukh

MTH-101

CS403-Database Management Sys

CS401-SPRING-2010(ASSIN's SOL)

Saturday 29 October 2011

STA - 301 FALL 2011

Addition-subtraction

#include <iostream.h>
// Addition , subtraction and multiplication
int main()
{
    int number1, number2, number3, number4, sum, sub, mul;
    sum=number1+number2-number3*number4;
    cout<<"\n\t Please visit 'cpp-hotseat.blogspot.com' for more examples.\n"<<endl;
    cout<<"\n\t This small program is written by Muhammad Farrukh \n"<<endl;
    cout<<"\t\t\t BS (Computer Science)\n"<<endl;
    cout<<"\t\t\t   6th semester \n\n"<<endl;
    cout<<" \nEnter Number 1:\n"<<endl;
    cin>>number1;
   
    cout<<"\nEnter Number 2: \n"<<endl;
    cin>>number2;
   
    cout<<"\n\nSum is : \n"<<number1+number2<<endl;
   
    cout<<"\nEnter Number 3 : \n"<<endl;
    cin>>number3;
    cout<<"\n\nAns is : \n"<<number1+number2-number3<<endl;
    cout<<"\n\n Thank you for using this prog.\n"<<endl;
   
    cout<<"\nEnter Number 4 : \n"<<endl;
    cin>>number4;
    cout<<" \nAnswer after Multiplication : \n"<<number1+number2-number3*number4<<endl;
   
    cout<<"\n\tMuhammad Farrukh :-) "<<endl;
   
  
   
}   

Thursday 27 October 2011

Sale Tax Calculation

#include <iostream.h>

int main()

{

int price;

cout << "Please enter meal price? "; // Printing the meal price message to get value

cin >> price; // getting the value from user

float saleTax;

if(price<=100)

{

saleTax = 0.0 * price;

}

else if(price <= 200)

{

saleTax = 0.1 * price;

}

else

{

saleTax = 0.2 * price;

}



int totalAmount;

totalAmount = price + saleTax; // adding Price and Sale Tax

cout << "The total price of Meal is = " << totalAmount << endl;

getch();

}

Chand Sifarish - HD-Song

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















MyBlog M.Farrukh

Tuesday 25 October 2011

Check the correct number

C++ code to check the Correct Number

#include <iostream.h>
int main()
// This is a small program to check correct number

{

int x;
x=0;
cout<<"\n enter nmber \t"<<endl;
cin>>x;

if (x==11){
cout<<"\n correct" <<endl;

cout<<"\n\t This prog is written by Muhammad Farrukh 'muhammadfarrukh149@gmail.com'"<<endl;
cout<<"\n\t\t hahaha..........magar mujhy C++ nhi ati "<<endl;
}

else{
if (x!=11|x<10){

cout<<"\n invalid and number is less than 10" <<endl;
cout<<"\n\t Correct Number is 11 "<<endl;


}
}



Monday 24 October 2011

Corruption

CORRUPTION:

            Why the corruption is increasing in society/ world? Every department is involved in corruption. Consultants: - they are corrupt people in the world, who are grabbing money from the poor/ needy people. Those consultants show the  beautiful dreams to the new generation destroying their future. They are playing with their lives.

Judges: they are very important persons in the world who do the justice. While they are not doing that. There is no justice in the court.

Police:
Public: we people are also involved in corruption because we are not standing against the corrupt activities occurring around us.
Government Policies: Government is involved in corruption; there are no rules and regulations, no law and order.
Politicians, chief ministers, president they are all involved in it because all they strong people don’t pay taxes. Taxes are only for poor people.

HOW TO REDUCE THE CORRUPTION:
Local Ownership, Action Research, services Delivery Surveys, Integrity Surveys, Action Plans.On the basis of these four broad contexts, there are four basic arenas in which action can betaken against corruption within a country:

First, the basic institution of good governance needs to be strengthened. At the head

of this list is the judiciary, which is itself the guardian of laws and integrity. But if the

judiciary is itself corrupt, the problem is compounded and the public at large without

rule of law.

Second, the capacity and integrity of enforcement need to be enhanced. The best law

has no value if it is not enforced. The best judges and magistrates are wasted if cases

are never brought to them. Good investigations are wasted effort if the judge or

magistrate is corrupt.

Third, a government needs to put in place a solid set of preventive tools. Codes of

Conduct and strong independent oversight bodies can help ensure that the acceptable

standards of behavior are respected in both the private and public sector. Political

leaders in all branches of government, legislative and judiciary can be required to

have transparency in their own financial dealings through asset disclosure for

themselves and their family members.

Fourth, the public needs to be educated on the advantages of good governance and

participate in promoting it. The public itself bears a large share of responsibility for

insisting on honesty and integrity in government and business. The public needs to learn:
(a) not to let anybody buy their vote;
(b) not to pay bribes themselves;
(c) to eport incidents of corruption to the authorities; and (d) to teach their children the right values;

Hotseat       >>>>>Muhammad Farrukh

Parents


Out Sweet Parents:

They both Mother and Father are the angels, They born us by the mercy of ALLAH, They grow us / children’s without showing that what problems they are facing for their childes. There is no one who will not resist us in the world to become a successful man in the world, society. After that it is also our duty and responsibility to respect, Love, care of our parents till they are alive. Because ALLAH give parents to us only one time in our whole life. Think about the people that you most admire in your life. Do you attribute any of their greatness to the people that raised them? Often, we do not even think about the fact that there were most likely two people who were most influential in making a person who they are. Of course I am referring to his or her parents. If a person is great, remember that greatness is not achieved in a vacuum. There were people who sowed the seeds of greatness.

They are only the parents who support us, and have dreams to see their children’s to become a great person from their parents. They feel happiness when children’s become the officers, doctors, engineers.

You are both special in every way,
Encouraging me more & more each passing day. You both are the reason why I'm so strong.

MAY ALLAH BLESS OUR PARENTS, AND MAY THEY LIVE LONG.


Hotseat
Muhammad Farrukh