Write a short C++ code fragment that reads a line of text and echo the line with all uppercase letters replaced by asterisks.
What will be an ideal response?
```
#include
std;int main(){ char next; do { cin.get(next);
if(isupper(next)) cout << "*"; else cout
<< next;
} while(next != 'n\')Now is the time FOR ALL Good MeN to come to the AID.
*ow is the time *** *** *ood *e* to come to the ***.
```
You might also like to view...
When you save a file for the first time, which dialog box opens?
A) Close B) Save All C) Save As D) Save
Statements inside a loop that could be placed outside the loop make the loop ____.
A. more efficient B. cleaner C. incorrect D. less efficient
Compare the Sprite and Amoeba distributed systems.
What will be an ideal response?
The ________ lists words that have a meaning the same as or similar to that of the word being looked up
A) Spelling pane B) Grammar pane C) Thesaurus D) shortcut menu