Topic 1 - Variables and Data Types
Topic 2 - Conditionals and Strings
Topic 3 - Loops
Topic 4 - Arrays
Topic 5 - File Handling
Semester 1 Projects
Topic 6 - Classes/Objects and Methods
Topic 7 - ArrayLists
Semester Projects

Part 1b: Mrna and Ribosome Class

Create Mrna class.

  1. Create a createCopy method that reads in a DNA arraylist and stores the translated copy in a new Arraylist. Remember that mRNA doesn’t use ”T”, but instead the translation of ”a” is ”u”. The output should keep all strings as LOWERCASE.
  2. Create a getMessengerDna() that returns the ArrayList with the copy of the DNA.

Create a Ribosome class.

  1. Create a createProtein method that returns an ArrayList of amino acids. This should take in an Arraylist as a parameter.
  2. You can use this list of amino acids: https://en.wikipedia.org/wiki/DNA_codon_table

Testing

In the start code files, you will find a Main class with some code that is commented out. Uncomment the code and run the program. You should look at the output and make sure that it passes the tests that you created in your test plan for part 1a and 1b.