Class problems 02/18/2016 CS225 1. Write a program to take input of an integer and find out if it’s

Class problems             02/18/2016           CS225

1.     Write a program to take input of an integer and find out if it’s even or odd.

2.     Write a program to take input of temperature in Celsius and convert it into Fahrenheit.

3.     Write a program to take input of a 5 digit number and find if it’s a palindrome or not.

4.     Write a program to find:

a. To find the value of e for:

      e = 1 + 1/1! + 1/2! + 1/3! + 1/4! + … upto n terms

      Take the input of “n” from the user

b. To find the value of e for:

      e­x = 1 + x/1! + x2/2! + x3/3! + x4/4! + … upto n terms

      Take the input of “n”  & “x” from the user

5.     Write one program using switch/case/default that will offer user choice for all the above ^ programs (1 – 4.b) and will run in an infinite loop. One option (case) will also be to exit.

Output:

1. Even/Odd

2. Temperature Conversion

3. Palindrome test

4. Find the value of e

5. Find the value of e to the power x

6. Exit

Enter your option (1-6) and press enter:

    • Posted: 4 years ago
    • Due: 20/02/2016
    • Budget: $5

    Looking for a similar assignment? Get help from our qualified experts!

    "Our Prices Start at $9.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!":

    Order a Similar Paper Order a Different Paper