Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve it with C language Exercise 2-String operations using resursive functions id marks Exercise Objectives Identifying the base cases and recursive step used for processing

solve it with C language image text in transcribed
Exercise 2-String operations using resursive functions id marks Exercise Objectives Identifying the base cases and recursive step used for processing arrays recursively Implementing and calling recursive function that receives strings as parameters Implementing string operations within recursive functions definitions Calling functions Problem Description Within replit.com IDE, create another new repl (project and name it loboExt. Use this project to write and run a program that performs the following Use the symbolic constant to define the size of a string array of char) of 50 Declare a variables named: myhobby of the specified size Prompt the user to read myhobby array Declare the following functions as prototype and implement them after the main function INEVER USE string.h functions o PrintStrChars), a recutive function receives a string and displays its characters Strength a recursive function that receives a string and returns its length Uppercasellum(), this recursos function receives a string and returns the number of uppercase letters in the string ConvertToLowercase), this recursive function converts all characters to lowercase StrReversel), a recutive function that receives a string and reverse the string In the main function Prompt the user to input myhobby Print myhobby characters by calling PrintStrChars) function Call Strength() for myhobby and display the length Call UppercaseNum) for myhobby, and display the result Call Convertfolowercase) for myhobby. then print myhobby Call Streverse() for myname, then print myhobby Hint you need to call Strength() function to determine the end of the string Hint2: you can use static variables to move forward in the start of the string and to move backward in the end of the string Page 3 of 5 Organize the output to appear as shown in the sample output below Download your project as zip file and keep it within your file system (Desktop for example) Upload the project to the eLearning platform Sample Output input your hobby BasketBALL Printing mhobby character by character The length of myhobby = 10 Number of Uppercase characters Converting myhobby to lowercase basketball Reversing myhobby becomes Habteksab

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

Step: 3

blur-text-image

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

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

=+ (b) Show that the closure of a trifling set is also trifling.

Answered: 1 week ago

Question

mple 10. Determine d dx S 0 t dt.

Answered: 1 week ago

Question

b. Why were these values considered important?

Answered: 1 week ago