Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your code should be a general solution so it should be able to handle any input file with this format ie the inputs could be
Your code should be a general solution so it should be able to handle any input file with this format ie the inputs could be in any order so your code DOES NOT count lines to decide which function to call. Your code will be tested with another input file which maintains this format but with different, randomized inputs
Input.txt:
##INI2 997 949 ##INI3 qQLXgmYrUBP3vOHWY8b9aumbUZFsXWKc1OkUERvQ9ncJAlK2T6uWr8BbH0PH9LimnodromusT8yxOGlFJ7qOZCWPJEVSmarcianuspO62TLrhPKzbxBY0QBctFbwrP7BQCMKPqGtQB3bEl9RSxaOF4XwKCic3dQ3dUtYzJBj7voTmBzVAm6pLnLML1x 61 71 92 100 ##RNA GTCCGAACCACTCCGTTTGTCAAGATTCATGGATCGGCGTCTCAATTTGGCTCCGGTTACAAGGCGCCAATCCAGTCCTCATAAAGTGTCTCCGCCACCCCGATGATACTTACTATACGACTCTAATTTGTGGTCGGTCAGACTCCCAAGTGAACTAACCCACGTTGCTGGGTCCAGGTTTGAGTGCCTACTTCACTACTTTAGCTCTTATGTGCCGATTGAGCCCATAATTCTGTCTGAATAAGTGGCTTAAGAGAGGGAGCCTTGGGAGGATCTAGGACTATCTTGCGCTTAATTGTTCGTACTACTTGGCACAGCGAGGTCGTGATTGATCAAGATCCGAATGTGATGGGCACCTAACAGGCGATGTTTCGCACTAACCGAGGCTCCAGGCAGACGGGCCTAGAGGTGGGGCGTCTTTTTATCATGTACACTCTGGCTGTAGACCTTGAATGCGGTGTCAAATGCCCGAGACGAACGCCGGGTCTTTCCATCCTCATAGCCATGGATCCACACATCGGCGGCCTTAATCTCTGACACGTCTCAAACAGAGTTTAAGTTTCGTACGCTTTGCTGTCCTAACCAAAGTACTAGTTCAGACAGTGCTCCACGTGATATGTTATGGACTCACCGCTGATGACATGCTAGTTCGTTCACAGGAGTGTAGCATCTATTGTCACTATTACGTGGCGGAGAGCGCGAGTCATCCTGATGTGAGGAGAGCGCCGACTAGAACCAGCAAGGTATAGCTGAAGTCGTCAAATCCGGCCAGCAAATGGGTTTTCTTACTGCGGGCAACTGGTTGCGCGGGGGCAACAGTTGCTGTCTATTCGTTATATTGATAAAGCCAATCAGACCAACCAAAATCGGGTAATAGACCACCAAAACGCAATTTTGGGGAAGTCACGTGAGTTTGCGGCGCAACATT ##DNA ACCTATTGAGGAGAATTGTGTGTCGATGCTAAAGGCGTTCTCTCATCCCGCTATGTTCAAGACAGATCAGAATAAAAGGACCATACTCTGAGGACGATAGGATTAACATTGTATTCAATATGCAGGATGGTTCACAAATAATCTAGGTCCGACTTAGTGGCTGCTATGGAGTAACTTTACCACGTTGCGTATAGGTTAGTGCAGTAGCTTCGCCTTGGCCGTGCTCCTGTTCTGGTGCGTGAGAACGCCTTATGAAACCAAAGGTTAGCGGTTAACAGAGATGCCTGGTGGGTGCGTACCCTCCTCCGCCTCGATGCAATGGCCCCGCATCATCCACCAAAGCTATTACCCAGAAAACAGGTTGCTAACATGTAACAGAAGGGGCGGTTATGGTGTGCACTAGGTTTTACTCGGTCAGCGAAGAAGCCGCCGGTCAGGAGCTCCCGATAAGGCCCGCCACCAGTTGGAGACAAATTACCAAGAAGGTAGCTTAATTCCTCGAAGAGAATTGGTGCTTACAGGCATACATCAACCGGCGATTGAGTGGGAATATCACCACTAGCATTCCTCGACCTCGATCCGTGGAACCGCACGGTATCTTTTCGAACTCGTACCAGTCTGATTCCATGTAAGCGCGTATTCTGCATGCGGGCCGAAAATGCGGCCCTCCTACGGGTCAGCTGAGCTGAAGACTATCGTCACGAGTGTAGCCCGGTACGGATCACTGGCTACACTCGTCTTCGGCGGACGTCGAAGTCTCAAAGCACTAGAGTTTACCGATCTAGATCGCTTGAGCAGTGAAATGGGGGACCTAGCCAGAAAATATCTGCAAATCCGCAGTACCTAACGCGTCACATCCAG ##INI4 4984 9310 ##INI2 756 834 ##INI6 When I find myself in times of trouble Mother Mary comes to me Speaking words of wisdom let it be And in my hour of darkness she is standing right in front of me Speaking words of wisdom let it be Let it be let it be let it be let it be Whisper words of wisdom let it be And when the broken hearted people living in the world agree There will be an answer let it be For though they may be parted there is still a chance that they will see There will be an answer let it be Let it be let it be let it be let it be There will be an answer let it be Let it be let it be let it be let it be Whisper words of wisdom let it be Let it be let it be let it be let it be Whisper words of wisdom let it be And when the night is cloudy there is still a light that shines on me Shine until tomorrow let it be I wake up to the sound of music Mother Mary comes to me Speaking words of wisdom let it be Let it be let it be let it be yeah let it be There will be an answer let it be Let it be let it be let it be yeah let it be Whisper words of wisdom let it be ##INI4 360 4986 ##INI6 The quick brown fox jumped over the lazy dog dog dog
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started