Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Thank you! please do it in c++ Declare a single character array having a max size of 1000. Initialize this array with a '??. This

image text in transcribedimage text in transcribed

Thank you!

please do it in c++

Declare a single character array having a max size of 1000. Initialize this array with a '??. This character arrays will store different names in it (entered by the user). Each name will be separated by a % sign. The program should be menu driven and should only exit by entering 4. It should keep on asking the following otherwise: Example: 1. Enter a name in the array 2. Search the name in an array (return its starting index) 3. Delete a name in an array 4. Exit The array (with two names added on it) is shown below: I 1 a m Qa di r % w a q a s Ah ma d % ??? ..... 0 999 Let's say that the user asks to search the name Waqas Ahmad, the result should be 11 (The starting index of the name found in the array). If the name is not found, the result should be: "Not Found". Let's say that the user asks to delete the name Inam Qadir, if found, the name should be deleted and the contents of the array should then become: W a a a S Ah ma d % ??? NII Write a program that reads an English sentence from the user of maximum 5 words and the print the count of lowercase, uppercase and punctuations (comma, full stop, semi colon, colon) in the sentence. Example: User Enters: Today, is a; Fine Day. Then the program should print: Count of UPPERCASE: 3 Count of lowercase: 12 Count of punctuations: 3

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

Students also viewed these Databases questions

Question

5. What information would the team members need?

Answered: 1 week ago

Question

Which team solution is more likely to be pursued and why?

Answered: 1 week ago