Question: Do these two problems in C . problem 1 : Write a program that reads lines from stdin and for each line determines if it

Do these two problems in C. problem 1: Write a program that reads lines from stdin and for each line determines if it is
a palindrome. To deal with more advanced test cases, your program should ignore
case, punctuation, and whitespace. Blank lines should be ignored and not counted
as palindromes or not palindromes. For full credit, yourprogram should have a
function that takes the string as a parameter and returns 1 if it is a palindrome and
0 otherwise. The main function should do all the input and output. A summary of
the number of palindromes should be printed at the end. Problem 2: Write a program that can encrypt and decrypt data using the Caesar cipher
method (Caesar cipher).Your program takes two command line arguments: -e or -d
to specify if you are encoding or decoding,respectively; and then the amount to shift.
You will take in the data as stdin and produce the result to stdout. Your program
can ignore the case of the input and generate the output in upper case but preserve
whitespace and any non-alphabet characters. The examples below illustrate how the
program should work.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!