Program 5- COP-2250 - Java Programming - Summer B 2011 Professor: Michael Robinson e-mail : mrobi002@cs.fiu.edu Web Page : www.cs.fiu.edu/~mrobi002/teaching Program 5 Due on August Thu 4, 2011 at the beginning of class. Turn in the signed source code on paper, and email me the source code. Make sure the program is properly documented and aligned uniformally, looking professionally, I will take points off if it not. Include the following header in every program: /********************************************************************* Author : Your Name Course : COP 2250 M-T-W-TH 5:00 PM Professor : Michael Robinson Program # : Program Purpose/Description {A brief description of the program } Due Date : MM/DD/YYYY Certification: I hereby certify that this work is my own and none of it is the work of any other person. ..........{ your signature }.......... *********************************************************************/ Purpose of this program: - Implement: - Open, read and process text files - Store data in an array or a String variable, your choice - Use many methods from the String class - Use for and while loops - Use DecimalFormat class - Do math computations with the data contects - Use if and if else statements - Compare characters - Implement arrayList How: **** NOTE **** Each task must be done inside its own method. Use main ONLY to create variables and call the methods. From main() call methods passing parameters where you will implement the following: Worth 5 points - Download the file called hs_chr1.dna from: http://users.cis.fiu.edu/~mrobi002/downloads/samples/1200.dna - open the previous file. - load it into a one dimension array or a String, your choice this file contains nueclotides/bases/letters in it such as a, c, g, and t, others. - Find out the total amount of neuclotides a, how many c, how many g, how many t and how many all others are in this file. Make sure to test for upper and lower cases of each a,c,g,t base. - Print the first and the last neuclodide in the file, and using the ceil() method print the one exactly in the middle of the file - Print all total in an aligned column the numeric format 1,234,567 Worth 2 points - Create an arrayList, add values in the first five locations - Using iterators print all values in the arrayList - Delete locations 2 and 4 from the arrayList - Using a for loop print all values left in the arrayList Worth 1 point (wrappers) - create an int with a value of your choice - create an Integer with a value of your choice - create a String with a numeric value of your choice - convert the String to int - add all previous numbers, the int the Integer and the Converted value in the String Worth 2 points - Create a file - Using a while loop, write all integer numbers from 0 to 10 - close the file - Reopen file - Read all data in the file adding all numbers in it. - Print the total amount - close the file