programming and visual basics

posted by mel

Using pseudocode or a flowchart write a program that does the following:

Design the logic for the game Hangman, in which the user guesses letters in a hidden word.
Store the letters of a word in an array of characters.
Display a dash for each missing letter.
Allow the user to continuously guess a letter until all the letters in the word are guessed correctly.
As the user enters each guess, display the word again, filling in the guessed letter if it was correct. For example, if the hidden word is computer, first display a series of eight dashes: --------. After the user guesses p, the display becomes ---p----.
Make sure that when a user makes a correct guess, all the matching letters are filled in. For example, if the word is banana and the user guesses a, all three a characters must be filled in.
Change the hidden word to onomatopoeia and adjust the logic to work properly.

Respond to this Question

First Name

Your Answer

Similar Questions

  1. Logic and Design

    I need help with pseudocode, and any help regarding forming these programs in Visual Logic would be helpful as well. Question 1: You have been asked to design the logic that will display each of the following lines to a screen. John …
  2. Computer Programing & Logic Design

    Submit pseudocode and a flowchart for the following programming exercise: Software Sales A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10-19 …
  3. Computer Programing & Logic Design

    Submit pseudocode and a flowchart for the following programming exercise: Largest and Smallest Design a program with a loop that lets the user enter a series of numbers. Theuser should enter -99 to signal the end of the series. After …
  4. Computer Programing & Logic Design

    Submit pseudocode and a flowchart for the following programming exercise: Largest and Smallest Design a program with a loop that lets the user enter a series of numbers. Theuser should enter -99 to signal the end of the series. After …
  5. computer science

    Your goal is to solve the following programming lab activity. Write a program that prompts & accepts a number between 1 and 12. After getting the input, display the number with the appropriate month. (example: This is the 1st month…January, …
  6. computer sicence C++

    Americans spell differently from Canadians. Americans write "neighbor" and "color" while Canadians write "neighbour" and "colour”. Write a program to help Americans translate to Canadian. Your program should interact with the user …
  7. visual logic

    The Daily Gazette accepts classified ads in several categories. For most ads, the newspaper charges 10 cents per word for the first 50 words, and 8 cents per word for every word after that. Design Visual Logic Flowchart for a program …
  8. programming

    Step 1: Design a flowchart or write pseudocode for a program that allows a user to enter 12 numbers, then displays all of the numbers (in the order they were entered) as well as the largest number and the smallest number. Step 2: Implement …
  9. programming logic and design

    Using pseudocode or a flowchart write a program that does the following: Allow the end user to enter the category the ad will appear in (ex. Automobiles), Number of words and Customer Name Calculate the cost based on 50 cents per word …
  10. Program Design and Development

    Design a Visual Logic flowchart for a program that prompts the user to enter ten numbers one at a time. After the user has entered all ten number the program will then print out the total of those ten number and quit?

More Similar Questions