GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Which of the following is part of Quadriceps Femoris?

Which of the following is part of Quadriceps Femoris?

Read Details

When you are finished with this program, please copy and pas…

When you are finished with this program, please copy and paste “Midterm 1 Programming Assignment 2 (Exam 1 Part 1 Question 2) is complete and ready for grading.” in the text box for this question. Program 2 Directions This program should be written in CodeBuddy: Exam 1 Part 2: Question 2. Write a program that accepts a DNA sequence, and its length, from the command line. The user may enter any character from the keyboard for the DNA sequence and will enter a number for the length. Your program should complete the following tasks, in the following order: Determine if the length the user inputs is the same as the total number of A’s, G’s, C’s, T’s, a’s, g’s, c’s, and t’s in the sequence. Tell the user whether or not the length they entered is correct (e.g., vbnbAtGcbhT has a length of five because there are five A’s, G’s, C’s, T’s, a’s, g’s, c’s, and t’s). (See examples below for exact text) Calculate the proportion (i.e., unrounded percentage, not just count) of the nucleotides (A’s, G’s, C’s, T’s, a’s, g’s, c’s, and t’s) that are A’s, a’s, T’s, and t’s, and print it to the screen (see examples below for exact text). Be sure to include the following code at the top of your file: #! /usr/bin/env python import sys seq = sys.argv[1]length = sys.argv[2] The sequence will be stored in the variable seq, and the users’s guess at length in the variable length.   Example 1 (the length entered is incorrect): If I execute the following command: python studentcode.py “AgVBt&*fRfcFCx8*c”  “7” Your program should match the output exactly (as long as you aren’t rounding the decimal, you will be okay if it’s slightly different): The length you entered is incorrect. Proportion: 33.33333333333333% Proportion is calculated by counting A’s, a’s, T’s, and t’s (which is two in the above sequence), dividing by total number of nucleotides (which is six in the above sequence) and multiplying by 100.   Example 2 (the length entered is correct): If I execute the following command: python studentcode.py “ Jh pAgT & C Jkt >wqA”  “6” Your program should match the output exactly: The length you entered is correct. Proportion: 66.66666666666666% Proportion is calculated by counting A’s, a’s, T’s, and t’s (which is four in the above sequence), dividing by total number of nucleotides (which is six in the above sequence) and multiplying by 100.

Read Details

According to Marx, how would mankind overcome conflict among…

According to Marx, how would mankind overcome conflict among human beings at the end of history?

Read Details

What kind of despotism does Tocqueville say a democracy has…

What kind of despotism does Tocqueville say a democracy has to fear?

Read Details

What does Hegel mean by the “end of history”?

What does Hegel mean by the “end of history”?

Read Details

How did Marx describe his relationship to Hegel?

How did Marx describe his relationship to Hegel?

Read Details

What is Nietzsche’s critique of Platonism?

What is Nietzsche’s critique of Platonism?

Read Details

How did Marx believe the end of history would be brought abo…

How did Marx believe the end of history would be brought about?

Read Details

Is Marx substantially responsible for Marxist-Leninist tyran…

Is Marx substantially responsible for Marxist-Leninist tyranny?

Read Details

According to Burke, what is nature, and how do we perceive n…

According to Burke, what is nature, and how do we perceive natural rights?

Read Details

Posts pagination

Newer posts 1 … 31,551 31,552 31,553 31,554 31,555 … 86,005 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top