Program to take input of an integer and check if palindrom

Assignment Help Basic Computer Science
Reference no: EM13977139

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:

Reference no: EM13977139

Questions Cloud

Difference between ebit and taxable income : The difference between EBIT and taxable income must be the interest expense. Use this same procedure to complete similar Problems.] Write out your answer completely. For example, 25 million should be entered as 25,000,000. Round your answer to the..
Price earnings valuation method : Calculate the price of the common stock using the Price Earnings Valuation Method - Not to be confused with a Price/Earnings Ratio. (use the most current published financials for the calculation and show your work)
What is the limiting velocity after the parachute opens : What is the limiting velocity after the parachute opens?  Find the distance fallen before the parachute opens.
Estimate number of shakes necessary to produce enough energy : Estimate the number of shakes (one motion of the magnet back and forth) necessary to produce enough energy for 5.0 minutes of operation.
Program to take input of an integer and check if palindrom : 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.
Find the amount of salt in the tank at any time prior : Find the amount of salt in the tank at any time prior to the instant when the solution begins to overflow.
What is the magnitude of the friction force : A 50.0-kg skier starting from rest travels 200 m down a hill that has a 20.0o slope and a uniform surface. When the skier reaches the bottom of the hill, her speed is 30.0 m/s. How much work is done by friction as the skier comes down the hill?
Determine the force the vine exerts on tarzan at the instant : Determine the force the vine exerts on him at the instant before he lets go (the vine is straight down when he lets go).
Charley keuscher : There are different programs and initiatives that can be undertaken by one or all organizational leaders as efforts towards social responsibility with involvement of all the stakeholders. They include communicating and training workers together with ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Main types of file managers

There are three main types of file managers used in different distributions of Linux. Orthodox file managers or "Commander-like" file managers have three windows (two panels and one command line window).

  Explain the rmo csms marketing subsystem

Using Microsoft Visio or an open source alternative such as Dia, create a use case graphic rendering that shows all actors and all use cases for the RMO CSMS marketing subsystem. Note: The graphically depicted solution is not included in the requi..

  Compare and contrast the four levels of protection

Compare and contrast the four levels of protection used during spill response and cleanup activities. In your discussion, provide an example of a spill or cleanup scenario for each level

  Demonstrate an ability to follow and fulfil specifications

Demonstrate technical proficiency through the successful and confident utilisation of the software techniques and tools demonstrated in the tutorial.

  The term means making an organization ready

QUESTION 1 The term means making an organization ready for possible contingencies that can escalate to become disasters.QUESTION 2 Mainframes are perceived as being more robust than n-tier server architectures.

  How do computer systems minimize memory fetches

List and define the three basic interfaces enabled by the operating system. How do computer systems minimize memory fetches? Describe the difference between assemblers, compilers and interpreters. What is a transaction manager

  Database design vince''s viny

Based on your selected scenario from Hands-On Database, complete the "To Do" activities described at the end of Chapter 4 of the textbook. Your response should be submitted as a Word document.

  Examine at the development of technology

Examine at the development of technology over the last 10 years. How do you think we will be interacting with technology in 20 years time compared to now. Be imaginative.

  Explain local-state-national resources unintentional injury

Explain the local, state, and national resources that are available for addressing unintentional and intentional injuries in American communities.

  initialize the temperature to 100 degrees celsius

Initialize the temperature to 100 degrees Celsius. In a loop, decrement the Celsius value and compute the corresponding temperature in Fahrenheit until the two values are the same.

  Calculate the net expected value for the project risks

Calculate the net expected value for the project risks and opportunities cited above. How much should you plan for your contingency reserve budget based on the above?

  Determine value t (n) and expand the recurrence relation

Consider the following recurrence relation: T (1) = 6, and for n > 1, T (n) = 1 + 2T ([n/2]) Note. [x] is the the floor function. It rounds x down to the nearest integer.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd