Question: Introduction In this assignment you will write a small C program. Your program should compile correctly and produce the specified output. Please note that the

 Introduction In this assignment you will write a small C program.Your program should compile correctly and produce the specified output. Please note

Introduction In this assignment you will write a small C program. Your program should compile correctly and produce the specified output. Please note that the computer program should comply with the commenting and formatting rules as has been done in class. For example, there should be a header for the whole program that gives the author's name, class name, date, and description. End braces should be commented, and there are alignment and indenting requirements as discussed. Please ask if you have any questions. Program #1 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[] (i.e. 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

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 Databases Questions!