Lab 6.39 ***C++*** "Warm up: Text analyzer & modifier"

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Lab 6.39 ***C++*** "Warm up: Text analyzer & modifier"

Post by answerhappygod »

Lab 6.39 ***C++*** "Warm up: Text analyzer &modifier"
Lab 6 39 C Warm Up Text Analyzer Modifier 1
Lab 6 39 C Warm Up Text Analyzer Modifier 1 (66.84 KiB) Viewed 26 times
Lab 6 39 C Warm Up Text Analyzer Modifier 2
Lab 6 39 C Warm Up Text Analyzer Modifier 2 (32.93 KiB) Viewed 26 times
(1) Prompt the user to enter a string of their choosing. Output the string. (1 pt) Ex: Enter a sentence or phrase: The only thing we have to fear is fear itself. You entered: The only thing we have to fear is fear itself. (2) Complete the GetNumOfCharacters0 function, which returns the number of characters in the user's string. We encourage you to use a for loop in this function. (2 pts) (3) In main(), call the GetNumOfCharacters() function and then output the returned result. (1 pt) (4) Implement the OutputWithoutWhitespace() function. OutputWithoutWhitespace(0) outputs the string's characters except for whitespace (spaces, tabs). Note: A tab is 'It'. Call the OutputWithoutWhitespace0 function in main0. (2 pts) Ex: Enter a sentence or phrase: The only thing we have to fear is fear itself. You entered: The only thing we have to fear is fear itself. Number of characters: 46 String with no whitespace: Theonlythingwehavetofearisfearitself.

\begin{tabular}{l|l} LAB & 6.39.1: LAB: Warm up: Text analyzer \& modifier \end{tabular}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply