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 #include using namespace
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 ***.
```

Computer Science & Information Technology

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

Computer Science & Information Technology

Statements inside a loop that could be placed outside the loop make the loop ____.

A. more efficient B. cleaner C. incorrect D. less efficient

Computer Science & Information Technology

Compare the Sprite and Amoeba distributed systems.

What will be an ideal response?

Computer Science & Information Technology

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

Computer Science & Information Technology