id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > aminoAcidFinder2
prev  |  next  |  chance

Write a method that accepts a string representing a sequence of three letters of RNA. Return the matching amino acid based on a codon chart. You may assume that 'sequence' contains exactly three letters. Your solution MUST be a data-based solution, NOT using complex nested 'if' or 'switch-case' statements! Look at the test data for examples.


aminoAcidFinder2("GGG") → "Glycine"
aminoAcidFinder2("UCU") → "Serine"
aminoAcidFinder2("AAA") → "Lysine"

...Save, Compile, Run (ctrl-enter)

public String aminoAcidFinder2(String sequence) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 295

Copyright Nick Parlante 2017 - privacy