## Description

**Binary Number?**

Write a program that takes an integer as an input and determine if it is a binary number? For instance, 1010 is a binary number but 1012 is not.

# 2. Exponentiation

Write a program that can compute the value of e^{x}, for a given value of x, using Taylor series expansion, as follows:

e^{x} = 1 + x + (x^{2} / 2!) + (x^{3} / 3!) + (x^{4} / 4!) + (x^{5} / 5!) + ….

The more the series is expanded, greater the accuracy. Take number of terms, for accuracy, as an input.

# 3. Line Printing

Write a program that takes as an input parameters of a linear line and print a line using asterisks. For instance, the following line will be printed for y = 2x + 1 and end points (0,1) and (3,7):

*

*

*

*

# 5. Triangle Patterns

Write a program to print triangular patterns (as shown below) up to as many number of lines as input by the user. For instance, number of lines used in the following patterns is six.

*
** *** **** ***** ****** |
*
** *** **** ***** ****** |
******
***** **** *** ** * |
******
***** **** *** ** * |
*
*** ***** ******* ********* *********** |

(a) | (b) | (c) | (d) | (e) |