Consider a text file named memberships.txt that contains data relating to Fitness Club memberships. Each line within the file contains the following data items:
Each data item is separated in the file by a space character. Hence, the data file contains data like the following:
Justin Time 23 gym 75.2 59.95
Eileen Over 21 circuit 45.7 59.95
Bob Down 19 circuit 89.1 160.50
Laura Norder 22 gym 65.5 120.00
Write a Java program that uses the memberships.txt file as an input file and that performs the following tasks:
Justin Time 59.95
Laura Norder 120.00
Eileen Over 59.95
Bob Down 160.50