The alignment output should contain three rows: The first row corresponds to the first sequence with gaps The second row corresponds to the list of operations The third row corresponds to the second sequence with gaps A match [M] operation should be represented using 'I' A convert [C] operation should be represented using '**' Insert and delete operations should be represented using '' (empty space) Example: str1: "ACAACC" str2: "CAAAAC" operations: "DMMMICM" output alignment: ACAA - CC - - - void PrintAlignment (const std::string & str1, const std:: string & str2, const std::string & operations {} #endif Complete c++ and share to have above correct out, need working code

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section: Chapter Questions
Problem 6PP
icon
Related questions
Question

Alert dont submit AI generated answer.

The alignment output should contain three rows: The first
row corresponds to the first sequence with gaps The second
row corresponds to the list of operations The third row
corresponds to the second sequence with gaps A match [M]
operation should be represented using 'I ' A convert [C]
operation should be represented using '**' Insert and delete
operations should be represented using '' (empty space)
Example: str1: "ACAACC" str2: "CAAAAC" operations:
"DMMMICM" output alignment: ACAA- CC - - - -
void PrintAlignment (const std::string & str1, const std::
string & str2, const std::string & operations {} #endif
Complete c++ and share to have above correct out, need
working code
/
Transcribed Image Text:The alignment output should contain three rows: The first row corresponds to the first sequence with gaps The second row corresponds to the list of operations The third row corresponds to the second sequence with gaps A match [M] operation should be represented using 'I ' A convert [C] operation should be represented using '**' Insert and delete operations should be represented using '' (empty space) Example: str1: "ACAACC" str2: "CAAAAC" operations: "DMMMICM" output alignment: ACAA- CC - - - - void PrintAlignment (const std::string & str1, const std:: string & str2, const std::string & operations {} #endif Complete c++ and share to have above correct out, need working code /
I
)
The alignment output should contain three rows:
The first row corresponds to the first sequence with gaps
The second row corresponds to the list of operations
The third row corresponds to the second sequence with gaps
A match [M] operation should be represented using '|'
A convert [C] operation should be represented using '*'
Insert and delete operations should be represented using
(empty space)
}
Example:
str1: "ACAACC"
str2: "CAAAAC"
operations: "DMMMICM"
-*/
void PrintAlignment
output alignment:
ACAA-CC
#endif
||| *|
-CAAAAC
const std::string & str1,
const std::string & str2,
const std::string & operations
Complete c++ and share to have above correct out
}
1
need working code
Transcribed Image Text:I ) The alignment output should contain three rows: The first row corresponds to the first sequence with gaps The second row corresponds to the list of operations The third row corresponds to the second sequence with gaps A match [M] operation should be represented using '|' A convert [C] operation should be represented using '*' Insert and delete operations should be represented using (empty space) } Example: str1: "ACAACC" str2: "CAAAAC" operations: "DMMMICM" -*/ void PrintAlignment output alignment: ACAA-CC #endif ||| *| -CAAAAC const std::string & str1, const std::string & str2, const std::string & operations Complete c++ and share to have above correct out } 1 need working code
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning