Question: Write problem definitions and algorithms for the solution of the following problems: QUESTION # (1.) Write an algorithm that takes 2 integers as input from

Write problem definitions and algorithms for the solution of the following problems: QUESTION # (1.) Write an algorithm that takes 2 integers as input from the user and displays their greatest common divisor (GCD) by division method (as discussed in intro to algorithms class of this course). Input Validation: Both integers should not be 0. QUESTION # (2). Write an algorithm that takes an unsigned integer as input from user and finds and displays whether the number is palindrome or not. Make sure that the number entered in non-negative. QUESTION # ( 3 )The value ex can be approximated by the sum 1 + x + x2/2! + x3/3! + ... + xn/n! Write an algorithm that takes a real value x and an integer n as inputs and outputs the above sum of n terms as the value of ex. You can use the predefined power(x, y) function to find powers of x. Your algorithm should repeat the calculation for new values of x and n until the user says she or he doesn't want to continue. Use variable of type real to store the factorials. Please solve all questions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!