Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help? Name your program: p6.c This week we need to create a program where the user can enter a phrase (up to 100 characters),

please help? image text in transcribed
image text in transcribed
Name your program: p6.c This week we need to create a program where the user can enter a phrase (up to 100 characters), and the program will check if it is a Palindrome. Examples of: Palindrome Words: civic, kayak, level, radar Palindrome Phrases: Mr Owl ate my metal worm. Never odd or even No lemon, no melon. Step on no pets NOTE -> Do not use the #include file in this assignment! Use-Case USE CASE NAME/ID Verity Phrase for Palindrome-ness ACTORS cse 121: student instructor PRE-CONDITIONS User is authenticated to use ctec clarkedu server POST-CONDITIONS User is informed as to whether their phrase is a palindrome OVERVIEW This use-case prompts the user for a phrase, then determines if the phrase is a palindrome DESCRIPTION 1 2 3. 4. Vaer -- types Application -- displays on the screen, "Enter a phrase for palindrome checking." User-enters a phrase and its retur Application -- tells user whether or not their phrase is a palindrome. If yes, application prints "This phrase is a palindrome" and prints the palindrome if no application prints "Your phrase is not a palindrome." NOTES AND TBDS Consider how to handle backs, and any other punctuation the user might type (eg [?. user may type upper and lower case letters in the phrase . etc) Also, the Below are some functions to consider when designing your program (1) void make_copy_of_string( char str[ . char str_copyl 1) / Makes a copy of str and put it in str_copy1 (2) void keep chars(char strD: I/Removes anything except characters (3) void convert_upper_to_lower_case(char strD: (4) Bool palindromeness char stil) / Returns TRUE il string in a palindrome. Here is some code that declares a char array and shows how to load it with a string. and how to print a string: Finclude int main (void) { char phrase[101); //declare a char array to hold the input phrase printf("Enter a phrase: "); fgets (phrase, 101, stdin); I will read no more than 100 chars. 1/fgets adds a null at the end of 1/the string (i.e. "12') printf(" ", phrase); return B; Use the following command to submit your p6.c code cp p6.c home/aculty/skoss/cse 121/your_UID

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions

Question

4-6 Is there a digital divide? If so, why does it matter?

Answered: 1 week ago