subject

For this assignment, you will take the cat program you wrote for the last assignment and upgrade it to add more features. we will call it dog instead of cat, because canines are better than felines. these new features will include: • the ability to specify a command line option (­s x) to change the size of the buffer used for calls to read and write to be x bytes. • the ability to specify a command line option (­n x) to change the number of bytes read from each file to x. (instead of reading the whole file as we would have without this option.) • the ability to specify a command line option (­c x) to have the program apply a caesar cipher with a shift of x to alphabetical characters in the data read before writing its results. • the ability to specify a command line option (­r x) to have the program apply a rotation of x to each byte read from the file before sending the data to be output. • the ability to specify a command line option (­x) to output the data in the file as hexadecimal.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:20
Write a program called assignment3 (saved in a file assignment3.java) that computes the greatest common divisor of two given integers. one of the oldest numerical algorithms was described by the greek mathematician, euclid, in 300 b.c. it is a simple but very e↵ective algorithm that computes the greatest common divisor of two given integers. for instance, given integers 24 and 18, the greatest common divisor is 6, because 6 is the largest integer that divides evenly into both 24 and 18. we will denote the greatest common divisor of x and y as gcd(x, y). the algorithm is based on the clever idea that the gcd(x, y) = gcd(x ! y, y) if x > = y and gcd(x, y) = gcd(x, y ! x) if x < y. the algorithm consists of a series of steps (loop iterations) where the “larger” integer is replaced by the di↵erence of the larger and smaller integer. this continues until the two values are equal. that is then the gcd.
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
Why would a programmer use the logical operator and in an if statement? a: when an action is to be taken that requires both conditions to be falseb: when an action is to be taken that requires both conditions to be truec: when an action is to be taken that requires the first condition to be falsed: when an action is to be taken that requires the second condition to be truei took the test and the answer is b.
Answers: 3
question
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
You know the right answer?
For this assignment, you will take the cat program you wrote for the last assignment and upgrade it...
Questions