GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Can you earn extra credit in this class.

Can you earn extra credit in this class.

Read Details

All of the following are common to both the Gram stain and t…

All of the following are common to both the Gram stain and the acid-fast stain EXCEPT:

Read Details

Which method for preserving bacterial cells allows the cells…

Which method for preserving bacterial cells allows the cells to be stored for decades?

Read Details

Program 3 Directions Names.txtJoseph smitheLiza roxcY SnowJo…

Program 3 Directions Names.txtJoseph smitheLiza roxcY SnowJoseph FIelding SmithEmMa HalE Smithjoseph Fielding SmIthDavid OMAN McKayLIndA KjaR burToN Write a program that opens the above file, Names.txt, for reading, and writes an alphabetized list of the names to a new file, alpha_names.txt. Above, we show several lines of Names.txt, but in practice, the file may be much longer. All names in the output file should be uppercase. Make sure you read from input and output files as specified on the command line. Complete this program, Exam 2 Part 2: Question 3, on CodeBuddy. Here is an example of the correct output for the file above (again, any case—upper, lower, or mixed—is correct): alpha_names.txtDAVID OMAN MCKAYELIZA ROXCY SNOWEMMA HALE SMITHJOSEPH FIELDING SMITHJOSEPH FIELDING SMITHJOSEPH SMITHLINDA KJAR BURTON We will execute your code with the following command (or something similar): python studentcode.py Names.txt alpha_names.txt  As always, make sure to use system arguments to get the file names or your program will fail.

Read Details

Robert Koch’s contributions to the foundations of modern mic…

Robert Koch’s contributions to the foundations of modern microbiology include:

Read Details

Which of the following is a component of bacterial flagella?

Which of the following is a component of bacterial flagella?

Read Details

Which of the following are magnifying lenses on a microscope…

Which of the following are magnifying lenses on a microscope?

Read Details

Program 1 Directions One of the first built-in functions in…

Program 1 Directions One of the first built-in functions in Python we learned about was len(), and it is one of the most commonly used functions in Python. For this question, you will write a program that calculates the length of a string from the command line. The user may enter an empty string (length of 0) and the user may also choose to enter only whitespace (tabs and spaces, and these are valid characters that must be counted). Once you have the length, print a message to the screen (see below for specific message text) that includes the length of the text. You may not use the len() function, or the word len, anywhere in your program or you will receive no credit for the question (this restriction applies only to this question). We recommend using a for loop for this question since a while loop is substantially more difficult to accomplish this specific task, but you may choose. Complete this program, Exam 2 Part 2: Question 1, on CodeBuddy. The following code is included at the top of your program: import sys seq1 = sys.argv[1] Following are some examples of what is printed to the screen when I run my program (information the user types is highlighted).   Example 1 (a mix of characters) If I execute the following command: python studentcode.py “AghfgTc # CG!T” Your program should match the output exactly: The string you entered is 14 characters long   Example 2 (an empty string) If I execute the following command (remember, the quotation marks are not actually part of the string): python studentcode.py “” Your program should match the output exactly: The string you entered is 0 characters long   Example 3 (6 whitespace characters only) If I execute the following command: python studentcode.py “      ” Your program should match the output exactly: The string you entered is 6 characters long

Read Details

Bacteria living in communities of microbes are able to commu…

Bacteria living in communities of microbes are able to communicate with each other through:

Read Details

_____ are complex communities of various types of microbes t…

_____ are complex communities of various types of microbes that attach to surfaces.

Read Details

Posts pagination

Newer posts 1 … 24,976 24,977 24,978 24,979 24,980 … 83,743 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top