Question: Program in Java(CMPT 166) Create a text file that contains 10 integers with one integer per line. You may choose any 10 integers to enter
Program in Java(CMPT 166)

Create a text file that contains 10 integers with one integer per line. You may choose any 10 integers to enter in the file. Then write a program that inputs a number from the keyboard and determines whether any pair of the 10 integers in the text file adds up to exactly the number typed in from the keyboard. If so, program should output the pair of integers. If no pair of integers adds up to the number, then the program should output "No pair found
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
