Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C program about C string. Write a program to display the following menu: 1) Enter string 2) String length 3) Count characters case

Write a C program about C string.image text in transcribedimage text in transcribed

Write a program to display the following menu: 1) Enter string 2) String length 3) Count characters case sensitive 4) Count characters non case sensitive 5) Exit. The program should determine if option 1 was entered, before the user selects any of the other options (2-4). If user select a number from 2-4, a function should be called. All these functions should receive at least one parameter. Option 3 and 4 must return an integer value (representing the number of different characters in the c-string), and display a table as shown below. Option 5 will finish the program The string cannot be hard coded. A menu should be displayed (failing to display the menu will translate to 0 as homework grade) Given a string char str [ ] (1e. str [ ]- "Programming Assignment") A) (10 points) Write a recursive function to find the length of the string (option 2) B) (40 points) Write a recursive function that returns how many different (not including repeated entries) characters (case sensitive) are in the string (i.e, "T" is not the same as 't') Using this function display a table to indicate the number of different characters, and the number of times each character appears in the string, for example

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

Bioinformatics Databases And Systems

Authors: Stanley I. Letovsky

1st Edition

1475784058, 978-1475784053

More Books

Students also viewed these Databases questions

Question

7. Where Do We Begin?

Answered: 1 week ago