Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help creating a C++ code to get the following output: CCTAGAATG | | X | | X | | GGACCTAAC Validity: 77.7778% Stability: 57.1429%

Need help creating a C++ code to get the following output:
CCTAGAATG
| | X | | X | |
GGACCTAAC
Validity: 77.7778%
Stability: 57.1429%
See pictures for instructions, code was too long, so I broke them up into separate photos respectively.
7 functions.cpp pics
3 main.cpp pics
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
6.24 Lab07-02: DNA analysis with functions Summary in project 06 (part 2) you wrote a program to compare 2 DNA strands for valldity and stability We going to redo that exercise, this time using functions in this exercise there are two functions provided to help you write the program OutputAndCountBasePairs and CountValidCGPairs Your job is to complete the main) function by calling these functions at the appropriate time The program is split across 2 0*+ source files main.cpp" and "functions.cpp Start by reviewing the code for main.cpp which is visible in the editor pane. Notice there are two places marked TODO where you'll need to call the provided functions. Now review the code for the functions. Above the editor pane youll see the text "Current file main.cpp, with a little drop-down arrow to the right.Click the drop-down and select functions.opp Then, to avoid a bug in some web browsers,please immediately click the link Load default template.: You only need to do this once, the first time you view the file. The editor pane should now be displaying the two functions confirm that both functions are declared and fully implemented, the header comment above each function summarizes the behavior. The functions are read-only and cannot be mod fied Complete the main0 program by calling the provided functions. When you are ready to test your work start in Develop mode and enter the names of two input files, such as and CountValidCGPairs. Scroll through the file and CCTAGAATG The output should be what we got earlier on cloud9 GGACCIAC Validity: 77.7778s Stability: 57.1429 You can submit for grading at any time, you have unlimited submissions for this exercise Recall that zyante has 2 modes, Develop mode and Submit mode. In Develop mode you must supply any program input, in Submit mode you click "Submit for Grading' and see what happens. You are free to submit as many times as you want in this exercise Recall that zyante only saves the most recent copy that you submitted-ie the last time you clicked the "Run program or Submit for grading button. If you close the browser and reload the web page, this is the version of the program you will see. There is no way to go back to earlier versions, or save' your current work unless you Run/Submit For this reason, it is recommended that you save your work in an ed tor or word processor You are free to work outside of zyante in a programming environment of your choice, but you must submit for grading using the zyante system copy-paste your program into zyante, switch to Submit mode,and Submit for grading Note that different programming environments have different defaults, so it's quite possible that a program working outside of zyante will ail when run inside zyante. This is not an error in the zyante system-this means there is a logic error in your program. The most common mistake is failure to initialize a variable. If your program fails to produce output here in zyante, then switch to Develop mode, supply some test inputs, and Run program Make sure your program compiles, and runs to completion Add output statements if you need to debug further ACTIVITY 6.24.1 0/100

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions