Myassign01.txt - Program Assignment 01 GENETIC GENEALOGY...

This preview shows page 1 - 3 out of 3 pages.

/*********************************************************************** * Program: * Assignment 01, GENETIC GENEALOGY * * Author: * * Summary: * This program compares to DNA strings and returns a percent * match. * * * * * Estimated: 2.0 hrs * Actual: 4.0 hrs * I forgot to add a 1 to a i ************************************************************************/ #include <iostream> using namespace std; void markerSeq(char dna10[51][10]); void relativeNumber(int &relNum); void relativeNames(char relName[51][256], int relNum); void relativeSeq(char relName[51][256],char dna10[51][10], int relNum); void results(char relName[51][256],char dna10[51][10], int relNum); /********************************************************************** * Function: main * Purpose: This is the entry point and driver for the program. ***********************************************************************/ int main() { char dna10[51][10] = {}; char relName[51][256]; char relativeDnaSeq [10][50]; int relNum; markerSeq(dna10); relativeNumber(relNum); relativeNames(relName, relNum); relativeSeq(relName, dna10, relNum); results(relName, dna10, relNum); return 0; } /********************************************************************** * Function: markerSeq * Purpose: requests the user's DNA sequence and stores it. ***********************************************************************/ void markerSeq(char dna10[51][10]) { cout << "Enter your DNA sequence: "; cin >> dna10[0]; return; } /********************************************************************** * Function: relativeNumber
Image of page 1

Subscribe to view the full document.

* Purpose: Requests the number of potential relatives and stores it. ***********************************************************************/ void relativeNumber(int &relNum) { cout << "Enter the number of potential relatives: ";
Image of page 2
Image of page 3
  • Fall '19

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes