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

  Explain order processing program to keep track

You're asked to implement an Order Processing program to keep track of orders for customers and process them if needed. The program will read a text file containing customer orders in arbitrary order and then process them Class Design

  Identify several potential challenges

Use the DOQ-IT resource "A Systems Approach to Operational Redesign Workbook," referenced in the unit 8 slides as a guide for completing the activity.

  Compare and contrast freeware and shareware

Compare and contrast freeware, shareware and commercial software. What are the characteristics of each? Discuss examples.

  Determining the obvious brute-force algorithm

Write a program that reads N points in a plane and outputs any group of four or more colinear points (i.e., points on the same line). The obvious brute-force algorithm requires O(N4) time. However, there is a better algorithm that makes use of sort..

  Article on ethical theories

You are to search the Internet, newspapers or magazines and find a moral dilemma that has occurred within the last 24 months on one of the topics we have covered this semester (Networked Communications, Networks Security, Privacy, Privacy and Gove..

  Write a program to prompt the user to enter a postfix expres

Write a program to prompt the user to enter a postfix expression. When the user presses enter, the stack based method for constructing expression trees will be executed

  Use ethernet network data link protocols

Is possible to use Ethernet network data link protocols on a Token Ring network? Explain why or why not.

  Create presentation on template on office com

Watch the slide show in Slide Show view. Note that you do not need to manually advance the slide show until most of the slides have played. Note the five rules as they are presented so that you can list them later.

  Design an algorithm to input student records

Design an algorithm to input student records; each record contains a student name, registration code, and credits field. A registration code of 1 indicates that the student is a resident. A registration code of 2 indicates that the student is a nonre..

  How does lossy compression help

How does lossy compression help

  He set of binary strings which are divisible

The set of binary strings which are divisible by 4 when interpreted as an integer value.

  Jim develops 5 java applications a year

Jim develops 5 Java applications a year. Joe develops 10 Java applications a year. Jim gets paid $5000.00 per application, but Joe gets paid $10000.00 per application.

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