Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON CODING LANGUAGE: For this assignment you will be creating a simple guessing game. You will prompt the user for a word, then you will

PYTHON CODING LANGUAGE:

For this assignment you will be creating a "simple" guessing game. You will prompt the user for a word, then you will proceed to make letter "guesses" to try to guess the word. Yes, you already know the word, so the guessing should be easy.

Below are the game "rules". These rules represent the "what" and are typically referred to as functional specifications.

Functional Specifications:

  • Prompt the user for a guess word
  • Prompt the user for a letter
  • Empty word or letter input will exit the program
  • After each letter guess, if all letters not found, display the guess status (tabbed over on tab space):
    • Indicate if already guessed and already found
    • Indicate if already guessed and already not found
    • Indicate if guessed letter not found
    • Indicate if guessed letter found
    • Follow the guess status with the complete list of letters guessed so far
  • Upon program exit, or when all letters have been guessed, display results if any guesses were made
    • Display original guess word
    • Display matched letters
    • Display unmatched letters
    • Display total number of guesses
  • Guess letters need only be entered once even if letters are repeated in the guess word

In addition to functional specifications to describe what the program should do, you also need to consider "how" the program will accomplish the required tasks. The "how" is typically called the design specifications.

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

Implementing Ai And Machine Learning For Business Optimization

Authors: Robert K Wiley

1st Edition

B0CPQJW72N, 979-8870675855

More Books

Students also viewed these Databases questions

Question

Distinguish between formal and informal reports.

Answered: 1 week ago