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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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