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

  Describe an algorithm

Describe an algorithm for determining if a given list contains a cycle using only constant additional space. The runtime should be O(N), where N is the (unknown) number of elements in the list. (Hint: use two iterators that advance at different sp..

  Explain reinforcement of changing program standards

Use operant conditioning, with the program of shaping, to get sloppy roommate to make bed neatly. Incorporate and label antecedent stimulus.

  Role of integrating business management cpabilities

How you see you role in integrating software, hardware, and business management cpabilities? What challenges do you anticipate encounting as head of of the IT management effort at Magnum?

  Explain hardware implementations of intelligent agents

There are hardware implementations of intelligent agents. Determine the literature instances of intelligent agents as software. Compare and contrast two implementations.

  Explain the difference between data, information

Explain the difference between data, information, and Business Intelligence and give specific examples.

  Write a mips program to complete the following functions

Write a MIPS program to complete the following functions. You must write comments and follow the register convention.

  What is the value of x given the specified value for y

What is the value of X given the specified value for Y (both X are 8-bit unsigned values): /* which is 10100101 in Binary; a) Y=0xA5; X=Y & 0x0F; b) Y=ox88; X=Y | ox83; C) Y=0x25; X=Y && ~Y;

  People and organization responsible for bumping problems

Answer from the perspective of the airlines and from the perspective of the customers. What people, organization, and technology factors are responsible for excessive bumping problems?"

  Elements corresponding to the inorder sequence

Suppose that you are given two sequences of elements corresponding to the inorder sequence and the preorder sequence. Prove that it is possible to reconstruct a unique binary tree .

  Determining minimum size of control bus

Determine the minimum size of the control bus?

  How has configuration for connecting input-output changed

How has the configuration for connecting input/output (I/O) devices to computers on the motherboard changed since the late 1980s?

  Use jsp to display current date & time

Fail authentication page will ask user to create the new account if the user does not have an account on the system.

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