Develop a program that includes a function

Assignment Help Basic Computer Science
Reference no: EM13219997

Develop a program that includes a function which has been created by you. This function should receive a single string as a parameter and decide if the string is indeed a palindrome or not a palindrome. You should make two versions of the function (each name should be distinct). The first should be a case sensitive version. The second version of the function should not be case sensitive and should also ignore spaces in the matching process. In addition to the two functions, you will need to create a main() function which prompts the user for a string and then calls each of the functions you created to test the string. The functions should each return 1 (one) if the string is a palindrome and 0 (zero) if not. You should then print an appropriate message in main() after evaluating the return from each function. Please distinguish the answers from the two functions separately in your output. Your main() should include appropriate comments as well. note: you may not use strrev since it is not included in string.h.

Reference no: EM13219997

Questions Cloud

How do you write a program in visual basic : My problem is the program should pretty much erase the pervious series data points for the control limits for both charts and update the new value with the recalculated values, and I am not sure how to do this. Thank you!
Calculate price and output under the perfectly competitive : Jay's Silk Printing Co. is located in a small university town. The major portion of their business is custom printed sweatshirts for university bookstores. As a sideline, they also retail sweatshirts locally. The local demand for sweatshirts is: Q..
What is real gdp starting from full employment equilibrium : Governments routinely alter their spending patterns to impact the economy, particularly as they relate to GDP growth and unemployment levels. Explain what effect an expansionary fiscal policy would have on the price level and real GDP starting fro..
Traditional customer service metrics : Should contact center leaders abandon traditional customer service metrics and move to a new model? If so, what should that new model be? If not, why do you feel that existing metrics should remain?
Develop a program that includes a function : Develop a program that includes a function which has been created by you. This function should receive a single string as a parameter and decide if the string is indeed a palindrome or not a palindrome.
How to identify the part of the business cycle : Identify the part of the business cycle that is characterized by:  The economy is at full employment.  The growth rate of aggregate demand exceeds the growth rate of aggregate supply. Recession. Recovery and non-inflationary growth.
Explain the differences between server-side and client : Explain the differences between server-side and client - side scripting languages. Please provide at least 3 advantages and disadvantages of each. Please cite your sources if needed.
Describe growth objectives for organization : Discuss the company's corporate strategy and explain what business the organization is in or wants and describe your growth objectives for this organization.
How oil price shock of 1980 sent gasoline prices higher : The oil price shock of 1980 sent gasoline prices sharply higher. Coal prices moved in sympathy with oil prices, with the result that coal companies earned pure economic profits. Since coal is a homogeneous good and the market is competitive.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Using jflap construct a turing machine

Using JFLAP construct a turing machine that does integer division for numbers in unary notation. For example your machine should execute the calculation

  Determining line cost for three points

Points T1, T2 ,and T3 are 25 miles apart, and points C1 , C2, and C3 also are 25 miles apart. If telephone lines cost $1 per mile, determine the line cost for three?

  What type of malware attack is this

What type of malware attack is this and what vulnerability is she trying to exploit in order to get her malware code past the network firewalls of these companies?

  Why supply-demand-equilibrium price different in short term

Price of product in short-term and long-term also describe why you believe supply, demand, or equilibrium price will be different, if at all, in short-term and long-term.

  Create a new table using the column structure

Create a new table using the column structure - From the l_foods table, list the description and price values of the following foods: hamburger, french fries, and soda.  Sort the rows by description.

  Internet access providers

Should Internet access providers or telephone companies be allowed to monitor how you use your Internet or telephone connection? Why or why not?

  Why the sdlc is adequate to develop any system

Why the SDLC is adequate to develop any system. Explain by giving at least two examples of systems, such as client-management systems and decision-support systems.

  When the jmpc field in the microinstruction is enabled

Assume that when the JMPC field in the microinstruction is enabled (set), MBR is ORed with NEXT_ADDRESS to determine the address of the next microinstruction to be executed

  Circut which detects even parity

Consider the following circuit, which detects even parity. There are one output, even, and three inputs, a(2), a(l) and a(0), which are grouped as a vector or bus. The output is asserted when there are even numbers (i.e., 0 or 2) of 1s from the in..

  Explaining kind of malicious software

What kind of malicious software is this? if username and password are valid return ALLOW_LOGIN else return DENY_LOGIN.

  Express the angle with respect to the tangential velocity

Express the angle with respect to the tangential velocity vector (ie, +90° points radially out). (Points : 5) A) 10.9 m/s2 at -75° B) 10.9 m/s2 at +75° C) 37.9 m/s2 at -75° D) 37.9 m/s2 at +75°

  Analyze the data to make business decisions

Database reports give us with ability to further analyze the data and give it in format which can be used to make business decisions.

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