Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

susanjrobertson Group Title

I'm working on the hangman project - Project 1. I'm a bit stuck on the 6th step. I need to do the print_guessed function. I get that I should do a loop of for i in secret_word? Any help is appreciated. Thanks!

  • one year ago
  • one year ago

  • This Question is Closed
  1. liliy Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    not sure if this is what you need but: perhaps make a for loop that makesword into array of chars then make a for loop that compares each one to the word they are trying to guess and if its correct print out char else "-". for(int i=0;i<myWord.length;i++){ if(guessWord[i]==myWord[i]) print guessWord[i]; else print "-" }

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...


  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.