Find and display the values of both sides of the following mathematical series expression and
an absolute difference of both sides. User can input either of angles in degree 90, 60, 30 etc.
sin(x) = x - ((x^3)/3!)+((x^5)/5!)-((x^7)/7!)+((x^9)/9!)
Once the user enters the angle in degrees. Your program should do the following (Write separate
functions for a, b, c, and d)
a) LHS Result
b) RHS Result
c) Difference
d) First term, series of two terms, series of three terms, series of four terms, series of five terms.
Write C++ program: Lets create your first cipher!!! Cipher is an algorithm that you can use to encrypt and decrypt sensitive information. In an information system, sensitive information is stored in a 16-bit unsigned number, where bit-wise information is stored in following format, 9-bits are reserved for account number and 7-bits are reserved for customer ID.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
C C C C C C C A A A A A A A A A
a) Using bit wise operators, write a function to extract customer ID
b) Another function to extract account number.
c) Due to security concerns, you have been given a task to create a cipher. Write a function to encrypt the 16-bit number (X) using the following expression.
y = aX + b, consider a = 5 and b = 233
d) Write another function to decrypt the number and display the original number.
Write a C++ program to Find and display the values of both sides of the following mathematical series expression and an absolute difference of both sides. User can input either of angles in degree 90, 60, 30 etc.
sin(x) = x − (x^3 / 3!) + (x^5 / 5!) − (x^7 / 7!) + (x^9 / 9!)
Once the user enters the angle in degrees. Your program should do the following (Write separate functions for a, b, c, and d)
a) LHS Result
b) RHS Result
c) Difference
d) First term,
series of two terms, series of three terms, series of four terms, series of five terms.
How to display the product of numbers divisible by 4 from 4 to 50 using do while loop