Question: Write a script that get the input of dna sequence from user and validate the input is a dna sequence. If the input is a

Write a script that get the input of dna sequence from user and validate the input is a dna sequence.
If the input is a dna sequence:-
1. calculate the length of sequence
2. calculate the percentage of each nucleotide 3. calculate the GC percent of dna
4. get the rna sequence
If the input is NOT a dna sequence, an error message will be displayed and ask user whether to enter the correct dna sequence OR terminate the program.
Write the script in two styles:-
1. using function
2. using module
 Write a script that get the input of dna sequence from

Output 1 Enter dna sequence: aaccggtt Length of the sequence: 8 Percentages of nucleotide:- Output 3 Enter dna sequence: aaccggut The input is not a dna sequence. a 25.0% c 25.0% g - 25.0% t 25.0% GC percentage: 50.0% The rna sequence: aaccgguu Output 2 Enter dna sequence: aaccggut The input is not a dna sequence Enter dna sequence: aaccggtt . . #refer to Output 1 Output 1 Enter dna sequence: aaccggtt Length of the sequence: 8 Percentages of nucleotide:- Output 3 Enter dna sequence: aaccggut The input is not a dna sequence. a 25.0% c 25.0% g - 25.0% t 25.0% GC percentage: 50.0% The rna sequence: aaccgguu Output 2 Enter dna sequence: aaccggut The input is not a dna sequence Enter dna sequence: aaccggtt . . #refer to Output 1

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 Databases Questions!