Devam Ediyor

475797 Java Swing Components and File Processing

Program files for the following two programs:

1. GuessGame

2. Text File I/O



Program Name: GuessGame

Programmers Name: Nick Collatos

Program Description: This program will play the game "guess the number", etc...


How to submit your assignment:

1. The programs MUST have the same names as the deliverable titles.

2. Each Java source file (*.java) must include a corresponding class file (*.class) program as evidence of success.

3. All files must use a Zipped Folder upon completion.


Deliverable 1: GuessGame

Write a program [url removed, login to view] that plays the game “guess the number” as follows: Your program chooses the number to be guessed by selecting an integer at random in the range 1–1000. The program then displays the following in a label:

I have a number between 1 and 1000 can you guess my number?

Please enter your first guess.

A JTextField should be used to input the guess. As each guess is input, the background color should change to either red or blue. Red indicates that the user is getting “warmer,” and blue indicates that the user is getting “colder.” A JLabel should display either “Too High” or “Too Low” to help the user zero in on the correct answer. When the user gets the correct answer, “Correct!” should be displayed, and the JTextField used for input should be changed to be uneditable. A JButton should be provided to allow the user to play the game again. When the JButton is clicked, a new random number should be generated and the input JTextField changed to be editable.

Deliverable 2: Text File I/O

Write a program to create a file named "[url removed, login to view]". Then create an algorithm that adds all even numbered integers from 1 to 100, separated by a comma. After the file has been created, close and reopen the file and display the results to the screen. After the results have been displayed append the odd number integers from 1 to 100, separated by a comma to the end of the file. Reopen the file, and display the results.

Beceriler: Her şey Kabul, Java, PHP

Daha fazlasını gör: same game java, programmers numbers, program algorithm example, o 1 algorithm, java same game, java for c++ programmers, integers and, how to write an assignment, how to use algorithm, how to create an algorithm, example of an algorithm, algorithm for programmers, algorithm for game, guessgame java, java swing, java play, java algorithm, guess the, game algorithm, file folder, c text processing, assignment java, algorithm java, processing background color change, java blue

İşveren Hakkında:
( 16 değerlendirme )

Proje NO: #2221702