$24
For this course you will be asked to implement a few AI algorithms. Because the programming background for this class is variable, I am not going to require everyone to use the same programming language. However, the language of your choice:
MUST be available on the departmental linux cluster (stdlinux)
MUST have a default implementation of a priority queue in its library of code (for use in the second programming assignment)
If you want to use Java, C++ or Python, you may feel free to write your code without consulting with me. If you want to use ANY OTHER LANGUAGE (including C), you MUST consult with me first about using it.
For this assignment, you must show that you can implement a simple program in the language of your choice, compile it and run it on the CSE departmental linux system (stdlinux). Your program should be able to read a plain text file where the first line of the file contains a string with a name and the remaining lines of the file each contain a single integer. These integers should be read from the file and placed into a priority queue. Once the file is completely read your program should print a Hello message directed to the name on the first line of the file and then iterate through the priority queue printing each number as it removes it from the queue. You may assume that the file is properly formatted.
For example, if this text file is given to your code:
Jorge Chang
10
7
75
63
18
99
1000
1
then your output should be:
Hello Jorge Chang!
1
7
10
18
63
75
99
1000
In addition to your code you MUST provide us with DETAILED instructions on how to compile and run your code on the stdlinux machines. These instructions MUST be in a file named README.TXT. MAKE SURE YOUR CODE RUNS ON THE stdlinux ENVIRONMENT! We will only be testing your code in this environment. DO NOT TRY TO MAKE US FIGURE OUT HOW TO COMPILE AND RUN YOUR CODE. If you do not provide instructions on how your code is to be compiled and executed on stdlinux WE WILL NOT EVEN LOOK AT YOUR CODE AND YOU WILL RECEIVE A ZERO FOR THE ASSIGNMENT.