subject

IN C LANGUAGE 16.15 Lab 5: filter
Name this program filter. c.
The program takes two command line arguments: the name of an input file and the name of an output file. The program should confirm the input and output files can be opened. If a file cannot be opened, print the error message Cannot open file '' where is the name of the file and return.
fopen() will return 0 if it fails to open a file.
Then, the program will read the file string by string (up to 50 characters in length). If the string consists of only uppercase and lowercase characters, print it.
You can use isalpha(char) declared in ctype. h to check whether a character is a-z or A-Z.
continue and break might be useful.
Don't forget to close your files!
Examples
./a. out example. txt output. txt
example. txt output. txt
The Quick Brown Fox Jumps over the Lazy The Quick Brown Fox Jumps
Old Dog. ALABAMA? over the Lazy Old Roll
Roll Tide!!! P2P 1831 (UA)
./a. out does_not_exist. txt output. txt
Cannot open file 'does_not_exist. txt'

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:20
Usually, when we sniff packets, we are only interested certain types of packets. we can do that by setting filters in sniffing. scapy’s filter use the bpf (berkeley packet filter) syntax; you can find the bpf manual from the internet. set the following filters and demonstrate your sniffer program again (each filter should be set separately): (a) capture only the icmp packet. (b) capture any tcp packet that comes from a particular ip and with a destination port number 23. (c) capture packets comes from or to go to a particular subnet. you can pick any subnet, such as 128.230.0.0/16; you should not pick the subnet that your vm is attached to.
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Three out of five seniors remain undecided about a college major at the end of their senior year.
Answers: 3
question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
You know the right answer?
IN C LANGUAGE 16.15 Lab 5: filter
Name this program filter. c.
The program takes two co...
Questions
question
Chemistry, 28.10.2020 21:20
question
Mathematics, 28.10.2020 21:20
question
Computers and Technology, 28.10.2020 21:20