Determine an appropriate functional decomposition

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

At the conclusion of this programming assignment, participants should be able to:

- Implement pointers and/or arrays

- Apply parallel arrays

- Compare and contrast pointers and arrays

- Pass output parameters to functions

- Apply repetition structures within algorithms

- Compose C programs consisting of sequential, conditional, and iterative statements

- Create structure charts for a given problem

- Determine an appropriate functional decomposition or top-down design from a structure chart

II. Prerequisites:

Before starting this programming assignment, participants should be able to:

- Analyze a basic set of requirements and apply top-down design principles for a problem

- Apply repetition structures within an algorithm

- Construct while (), for (), or do-while () loops in C

- Compose C programs consisting of sequential, conditional, and iterative statements

- Eliminate redundancy within a program by applying loops and functions

- Create structure charts for a given problem

- Open and close files

- Read, write to, and update files

- Manipulate file handles

- Apply standard library functions: fopen (), fclose (), fscanf (), and fprintf ()

- Compose decision statements ("if" conditional statements)

- Create and utilize compound conditions

- Summarize topics from Hanly&Koffman Chapter 6 including:

o   What is a pointer?

o   What is an output parameter?

III. Overview & Requirements:

DNA is the chemical responsible for carrying instructions that control cells. When the instructions are not recognized by the cells because of mutations, cells do not function properly. Improper functioning of cells can lead to cancer.

If mutations can be identified, then cancer treatments can be applied. Software may be used to identify mutations in the genome. The genome is the collection of DNA instructions in your cells. Most cells contain two sets of chromosomes, one from your father and one from your mother. Each chromosome has billions of DNA strands that consist of nucleotide bases. The four bases are A, C, G, and T. In the double helix structure of DNA, for a normal cell, the A-T and C-G bases are paired.

For this assignment we simplify our model of the genome. Our goal is to identify mutations in a DNA sequence. We will place our normal DNA sequences and "test" sample sequences in a file called "sequences.txt". The section of the file that represents the normal sequences will be identified by a 'N' in the file, and the section that represents the "test" sample sequences will be represented by a 'S'.

Mutations will be identified by mismatched base pairs, such as A-C, A-G, T-C, T-G, C-A, G-A, C-T, and G-T. They will also be identified by changes (flips) in any of the bases from the normal sequence to the sample sequence. Our definition of sequence is base pairs across multiple lines in our file. For example:

N

ATGGAATTCTCGCTC

TACCTTAAGAGCGAG

CGGTCA

GCCAGT

S

TTGGAATTCTAGCTC

AACCTTAAGAGCGCG

CGATGA

GCCACT

The file may contain an unknown number of sequences. However, you may assume that each sequence will not exceed 15 bases as shown above.

Your program must identify each mutation by indicating in which sequence it is found and in which position in the sequence. The results must be written to a file called "mutations.txt". Using the example above, your program would write the following to the file:

Mutation(s) found in sequence 1

Pair 1 flipped pair

Pair 11 mismatched pair

Pair 14 mismatched pair

Mutation(s) found in sequence 2

Pair 3 mismatched pair

Pair 5 flipped pair

BONUS:

Generate randomly paired bases to form random DNA sequences that are written to your "sequences.txt" file.

Reference no: EM13499939

Questions Cloud

Explain facilitates neuronal communication : Serotonin, composed of C, H, N, and O, facilitates neuronal communication.
Involving employees in the identification and solution : Involving employees in the identification and solution of problems often yields the best results. What types of incentives programs could companies put into place to encourage employees to contribute their ideas?
Evaluate the average radius : Calculate this separation for n=100; also calculate the average radius, the geometric cross section, and the ionization energy. Could a thermal collision with another hydrogen atom ionize this Rydberg atom
Discuss how property taxes are treated differently : Discuss how property taxes are treated differently in the governmental funds statements as opposed to the governmental wide statements
Determine an appropriate functional decomposition : Create structure charts for a problem and determine an appropriate functional decomposition or top-down design from a structure chart
Explain the piston is depressed at constatnt temperature : Consider a sealed flask with a moveable piston that contains 5.25L of O2 saturated water vapor at 25O C. The vapor pressre of water at this temperature is 23.76 mmHg. The piston is depressed at constatnt temperature so that the gas is compressed t..
Find the average current in the coil during that time : A circular coil enclosing an area of 180 cm2 is made of 210 turns of copper wire. The wire making up the coil has resistance of 9.0 ?, what is the average current in the coil during that time
Explain the molality an aqueous solution of sucrose : An aqueous solution of sucrose, C12H22O11, boils at 112 degrees celcius. what is the molality
Find where must the girl sit on the other side : A boy and a girl are balanced on a massless seesaw. The boy has a mass of 75 kg and the girls mass is 50 kg. find where must the girl sit on the other side

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create a class called point3d

Create a class called Point3D to represent 3D point in space, a class called Sphere and a class called Cylinder. The sphere is characterized by its center point and the radius while the Cylinder can be characterized by its center point, radius and he..

  Write a program that allows users to enter a dollar amount

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50. Include an approriate sentinel ..

  Write a c program that reads n positive numbers from the

write a c program that reads n positive numbers from the keyboard calculates and displays the following information.a.

  Each has a string for their name

Create a class in C++ that holds robot warriors. Each has a string for their name, a number of hitpoints (an float), armor (a defensive modifier(an int)), and weaponry (an offensive multiplier(another int)). You will create 5 robots with a random ..

  Approximately normally distributed

Write a program MakeFile.cpp that creates a file random.dat that contains 200 random numbers where each number is the sum of 12 random values rand( )%9. When we add a sufficient number of uniformly distributed numbers the result is approximately n..

  The function should accept the future value

The function should accept the future value, annual interest rate, and number of years as arguments. It should return the present value, which is the amount that you need to deposit today. Demonstrate the function in a program that lets the user expe..

  Refresher on andys basic requirements

The game Battleship is back and better than ever. Instead of hacking everything together in C, you will instead leverage C++ and all of your newly gained object oriented programming knowledge to construct a much cleaner end product.

  Design a nested program

How many levels of nesting are there in this design?

  Create a graphical (not text-based) visual c++ program

Create a graphical (not text-based) Visual C++ program that allows the user to enter the coefficients for a system of four equations with four unknowns. Include a button that when clicked, will solve the system of equations and display the results in..

  Implement recursive algorithms using a stack

Show the difficulties of the added complexity and which of the two sorts is easier to implement nonrecursively? Why?

  The method takes an array

The method takes an array of integers and returns true if there exists any item in the array that satisfies a specified condition. For instance, the following code fragment:

  State a c program that opens the file

Write a C program that opens the file and firstly stores all the values in an appropriately declared two-dimensional array of integers. It then should analyse this array to find (from the 40 input values) the total number of coursework marks in the..

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