Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using python Problem Description: (String exercise This assignment will give you more experience with while/for loops and if statements, and give you an opportunity to

Using python image text in transcribed
image text in transcribed
Problem Description: (String exercise This assignment will give you more experience with while/for loops and if statements, and give you an opportunity to work with strings. The Problem Scientists measure how closely related a species is by looking at the DNA sequences for key proteins and seeing how similar/dissimilar they are. If the two sequences of DNA are essentially the same, the two species are considered to be evolutionarily closer since there is a relationship between changes and time. This process is called sequence alignment. Consider the two strings of DNA below (completely made up, miss matches in red) Species 1: AATAACGAAA Species 2: AAAACGAAAA Program Specifications 1. You will read two strings at a time (one string on each line) and do scoring operation. The strings can have any characters you like, but to be "biological" it should consist of: "A", "T", "C", "G" but it is not the requirement. Scoring. You will report the number of matches and the number of mismatches. Requirement: Interactively read a file name which contains the DNA sequences to be matched(scored). Assume that each pair of strings are same length and it could be in upper and/or lower case. Print match count and mismatch count You print both strings After you score i. Matching characters are printed in lower case. If the string was in upper case letters, you convert them to lower case on a match. . All mismatches are printed in upper case Assignment Notes: . As before, try to do this in pieces: get the command loop working b. get individual commands to work (scoring is the most work, save it till last) 2. Printing the string is best done by creating a new string and adding

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

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

3. Identify the refusal of the call in Star Wars.

Answered: 1 week ago