Lab 6.39 ***C++*** "Warm up: Text analyzer &modifier"
(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}
Lab 6.39 ***C++*** "Warm up: Text analyzer & modifier"
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Lab 6.39 ***C++*** "Warm up: Text analyzer & modifier"
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!