
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
![Develop an algorithm and write a C++ program that counts the number of
letters in the string; make sure you use call by reference to return number of
letters and numbers when return from count function.
Write a test program that reads a C-string and displays the number of letters
[a-z] and number of numbers [0-9] in the string. Here is a sample run of the
program:
<Output>
Enter a string: 2024 is coming
The number of letters in 2024 is coming is 8
<End Output>
Deliverable: Submit your design, code and execution result via file upload for this
question](https://content.bartleby.com/qna-images/question/e385ecf3-b320-4909-8be5-0f42e36b0880/538a07b6-a25c-411b-9dfa-fbcf041fa2a5/2kwqp3r_thumbnail.jpeg)
Transcribed Image Text:Develop an algorithm and write a C++ program that counts the number of
letters in the string; make sure you use call by reference to return number of
letters and numbers when return from count function.
Write a test program that reads a C-string and displays the number of letters
[a-z] and number of numbers [0-9] in the string. Here is a sample run of the
program:
<Output>
Enter a string: 2024 is coming
The number of letters in 2024 is coming is 8
<End Output>
Deliverable: Submit your design, code and execution result via file upload for this
question
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 5 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Program 3 In an input string substitute all occurrences of a specific character by another pre-specified character. Both characters and the string are input by the user. The program should output: Original string: Substitute -→ Result string:arrow_forwardWrite a complete C++ program that reads a line of input and prints it out; however, if the string that was read is more than 20 characters long (including whitespace characters), the message "too long" is printed instead. The end of the input is signaled by the user hitting the "enter" key, which creates a '\n' character at the end of the input. Note that the newline character '\n' is discarded, it does not become part of the string which is read. For example: Input Result Mr. Grey is fluffy Mr. Grey is fluffy Xerea Lu is a cow-colored cat too longarrow_forwardC++arrow_forward
- Asaparrow_forwardYou guys use AI tool to answer. Last time I found plagiarism and AI detection in my answer. Now If you will use these things I'll surely give multiple downvotes and will report ⚠️ sure.arrow_forwardWrite a C program that requests a user's first name and last name. The maximum number ofcharacters in first name and last name is 50. The program must use the string "Enter your first name and last name: " to prompt the users Have it print the entered names on the first line and the number of letters in each name on the following line, as shown in the example below: Enter your first name and last name: Captain Africa Captain Africa 76 You need to specify the required lines of code in the answers. #include #include void main (void) { /* variable declarations */arrow_forward
- Write a complete function called Main() that asks the user for an input string, then creates and prints a report of how many of each character occurred in that string. For example, here is a sample run: >>> Main() Enter a string --- computer science rocks! 2 ! 1 c 4 e 3 i 1 >>> If you can put it in alphabetical order too that would be great!arrow_forwardWrite a program to enter two strings from the user using function cin.getline and then appends string two with string one separated by a blank space. Sample Input: C++ is a good programming Language. Arrays are very integral part of this language. Sample Output: C++ is a good programming Language. Arrays are very integral part of this language.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education