programming

This programming assigment has me some what consfused. From what I’m to understand I’m supposed to input my data into an array from a text file print it then bubble sort that and allow the user to do a search using a year but I’m unclear on how to go about it.
Program 5
Write a C++ program using arrays that will;
Read in data from a data file of ten(10) records,
Print the original data,
Using the Bubble Sort algorithm, sort the data by year,
Print the sorted data,
Then, prompt the user to enter a year,
Use the Linear Search algorithm to find the record with that year
Then, display the found record, if record not found, print A????1Not FoundA????1.
NOTE: Use functions for your output, sort and search routines.
Original Data
Name Year Tuition
David 2011 1582.38
Sylvester 2012 728.82
Ben 1992 0.00
Sorted Data
Name Year Tuition
Ben 1992 0.00
David 2011 1582.38
Sylvester 2012 728.82
: : : : : : : : :
Enter year: 2011
Record found.
David 2011 1582.38

READ ALSO :   Biology (and other Life Sciences)