Create a hang man type program

Assignment Help JAVA Programming
Reference no: EM13896792

Project 1 - Guess the Word Game

This exercise is to create a hang man type program. If you do not like the idea of a hang man image then use a different sequence of images (such as pushing someone out of the door bit by bit) as an alternative.

529_Guess the Word Game.png

Your program should have a hidden word stored internally. (Initially use the word ‘hello')

The ‘X's in the labels char1, char2 etc., will represent the characters of the hidden word. (The first X represents ‘h', the second X represents ‘e', so all the characters of ‘hello' are shown as Xs)

The program user will guess one letter at a time (and type it into the textField and click on the button), and if they guess a letter which is in the hidden word then the appropriate ‘X' is replaced by the correctly guessed letter. The diagram shows that ‘e' and ‘l' have been guessed correctly.

Every time an incorrect letter is guessed then another part of the sequence of the hang man (or alternative) images is shown.

Follow the ‘Guess the Word' start guide on Blackboard to help you create the application. It is important that your program will work with any 5 or 6 letter word written once at the start of your program code (and not just the word ‘hello')

Initially, create the full final picture image, and then rub out a piece and save it as a different filename, then rub out another part and save it as a different name, etc. Use the images in your program in the reverse order to how you created the images, so the sequence will gradually build up to the full image being shown.

Code Extras

Work out a way to make the program display an appropriate ‘Game Over' message. For example, the message could display ‘Congratulations you have won. Game over. ' when the hidden word has been guessed before the final complete hang man (or alternative) image is displayed, or ‘You did not win. Game over.' when the word has not been guessed before the final image is displayed.

2. Make the program work for any length hidden word from 3 to 10 characters, and only display sufficient ‘X's to match the length of the hidden word.

3. Write 6 different hidden words into your program and make it chose a random word each time.

4. Read in a hidden word from a text file of words. The program should choose a random word from the file.

Java Program code to be submitted as a single text file by the date shown above on Blackboard ECSC410 ‘Submit Coursework' link. For this submission you should copy and paste all your code into ONE long text file, type the filename at the top of each piece of pasted code and write whether it is part 1 or 2 or 3 or 4 , and at the very top of the text file type your name and Unix account number. Call this large saved file by your ID number but start with GW (e.g. . GWw123456.txt ) and ensure it is saved as plain text (not .doc or .zip). Do not change your code after it has been submitted.

If Blackboard doesn't work at the last minute then upload the file within 24hrs of Blackboard working again. You do not need to email us as we will know Blackboard is not working. Be careful and double check your file as you can only upload once.

Reference no: EM13896792

Questions Cloud

Extractive institutions play in the developing countries : Every country in the world is constructed around the same set of institutional frameworks that differ only in how governments manage them. Identify the specific components of an institution.  Finally, analyze the role that extractive institutions pla..
How would create and establish such a police organization : If you must consolidate the police, would you have to do the same to the criminal justice system? How would you create and establish such a police organization?
How many fishing rods should the distribution center carry : How many fishing rods should the distribution center carry to provide the desired service level? There are, of course, many other specific questions, such as EOQ? Average cycle stock?
What do you think constitutes a great film : What do you think constitutes a great film? Would you consider any of the films you have recently watched to be great? Why or why not? Provide examples
Create a hang man type program : Create a hang man type program - create the full final picture image, and then rub out a piece and save it as a different filename, then rub out another part and save it as a different name.
Explain the faculty and administration selection process : Briefly explain the faculty and administration selection process related to certification, trainings, contracts, faculty responsibilities, and tenure. Support your faculty related policies with case law examples
Demonstrate the concept of elasticity : What examples of 1) elasticity, including an explanation of why or how they demonstrate the concept of elasticity; and 2) examples of externalities, again including an explanation of why or how they demonstrate the concept of externalities
Explain how the organizational culture influences decision : Explain how the organizational culture influences decision making
How many chairs should the firm order each time : How many chairs should the firm order each time? Assume there is no uncertainty at all about the demand or the lead time.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Calculate and display the total retail value of all products

Your application must calculate and display the total retail value of all products sold after all five pairs of inputs are completed - Write a Java application that prompts the user for pairs of inputs of a product number

  Classes using set and get methods

Create a java program that contains two classes using set and get methods. I need the program to return the area and perimeter of a rectangle. I wrote a program and he returned to me saying I used the wrong constructors and didn't create a the sec..

  What are the various types of dns servers and their purpose

question 1 what is the role of dns how is it structured and why it is necessary?question 2 what are the different kinds

  Write an object-oriented java program to manipulate data

I want a simple java solution matching all the specifications in the document. The java program has to be made using Eclipseversion 4.2.1.

  Write a java program that finds the temperature

Write a JAVA program that finds the temperature that is the same in both Celsius and Fahrenheit

  Write a program that can be used to gather statistical data

Write a program that can be used to gather statistical data about the number of movies college students see in a month. The program should ask the user how many students were surveyed and dynamically allocate an array of that size

  Implementing dijkstras shortest-path algorithm

Implementing Dijkstras shortest-path algorithm - To improve efficiency of the program, you should add some caching to it

  Implement a thread for each creature representing a task

Implement a threads and a GUI interface using advanced Java Swing classes.

  Write a java code to count number of capital letters in line

Write a java codenpseudo-code to count the number of capital letters in a line of text. How many comparisons does it do? What is the fewestnumber of increments it might do? What is the largest number?

  Write a java program to prompts a user to enter information

Write a Java program prompts a user to enter demographic information

  Explain the types of malware and the potential impact they

write a 200- to 300-word short-answer response to the following bull describe the types of malware and the potential

  Your task in this assignment is to develop a graphical user

your task in this assignment is to develop a graphical user interface based java program that can communicate with a

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd