top of page

Computer Programming 2 - SY2223-2T | 06 File Input and Output (Midterm) | 06 Hands-on Activity - ARG

Computer Programming 2 - SY2223-2T | 06 File Input and Output (Midterm) | 06 Hands-on Activity - ARG

Create a simple game that exhibits file input and output.
Create a folder named LastName_FirstName (ex. Reyes_Mark) in your local drive.
Create a new project named LabExer6A. Set the project location to your own folder.
Create a simple guessing game (simnilar to Hangman or Hangaroo). In this game, the user guesses a letter and then attempts to guess the word.
Create a Notepad file named words.txt which will store any number of words each written per line.
The Java program shall:
randomly select a word from the list saved in words.txt;
display a letter in which some of the letters are replaced by ?; for example, ED??A??ON (for EDUCATION);
place the letter in the correct spot (or spots) in the word each time the user guesses a letter correctly;
inform the user if the guessed letter is not in the word; and
display a congratulatory message when the entire correct word has been deduced.

ABOUT US

I'm a paragraph. Click here to add your own text and edit me. It’s easy. Just click “Edit Text” or double click me to add your own content and make changes to the font. Feel free to drag and drop me anywhere.

  • Grey Facebook Icon
  • Grey Twitter Icon
  • Grey YouTube Icon

© 2035 BY EZ ELECTRONICS. Powered and secured by Wix

NEW RELEASES

I'm a paragraph. Click here to add your own text and edit me. It’s easy. Just click “Edit Text” or double click me to add your own content and make changes to the font.

Thanks for submitting!

bottom of page