Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python intro material any help is appreciated, very confused right now! Thank you! For each of the following problems, write the named function to solve
Python intro material any help is appreciated, very confused right now! Thank you!
For each of the following problems, write the named function to solve the problem. You should place all the functions and any support functions within the single file. Make sure to place your testing code within a main function or within the "if name main conditional as shown in class. 1. The U.S. Census provides information about the current U.S. population as well as approximate rates of change. Three rates of change are provided: There is a birth every 7 seconds There is a death every 13 seconds There is a new immigrant every 35 seconds Using those three rates of change, create a function (CalcNewpopulation to calculate the next year's (365 days) population given a current population. The function should return the new population as an integer value. 2. Each day has 86,400 seconds (24 60*60). Write a function (BreakoutTime) that takes a number of seconds and prints the number of days, hours, minutes, and seconds in a list. For example, 70,000 seconds is 0 days, 19 hours, 26 minutes, and 40 seconds. Your function would print Days: 0 Hours: 19 Minutes 26 Seconds 40 3. DNA sequence searching is a common task in computational biology. Create a function (listsequencePositions to find the locations of a given string within a larger string. Your function will take two parameters, the sequence to be found and
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