I’m having problems with a homework assignment of arrays and file processing. I have to prompt the user to produce an input and output file name and then compute DNA data from the given file inputs. I’m having trouble understanding the assignment itself and so I don’t really know where to start. I have included the little code I have so far, the programming specifics, and the two .txt files that I need to download. All help will be much appreciated! I can also tip if I get help on time.
What I have so far:
import java.util.*;
import java.io.*;
public class DNA {
public static void main(String[] args) {
intro();
}
// this method introduces the user to the program and asks for the input and output files
public static void intro() {
Scanner console = new Scanner(System.in);
System.out.println("This program reports information about DNA");
System.out.println("nucleotide squences that may encode proteins");
System.out.print("Input file name? ");
String input = console.next();
System.out.print("Output file name? ");
String output = console.next();
}
// this method is after the user had provided the input and output information
public static void output_log () {
System.out.pritnln("Region name: ");
System.out.println("Nucleotides: ");
System.out.println("Nuc. Counts: ");
System.out.println("Total Mass%: ");
System.out.println("Codons List: ");
System.out.println("Is Proten?: ");
}
}


0 comments