[Solved] Console Assignment2-input from user and check number is binary or not

$25

File Name: Console_Assignment2-input_from_user_and_check_number_is_binary_or_not.zip
File Size: 649.98 KB

SKU: [Solved] Console Assignment2-input from user and check number is binary or not Category: Tag:
5/5 - (1 vote)
  1. 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 ex, for a given value of x, using Taylor series expansion, as follows:

ex = 1 + x + (x2 / 2!) + (x3 / 3!) + (x4 / 4!) + (x5 / 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)

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Console Assignment2-input from user and check number is binary or not
$25