Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

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

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions

Question

Find the derivative of y= cos cos (x + 2x)

Answered: 1 week ago

Question

1. Explain how technology has changed the learning environment.

Answered: 1 week ago