Post has attachment
Learn Algebra:
Algebra is a branch of mathematics that deals with relations, operations and their constructions. It is one of building blocks of mathematics and it finds a huge variety of applications in our day-to-day life.
http://goo.gl/HnkAui
Hello Friends!
Problem 2:
A binary number is a sequence of bits (binary digits – 0’s and 1’s) of the form BnBn-1……B1 B0, where each Bi is a bit. The decimal equivalent is calculated by Bn * 2n+ Bn-1 * 2n-1 + … + B1 * 2 + B0.

Write a program to input a binary number and output the decimal equivalent.
The sample input will not have more than 31 individual bits (i.e., the largest value to be entered is 1111111111111111111111111111111).

Example 1:
Enter binary number: 101
In decimal: 5

Example 2:
Enter binary number: 11111
In decimal: 31
This is the first problem I am going to post in this group. With this problem, we are starting our online programming session. From now on, we will post/solve/discuss our problems and become more active in group community. Post your solution/comment below. wish you luck :)

If n is an integer greater than 0, n factorial (n!) is the product:
n* (n-1) * (n-2) * ( n-3)… *
By convention, 0! = 1.

You must write a program that allows a user to enter an integer between 1 and 19. Your program must then compute the factorial of the number entered by the user.

Example 1:
Enter a number: 4
4! = 24

Example 2:
Enter a number: 7
7! = 5040
Solve this :-......

Three men go to a hotel to rent a room.
The desk clerk says there is a 3 bed suite for \$30.00.
Each man pays \$10.00 and go to the room.
The hotel manager questions the desk clerk.
The hotel manager tells the desk clerk, the room is only \$25.00,
and gives the clerk 5 dollar bills to pay the men back.

On the way to the room the clerk realizes 5 dollar bills can’t be split
3 ways. Dishonestly, he keeps 2 dollars and gives each man back one dollar.

Now the 3 men paid \$27.00 for the room, and the clerk has 2 dollars.

Where did the other dollar go? \$27.00 + \$2.00 = \$29.00!
Easy as eating rice :-

62 - 63 = 1

Move one digit only to make this equation true.

(RULE :-
1.Can't move any lines.
2.No new digits can be added.
3.Can't swap any digits.
)

1+4=10

2+8=20

3+16 =??
Which one is faster:
1) while(condition):
if (condition):
body
else if (condition):
body
else if (condition):
body
and so many else if.....
2) while(condition):
if (condition):
body
continue
else if (condition):
body
continue
else if (condition):
body
continue
and so many else if....
3) while(condition):
switch(x):
case 1: body
break
case 2: body
break
and so on....
Programming Contest Class (Beginner):
Friday (March 1, 2013)
Room : 102
Post has attachment