Oakland Community College Java Programs Consoles Exam 2 First program will be 5 numbers second will be on the file I have attached. Please see file attached 1:17 7
oaklandcc.desire2learn.com
· Private
D
In_Class Exam_2_Program
Oakland Community College
Page 1 of 2
Java
Exam_2 Program
Professor O’Connor
Program
Write TWO console Java Programs.
The first console Java Program is to:
1. Display “This program will write 5 numbers into a file called data.txt”
2. Prompt the user to “Enter number 1: ”
3. Prompt the user to “Enter number 2: ”
4. Prompt the user to “Enter number 3: ”
5. Prompt the user to “Enter number 4: ”
6. Prompt the user to “Enter number 5: ”
7. Write the five numbers to the file data.txt
The second console Java Program is to:
1. Display “This program will determine the maximum number stored in a file called data.txt”
2. Read the five numbers from the data.txt file and determine the maximum number
3. Display “The maximum number is: ”
Note:
Enter the following data in this order and get the program to work, BEFORE asking to demonstrate:
1, 5.3, 3, 4.2, 5.1
Write. Java
Data.txt
Read.Java
This program will
write 5 numbers
into a file called
data.txt
Number_1
Number_2
Number 3
Number_4
Number_5
This program will
Determine the
maximum of 5
numbers stored in
a file called
data.txt
Enter Number_1
Enter Number_2
Enter Number_3
Enter Number_4
Enter Number 5
The maximum
Number is:
Oakland Community College
Page 2 of 2

Purchase answer to see full
attachment