Question: This question is part A and part B. Please start from Part A. The second thing you'll see is a sample output. I really need

This question is part A and part B. Please start from Part A. The second thing you'll see is a sample output. I really need help with this homework assignment guys. Please help with the best of your ability.

This question is part A and part B. Please start from Part

{35 points) This question is in 2 parts. but you can assume all of the code is in a single file and can put both parts in the single answer box. Part a. (17 of 35 points) In this problem we will work with DNA sequencing for some very simple species. The strings can only have the letters A, T, C. \"trite a function called compare that takes 1 DNA string as input and returns a score based on the letter count in it. Letter a has value 0.5. letter 1: has [1.1 and letter c has 0.2. Final score is the sum of the number of occurence of each letter multiplied by its value. Part b. (18 of 35 points) Using this function. compare the score of two strings entered by the user.Print the string tllat has a higher score rst along with the score formatted to 2 decimal places. See example 3 below in case the score is equal. Next, use the difference in length of the strings to print a pattern. First print. the longer string ending with a hyphenThis is followed by stars. The number of star lines is exactly equal to the difference in length of the two strings. Last line of the pattern should be the shorter string starting with a hyphen. User can enter strings in any case, but the final print should all be upper case. Your code must take care of any spaces added to the input strings (before or after). Shown below are some possible user inputs and expected outputs. >>>Enter first string =>ttctA >>>Enter second string =>aaa Second string = aaa has a higher score=1.50 'I'I'CTA- * -AAA >>> Enter first string =>TacCcccct >>>Enter second string => AaA First string = TacCcccct has a higher score=1.90 TACCCCCC'I *i'l'lr -AAA >>> Enter first string => eta >>>Enter second string =>aat Both strings have equal score = 1.10 Strings are equal in length >>>Enter first string =>AA >>>Enter second string =>ccccc Both strings have equal score = 1.00 00000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!