Containing all the genes in the dna sequence

Assignment Help C/C++ Programming
Reference no: EM13164606

Write a program that will read in a genome and display all the genes in the genome. Your program must do the
following:

  • Include a function named genes that will take two arguments: a string containing a DNA sequence

as described above plus an integer reference parameter, and return a dynamically-allocated array of
strings containing all the genes in the DNA sequence. Each string in the array will contain a unique
gene. The number of elements in the array should be exactly equal to the number of genes in the
sequence and the number of genes found should be returned using the function's reference argument.

  • Include a main function that will solicit a DNA sequence string from the user, call the genes function

to obtain all the genes in the sequence and print each one on the console display.

[Hint: there are many ways to do this, but you may find it easiest to perform two "passes" of the sequence. A
first pass to determine how many genes there are, and a second to construct the individual gene strings]

Example:
Enter a DNA sequence: TCATGTGCCCAAGCTGACTATGGCCCAATAGCG
Gene 1 TGCCCAAGC
Gene 2 GCCCAA

Individual genes are substrings of a genome delineated by 3-element start and stop codons. Genes begin with
the start codon ATG and end with one of the following 3 stop codons: TAG, TAA or TGA. Note that start codons
can appear anywhere in the string, followed by a series of 3-element codons and ending with a stop codon.
Note that genes are multiples of 3 in length and do not contain any of the triples ATG, TAG, TAA or TGA.

Reference no: EM13164606

Questions Cloud

Write a turing machine that takes as input : Write a Turing machine that takes as input the unary representation of any two different numbers, separated by a blank, and halts with the representation of the larger of the two numbers on the tape.
The code to implement a state diagram to recognize : The code to implement a state diagram to recognize one form of the comments of the C-based programming languages, those begin with /* and end with */.
Comparison of 3 mobile operating systems in user interface : comparison of three mobile operating systems in terms of user interface, functionality, application support and platform presence.
Use the getint and getintwithinrange methods : Use the getInt and getIntWithinRange methods to validate that each score ranges from 1 through 100 and add code that discards any extra entries at the prompt that asks if you want to enter another score to the application below.
Containing all the genes in the dna sequence : As described above plus an integer reference parameter, and return a dynamically-allocated array of strings containing all the genes in the DNA sequence. Each string in the array will contain a unique
A company wants to see a printout : A company wants to see a printout of the gross payroll for each of its 7 departments. The output should be a list of the seven departments and the total gross payroll (rate times hours) for each department
Reads from the external file input.txt : Program that reads from the external file input.txt, counts the letters in every word, replaces the word by that number, and then writes the numbers to an external file output.tx
Design a program that extends the definition of the class : Design a program that extends the definition of the class JFrame to display a window on the screen. Name your class PropertyTax1, title your window "Calculation of Property Taxes," set the window's width to 400 pixels and height to 300 pixels, and te..
Program to keep track of the participants in a triathlon : Create a program to keep track of the participants in a triathlon. Your program will keep track of the times in three events: Running, Swimming, and Biking. Your program will calculate who is the winner in the Male category and the Female category..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Lu decomposition with gauss elimination

The LU decomposition with Gauss elimination and what is the physical interpretation of the elements of ? Write C++ programs for steps 2, 3, and 4.

  Build a table of reynolds numbers at flow velocities

Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)

  Multidimensional arrays

multidimensional arrays to life, let's consider a specific example: How can you visualize a 4-dimensional array? How can you give meaning to each dimension this array has? What kind of application would such an array be useful for?

  Reads from the external file input.txt

Program that reads from the external file input.txt, counts the letters in every word, replaces the word by that number, and then writes the numbers to an external file output.tx

  Write a function to compute the volume of a cone

write a function to compute the volume of a cone by using the base radius r and the height h of the cone as the parameters of the function Vcone = xr^2h/3

  Write program to input series of hourly temperatures

Create and write a c++ program which inputs series of 24 hourly temperatures from file, and outputs bar chart (using stars) of temperatures for the day.

  Design a deck plan space ship in eclipse

Develop a simple interactive two-dimensional spaceship deck plan editor using OpenGL and GLUT. Your program will enable a user to create and save a deck plan of a hypothetical spaceship comprising the hull walls.

  Write a program to find that number for nguyen.

In some Asian countries, 8 and 6 are considered lucky digits. Any number containing only 8s and 6s is considered lucky number, e.g. 6, 8, 66, 668, 88, 886 .... Nguyen is a student who likes mathematics very much. Nguyen likes lucky numbers but only o..

  Sort an array of elements using the quick sort algorithm

Sort an array of 10,000 elements using the quick sort algorithm as follows: sort the array using pivot as the middle element of the array

  Pointer variables to demonstrate shallow and deep copy

Using C++, write a program that uses pointer variables to demonstrate shallow and deep copy. The program should give the user the choice to do the following:

  Implement circular linked list in c program

implement circular linked list in c program in the best possible easiest way.

  Show the deatils of an emplyoee - c programming

Show the deatils of an emplyoee in a neat format.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd