I have to write a genetics program:
This is the INPUT:
25 sets of genetic sequences are provided. Each sample is provided in a specific format so that my program may read in the genetic information for the purposes of processing. The following is the first genetic sequence provided:
Sample 0:CTACGCTATC
Sample 1:TTACGCTATC
Sample 2:TTACGCTATC
Sample 3:TTACGCTATC
Sample 4:TTACGCTATC...
User Profile
Collapse
-
I am to follow that exact code and not change it...this is what I have got but I am having trouble getting it to work.
...Code:import sys # dictionary of day names for output. dayNames = {0:"Saturday", 1:"Sunday", 2:"Monday", 3:"Tuesday", 4:"Wednesday", 5:"Thursday", 6:"Friday"} # Get user input: month, day, year sys.stdout.write("Please -
I am trying to incorporate this code into this program but I am have trouble getting to run properly. These functions are used for leap years...
...Code:def isLeap(year): if year % 400 == 0: return True elif year % 4 == 0 and year % 100 !=0: return True else: return False def computeMaxDay(month, year): maxDays = {1:31, 2:28, 3:31, 4:30,Leave a comment:
-
Functions (organizing inline code)
1.How do I get functions to help me simplify access to the data structure.
2. How do I get functions to encapsulate the various calculations that I have to make.
3. How do I get functions to print out the computed information.
...Code:import sys subjects = ["A", "B", "L", "Z", "Q", "T", "V"] # Trial Data trials = [["Trial
-
...Code:import sys # dictionary of day names for output. dayNames = {0:"Saturday", 1:"Sunday", 2:"Monday", 3:"Tuesday", 4:"Wednesday", 5:"Thursday", 6:"Friday"} # Get user input: month, day, year sys.stdout.write("Please enter the day of the month (1-31): ") dayOfMonth = int(sys.stdin.readline().strip())Leave a comment:
-
Sorry wrong code...this is the right code
...Code:import sys # dictionary of day names for output. dayNames = {0:"Saturday", 1:"Sunday", 2:"Monday", 3:"Tuesday", 4:"Wednesday", 5:"Thursday", 6:"Friday"} # Get user input: month, day, year sys.stdout.write("Please enter the day of the month (1-31): ") dayOfMonthLeave a comment:
-
...Code:Input: the user inputs the amount in one of the following forms: # C value # F value # CM value # I value # # C - is a celcius value. Program converts to fahrenheit # F - is a fahrenheit value. Program converts to celcius # CM - is a centimetre value. Program converts to inches # I - is an inch value. Program converts to centimetres
Leave a comment:
-
-
-
zellers congrunence
1. How do I keep prompting the user for more dates until the user has indicated that he/she wishes to quit.
2. Computation of the day of the week MUST be moved to its own function.
3. How do I verify that the date entered is valid. For example, April only has 30 days so the user will not be allowed to enter April 31 as a valid date. See input section below to see how this is to be accomplished.
4. I have 2 functions... -
converting??? [Inline code to function with loop]
1. How do I change the program so that the program does not terminate after completing one conversion. Instead, the program should continue to convert values until the user indicates that he/she wishes to quit.
2. How do you change the structure of the program so that ALL conversion computations are in a function of their own.
Input: the user inputs the amount in one of the following forms:
# C value
# ... -
this is helping alot and is much appreciated...
As I look further onto the other problems I believe that I can use this is a quide to them...they seem to have similar coding.
If you have any pointers or suggestions on the other problems your advice would be much appreciated.
Thanks again.......Leave a comment:
-
-
Need Help with code strucure [solved]
Hello,
I am trying to write a few programs using python but don't really know where to start...I am completely CONFUSED.
My first program deals with conversion between fahrenheit and celcius and between centimetres and inches.
example:
Enter a value to convert: C100
100 degrees celcius is 212.0 degrees fahrenheit.
My second problem deal with Zellers Congruence, which a program that...
No activity results to display
Show More
Leave a comment: