logo Hurry, Grab up to 30% discount on the entire course
Order Now logo
1148 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Lance BlaserComputer science
(5/5)

721 Answers

Hire Me
expert
Vishal SindhwalComputer science
(5/5)

504 Answers

Hire Me
expert
Joel FordFinance
(5/5)

595 Answers

Hire Me
expert
B. BavadhariniMarketing
(/5)

852 Answers

Hire Me
Others
(5/5)

If it isn’t in the word, it should subtract one try from the errors and let user know how many are left

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

HANGMAN in python

(It must be programmed in the most basic way possible so that it looks like a beginner wrote it, please)

For main module called HANGMAN:

The code should be able to:

1. Give out a secret word from the word bank (can use getpass)

2. Define the number of errors allowed (5 errors)

3. Determine the amount of letters the word has

4. Show a “_ “ (underscore) for each letter

5. Ask the user for a letter

6. Determine if the letter given is included in the secret word

a. If it is included it should replace the underscore(s) for the letter

b. If it isn’t in the word, it should subtract one try from the errors and let user know how many are left

7. Even if a word has multiple times the same letter, they should all be replaced at the same time if the user gusses it right. For example, the word BALL has the letter L two times, but the used should only have to introduce it once for it to look like _ _ L L

8. The words are to be displayed in upper case, but it must not matter if the user introduces upper or lower cases, they should both be acceptable inputs

9. While there are still missing letters to complete the word and there are still errors left, repeat step 5.

10. Evaluate if the user has run out of errors

a. If they have, tell the user “game over you lost” and show him the correct word (Example: game over you lost the correct word was ball)

b. If the user hasn’t run out of errors tell him “ congratulations you won”

11. Ask the user if he wants to play again

a. If the answer was yes, take him back to step 1

b. If not, show him “end of the game” and finish

NOTE: if the user introduces anything other than letters, they program should say “invalid character, please introduce a letter” 

the Python program

the code in text form for both modules

I must be able to copy and paste the code into Visual Studio code to make final edits, it is the most important part.

(5/5)
Attachments:

Expert's Answer

1148 Times Downloaded

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme