Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

home / study / engineering / computer science / computer science questions and answers / hello i need help with this my hangman lab. below

home / study / engineering / computer science / computer science questions and answers / hello i need help with this my hangman lab. below is my code and dictionary.txt file as well ...

Your question has expired and been refunded.

We were unable to find a Chegg Expert to answer your question.

Question: Hello i need help with this my hangman lab. Below is my code and dictionary.txt file as well as t...

Hello i need help with this my hangman lab.

Below is my code and dictionary.txt file as well as the instructions for the lab.

Your assignment is to write the hangman game. Write a program that will read from a random word from a text file (dictionary.txt) containing English words (one word per line). Continue to ask the user for a letter until the user has either guessed all the letters in the word, or until the word H-A-N-G-M-A-N has been completely filled out, whichever comes first. Using your bread board connected to your Raspberry, ring the buzzer for each incorrect guess (see Lesson 6 in the Founder manual). After each guess, print out the letters correctly guessed and the letters in H-AN-G-M-A-N opened as a consequence of missed guesses.

Example:

In file dictionary.txt: computer program

Suppose the word program was randomly selected.

Guess your next letter >> p p - - - - - - - - - - - - -

Guess your next letter >> g p - - g - - - - - - - - - -

Guess your next letter >> z

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions