Write a program that does the following: 1. prompts the user to enter a word 2. using that word, first prints out the word where all characters are replaced by “_”’s (there will be an example to better illustrate this below). 3. the program will continue to print the word revealing one character at a time. i.e., The second line printed should print the first character followed by “_”’s representing the rest of the word. 4. The program should end after printing the entire word once   Example: Enter a word: kangaroo ________ k_______ ka______ kan_____ kang____ kanga___ kangar__ kangaro_ kangaroo   Note: you will have to use nested loops in this problem.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 7E: Write a program named GuessingGame that generates a random number between 1 and 10. (In other words,...
icon
Related questions
Question
Write a program that does the following:
1. prompts the user to enter a word
2. using that word, first prints out the word where all characters are replaced by “_”’s (there will be an example to better illustrate this below).
3. the program will continue to print the word revealing one character at a time. i.e., The second line printed should print the first character followed by “_”’s representing the rest of the word.
4. The program should end after printing the entire word once
 
Example:
Enter a word:
kangaroo
________
k_______
ka______
kan_____
kang____
kanga___
kangar__
kangaro_
kangaroo
 
Note: you will have to use nested loops in this problem.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT