Answered You can hire a professional tutor to get the answer.

QUESTION

Hey can you help me with this C++ program?

Hey can you help me with this C++ program? I'll attach the assignment and what I've done so far. You've helped me a lot before.

#include <iostream>#include <fstream>#include <cmath>#include <iomanip>using namespace std;float decode(float*, int, int&, int&, int&, int&);int main(void) {char codon[5];fin >> codon;char c;c = decode(codon);ifstream fin("dna.seq");ofstream fout("decoded.txt");return 0;}

float decode(float* codon, int n, int& A, int& C, int& G, int& T){for(int i=0; i if (codon[i] == 'A') val = 0;else if (codon[i] == 'C') val = 1;else if (codon[i] == 'G') val = 2;else if (codon[i] == 'T') val = 3;}}

  • Attachment 1
  • Attachment 2
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question