Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Homewrok

michealchester
michealchester 


Programming assignment ! See the attached file Attachments Tags Clarifications

Answers

Assignment: Project 3 – DNA Sequencer

felo
felo 



Find attached Solution Attachments
proj3.zip (5 K) Download

Preview
= m_head; CURR != NULL; CURR = CURR -> m_next) { cout << CURR -> m_payload; // Determines which pair to print with nucleotide switch(CURR -> m_payload) { // When nucleotide is A case 'A': cout << "-T" << endl; break; // When nucleotide is T case 'T': cout <<

Preview
Translates a trinucleotide to its amino acid string Translate(string); //name: IsEmpty //pre: Takes in a linked list (DNA) //post: Checks to see if the linked list (strand of DNA) is empty or not bool IsEmpty(); //name: SizeOf //pre: Takes in a linked list (DNA) //post: Populates m_size with

Preview
the name of the data file to the sequencer int main (int argc, char* argv[]) { if (argc < 2) {

Preview
DNA (linked list) from user choice void Sequencer::mainMenu() { int menuChoice = -1; // Loops untill user exits program while(menuChoice != 5) { cout << "What would you like to do?" << endl; cout << "1. Display Sequencer (Leading Strand)" << endl; cout << "2. Display Sequencer (Base Pairs)"

Preview
(destructor) //pre: There is an existing linked list (DNA) //post: A linked list (DNA) is deallocated (including nucleotides) to have no memory leaks! ~Sequencer(); //name: readFile //pre: Valid file name of characters

Preview
else if((trinucleotide=="CAT")||(trinucleotide=="CAC")) return ("Histidine"); else if((trinucleotide=="GAA")||(trinucleotide=="GAG")) return ("Glutamic acid"); else if((trinucleotide=="GAT")||(trinucleotide=="GAC")) return ("Aspartic acid"); else if((trinucleotide=="AAA")||(trinucleotide=="AAG")) return ("Lysine"); else if((trinucleotide=="CGT")||(trinucleotide=="CGC")||(trinucleotide=="CGA")|| (trinucleotide=="CGG")||(trinucleotide=="AGA")||(trinucleotide=="AGG")) return ("A

Screenshots
Purchase Answer