week 5 lab

Program files for each of the following two programs


Text File I/O

At the beginning of ALL your programs, put a comment box that includes the program name, your name, and a brief description of the program.



Program Name: [url removed, login to view]

Programmer's Name: Student Name

Program Description: Describe here what this program will do


How to submit your assignment:

The programs MUST have the same names as the assignment title.

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

In addition to the program source code files and byte code files, put all your program source code files and screen shots of your program output files into a Word document.

You must use a zipped folder to send your weekly assignment to the Dropbox. Do not send subfolders within your zipped folder. Place ALL of the .java and .class files for the week into the one zipped folder. The zip folder should be named: CIS355A_YourLastName_iLab_Week5, and this zip folder will contain all the weekly programming assignments.

STEP 1: GuessGame (20 points)

Write a program named [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 guess: ____________________

A JTextField should be used to input the guess. A JButton must be provided to allow the user to press each time a guess is entered. 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 cleared and changed to be uneditable. Also, a JButton should be provided to allow the user to play the game again. When the New Game JButton is clicked, a new random number should be generated and the input JTextField changed to be editable. A JButton must be provided to allow the user to exit the application. Also provide a count of the number of guesses the user entered when the correct number is guessed.

STEP 2: Text File I/O (20 points)

Write a program called [url removed, login to view] to create a file named numbers.dat. Then create an algorithm that writes 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. The contents of the file should be the even numbers from 1 to 100 separated by a comma followed by the odd number from 1 to 100 separated by a comma. The output of this program would be something like the following



Compétences : Java

en voir plus : textfileio help, java lab low, write my assignments, what's an algorithm, what's algorithm, what is new in java 1.5, what is java programming used for, what is a programming algorithm, what is an algorithm in programming, what is an algorithm, what is algorithm in programming, what is a algorithm in programming, what an algorithm, use of algorithm in programming, same game java, programming assignments help, programming algorithm example, program algorithm example, o 1 algorithm, java same game, java programming from the beginning, java programming assignments, java 1.5 for each, integers and, how to write an assignment

Concernant l'employeur :
( 11 commentaires ) Moreno Valley, United States

Nº du projet : #2388904

Décerné à:


I am ready to do the project, thank you.

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(99 Commentaires)

11 freelance font une offre moyenne de $38 pour ce travail


Hi, I am JAVA expert and can surely help you here, Please check your inbox,Thanks

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(372 Commentaires)

I can help you

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(77 Commentaires)

I can complete this project quickly and easily. Please check my profile for past feedback.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(13 Commentaires)

Very easy project. I confidently can do it. My Completion Rate is 100%

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(18 Commentaires)

I have good experience in Java and I'm ready to do your project. Please check PM.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(2 Commentaires)

Good day, this is simple easy and fast to do. I have done several projects like this and i am 100% confident that i can deliver. HOping forward hearing from you

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1 Évaluation)

Please check your PM!

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(0 Commentaires)

It is simple concept... I can do it...

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)

Several years of java experience.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)

I know how to solve these problems, and i can do it fast and cheap. I've taken java programming courses and done stuff like this before.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)