Question: Instructions Lab 5 . 6 - Maximum of Data from Two Files - ( TwoFileMax ) The data files, data 1 . text and data
Instructions
Lab Maximum of Data from Two Files TwoFileMax
The data files, data text and data text each contains a header value followed by that number of integers. Write a program that opens the two data files so you will need to declare and create two Scanners one for each file and reads in one number from each file and prints out the larger of the two and which file it cam from. You can assume the header values are always the same.
Sample Test Run
For example, if the file data text contains:
and the file data text contains:
the program should produce the following output:
'The larger of and is and comes from datatext
The larger of and is and comes from data text
The larger of and is and comes from data text
Additional Notes:
Your class should be named TwoFileMax.
datatext and datatext should not be modified
Regarding your code's standard output, CodeLab will check for case errors and will check whitespace tabs spaces, newlines exactly except that it will ignore all trailing whitespace.
DO NOT USE ARRAYS YOU MAY USE LOOPS IF NEEDED beginner functions
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
