Please help with 3.5 (please see the typo at the bottom) (Typo: line 8 should be
ID: 3922925 • Letter: P
Question
Please help with 3.5 (please see the typo at the bottom)
(Typo: line 8 should be indented further – it is still part of inner(). Clarifications: for the C# rules, this means that a reference to a variable in its scope but before its declaration will yield an error. For Modula rules, this means that a reference to a variable in its scope but before its declaration will use the initializing value of the variable)
3.5 Consider the following pseudocode: 1. procedure main) 2. 3. 1. procedure main() a : integer:= 1 b: integer 2 4. procedure middle) 5. procedure middle() b : integer := a procedure inner() 6. 7. print a, bExplanation / Answer
String translation(String temp)
temporary worker.toCharArray();
while(i<k-3)
if(storefinal.matches("AUU")||storefinal.matches("AUC")||storefinal.matches("AUA"))
if(storefinal.matches("AUG"))
if(storefinal.matches("GUU")||storefinal.matches("GUC")||storefinal.matches("GUA")||storefinal.matches("GUG"))
if(storefinal.matches("UCU")||storefinal.matches("UCC")||storefinal.matches("UCA")||storefinal.matches("UCG"))
if(storefinal.matches("AGA")||storefinal.matches("AGG"))
if(storefinal.matches("AGU")||storefinal.matches("AGC"))
if(storefinal.matches("UGG"))
if(storefinal.matches("UGU")||storefinal.matches("UGC"))
if(storefinal.matches("GAA")||storefinal.matches("GAG"))
if(storefinal.matches("GAU")||storefinal.matches("GAC"))
if(storefinal.matches("AAA")||storefinal.matches("AAG"))
if(storefinal.matches("AAU")||storefinal.matches("AAC"))
if(storefinal.matches("CAA")||storefinal.matches("CAG"))
if(storefinal.matches("CAU")||storefinal.matches("CAC"))
if(storefinal.matches("UAU")||storefinal.matches("UAC"))
if(storefinal.matches("CCG")||storefinal.matches("CCA")||storefinal.matches("CCC")||storefinal.matches("CCU"))
if(storefinal.matches("ACG")||storefinal.matches("ACA")||storefinal.matches("ACC")||storefinal.matches("ACU"))
if(storefinal.matches("GCG")||storefinal.matches("GCA")||storefinal.matches("GCC")||storefinal.matches("GCU"))
if(storefinal.matches("CGG")||storefinal.matches("CGA")||storefinal.matches("CGC")||storefinal.matches("CGU"))
if(storefinal.matches("GGG")||storefinal.matches("GGA")||storefinal.matches("GGC")||storefinal.matches("GGU"))
if(storefinal.matches("UAG")||storefinal.matches("UAA")||storefinal.matches("UGA"))
i++;
}
String finalreturn = new String(pro);
come finalreturn;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.