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

  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