Question: This is c programming 4. The first executable line of your program must turn off output buffering. This is a requirement for automated testing. The

 This is c programming 4. The first executable line of your

This is c programming

4. The first executable line of your program must turn off output buffering. This is a requirement for automated testing. The following line will do the trick setvbuf(stdout, NULL, LIONBF, 0); 5. The program must use a switch statement to determine which nucleotide count to increment. Functional Requirements Write a program that: 1. Prompts the user for an input filename. The last character of this prompt must be a new line character (in). 2. Gets the input filename from stdin. 3. Prompts the user for an output filename. The last character of this prompt must be a new line character (In). 4. Gets the filename from stdin. 5. Opens the input file for reading 6. Opens the output file for writing. 7. Reads nucleotide sequences from the input file. 1. Do not prompt the user for the nucleotides, just use fgetc() to get each character. 2. Each sequence consists of a series of A, C, G, or T characters, terminated by a in 8. After each sequence is received, the number of A's, C's, G's, and T's are output on a single line to the file. Separate the number of A's, C's, G's, and T's by a single space. 9. When an EOF is returned by fgetc(), the program closes the input and output files. 10. Prints "Completeln" to stdout. Sample Console I/O [black is screen output (stdout) from your program, blue is keyboard input (stdin) from the grade script] Enter input filename: sbcctestdata/in_20120912_11_12_17_077.txt Enter output filename: sbcctestdata/test 20120912 11 12 17 328.txt Complete Sample Input File ACGT GGATG Sample Output File 1111 1 0 31 lim

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Based on the problem description youve shared it seems like you are tasked with creating a C program that processes nucleotide sequences and writes the count of As Cs Gs and Ts into an output file Let... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!